Skip to content

Commit

Permalink
[FIX] edi_voxel_sale_order_import: Don't force a pricelist
Browse files Browse the repository at this point in the history
If we set initially a pricelist, when playing onchanges on the partner,
the pricelist will remain the same, no matter the pricelist associated
to the partner. As we want to use the partner's pricelist, we remove
the initial pricelist assignation.
  • Loading branch information
pedrobaeza committed Aug 14, 2023
1 parent a56defe commit 128df57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion edi_voxel_sale_order_import/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Voxel sale order",
"summary": "Import sale order from Voxel.",
"version": "13.0.1.0.1",
"version": "13.0.1.0.2",
"category": "Sale",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/edi",
Expand Down
6 changes: 0 additions & 6 deletions edi_voxel_sale_order_import/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ def _parse_general_data_voxel(self, vals, xml_root, error_msgs):
if general_elements:
general_data = general_elements[0].attrib
vals.update(client_order_ref=general_data.get("Ref"))
# get pricelist
currency_name = general_data.get("Currency")
pricelist = self.env["product.pricelist"].search(
[("currency_id.name", "=", currency_name.upper())], limit=1
)
vals.update(pricelist_id=pricelist.id)
# add date_order
date_order = general_data.get("Date")
if date_order:
Expand Down

0 comments on commit 128df57

Please sign in to comment.