Skip to content

Commit

Permalink
Merge pull request #24 from Gedeelde-Weelde/feat/GED-50-cwa-import-bulk
Browse files Browse the repository at this point in the history
feat: GED-50: Add server action for importing product and supplier info.
  • Loading branch information
jurcello authored Dec 18, 2024
2 parents 0639ff8 + 7c8c21f commit 95c455d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions product_import_cwa/views/cwa_product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,20 @@
<field name="context">{'search_default_new': 1}</field>
</record>

<record
id="server_action_import_product_and_supplier_info"
model="ir.actions.server"
>
<field name="name">Import Product and Supplier Info</field>
<field name="model_id" ref="model_cwa_product" />
<field name="binding_model_id" ref="model_cwa_product" />
<field name="state">code</field>
<field name="code">
for record in records.filtered(lambda p: p.state == "new"):
record.to_product()
</field>
</record>

<menuitem
id="menu_imported_leads"
action="action_cwa_catalogue"
Expand Down

0 comments on commit 95c455d

Please sign in to comment.