fix(configurator): OPEN button errored on missing action.views
FpExpressActionBtns.onOpen called action_open_part which returned an ir.actions.act_window dict without a 'views' key. Odoo 19's _preprocessAction in the web client tries to .map over action.views and throws TypeError: Cannot read properties of undefined (reading 'map'). Fix: include 'views': [[False, 'form']] alongside view_mode='form' on both copies of action_open_part (wizard line + sale.order.line). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
{
|
||||
'name': 'Fusion Plating — Configurator',
|
||||
'version': '19.0.22.1.0',
|
||||
'version': '19.0.22.5.0',
|
||||
'category': 'Manufacturing/Plating',
|
||||
'summary': 'Quotation configurator with part catalog, coating configs, and formula-based pricing engine.',
|
||||
'description': """
|
||||
|
||||
@@ -878,6 +878,7 @@ class SaleOrderLine(models.Model):
|
||||
'type': 'ir.actions.act_window',
|
||||
'name': self.x_fc_part_catalog_id.display_name,
|
||||
'res_model': 'fp.part.catalog',
|
||||
'views': [[False, 'form']],
|
||||
'view_mode': 'form',
|
||||
'res_id': self.x_fc_part_catalog_id.id,
|
||||
'target': 'new',
|
||||
|
||||
@@ -751,6 +751,7 @@ class FpDirectOrderLine(models.Model):
|
||||
'type': 'ir.actions.act_window',
|
||||
'name': self.part_catalog_id.display_name,
|
||||
'res_model': 'fp.part.catalog',
|
||||
'views': [[False, 'form']],
|
||||
'view_mode': 'form',
|
||||
'res_id': self.part_catalog_id.id,
|
||||
'target': 'new',
|
||||
|
||||
Reference in New Issue
Block a user