Skip to content

Commit

Permalink
[OU-FIX] base: add action's required columns
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Oct 14, 2024
1 parent e95aa42 commit f55ef47
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions openupgrade_scripts/scripts/base/17.0.1.3/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ def _fill_ir_server_object_lines_into_action_server(cr):
resource_ref,
selection_value,
update_boolean_value,
update_m2m_operation
update_m2m_operation,
binding_type,
state,
type,
usage,
model_id,
name
)
SELECT
ias.id,
Expand All @@ -98,7 +104,13 @@ def _fill_ir_server_object_lines_into_action_server(cr):
THEN isol.value::bool
ELSE NULL
END,
'add'
'add',
'action',
'object_write',
'ir.actions.server',
'ir_actions_server',
ias.model_id,
ias.name
FROM ir_act_server ias
JOIN ir_server_object_lines isol ON isol.server_id = ias.id
JOIN ir_model_fields imf ON imf.id = isol.col1
Expand Down

0 comments on commit f55ef47

Please sign in to comment.