Skip to content

Commit

Permalink
[IMP] shopfloor_base: Don't filter for registry sync
Browse files Browse the repository at this point in the history
If record field value is already True, impossible to sync
the registry
  • Loading branch information
rousseldenis committed Dec 11, 2024
1 parent 699f4ce commit 44be538
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shopfloor_base/data/server_action.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<field name="model_id" ref="shopfloor_base.model_shopfloor_app" />
<field name="binding_model_id" ref="shopfloor_base.model_shopfloor_app" />
<field name="state">code</field>
<field name="code">
records.filtered(lambda x: not x.registry_sync).write({"registry_sync": True})
<field name="code">records.write({"registry_sync": True})
</field>
</record>
</odoo>

0 comments on commit 44be538

Please sign in to comment.