Skip to content

Commit 4535120

Browse files
[IMP] edi_endpoint_oca: don't filter for registry sync
If record field value is already True, impossible to sync the registry
1 parent fff8ab6 commit 4535120

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

edi_endpoint_oca/data/server_action.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
<field name="model_id" ref="edi_endpoint_oca.model_edi_endpoint" />
77
<field name="binding_model_id" ref="edi_endpoint_oca.model_edi_endpoint" />
88
<field name="state">code</field>
9-
<field name="code">
10-
records.filtered(lambda x: not x.registry_sync).write({"registry_sync": True})
11-
</field>
9+
<field name="code">records.write({"registry_sync": True})
10+
</field>
1211
</record>
1312
</odoo>

0 commit comments

Comments
 (0)