Skip to content

Commit

Permalink
Merge pull request #4585 from hbrunn/17.0-base-fix-server_object_lines
Browse files Browse the repository at this point in the history
[17.0][OU-FIX] base: add action's required columns
  • Loading branch information
pedrobaeza authored Oct 14, 2024
2 parents e95aa42 + f55ef47 commit 89fbfd5
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 89fbfd5

Please sign in to comment.