Skip to content

Commit

Permalink
[FIX] spp_custom: write multi products
Browse files Browse the repository at this point in the history
  • Loading branch information
remytms committed Dec 21, 2020
1 parent 80f9bcf commit 189de9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spp_custom/models/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def write(self, vals):
# Custom track visibility for
# taxes_id (M2M), seller_ids (M2M), supplier_taxes_id (O2M)
name_old = {
rec.id: self.with_context(lang="fr_CH").name for rec in self
rec.id: rec.with_context(lang="fr_CH").name for rec in self
}
taxes_id_old = {
rec.id: ", ".join([tax.name for tax in rec.taxes_id])
Expand All @@ -46,7 +46,7 @@ def write(self, vals):
}
res = super(ProductTemplate, self).write(vals)
name_new = {
rec.id: self.with_context(lang="fr_CH").name for rec in self
rec.id: rec.with_context(lang="fr_CH").name for rec in self
}
taxes_id_new = {
rec.id: ", ".join([tax.name for tax in rec.taxes_id])
Expand Down

0 comments on commit 189de9f

Please sign in to comment.