summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorRomain Estievenart <res@odoo.com>2019-03-12 08:08:08 +0000
committerAdrien Dieudonne <adr@odoo.com>2019-03-22 10:26:13 +0000
commit230ad8c381e927025efabff0f5f8c2debc432249 (patch)
treedb8f349633b9251bfb1f034d4b403474931e7322 /addons/web/static/src/js/views/basic/basic_model.js
parent7269fb32f4f4819d28c28d48af1b88eb5b35ec58 (diff)
[FIX] web: Add support of button type object on One2Many KanbanRecord
Before this commit, there were a crash if you tried to add an optionnal product in a new sale order without saving it. Apply same logic as in the ListRenderer: buttons with type="object" are disabled for no saved yet records, as calling the python method with no id would make no sense. To avoid to expose this logic inside all Kanban views, we define a specific KanbanRecord Class for the One2many case. This could be refactored to prevent from duplicating this logic in list and kanban views. Original Task ID: 1945006 closes odoo/odoo#31695 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions