Skip to content

Commit

Permalink
[FIX] l10n_fr_intrastat_product: crash caused by rename of field depa…
Browse files Browse the repository at this point in the history
…rtment_id
  • Loading branch information
alexis-via committed May 2, 2023
1 parent 2a481ca commit f7dc05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_fr_intrastat_product/models/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def _get_fr_department(self):
self.ensure_one()
if not self.partner_id:
raise UserError(_("Missing partner on warehouse '%s'.") % self.display_name)
return self.partner_id.department_id
return self.partner_id.country_department_id


class StockLocation(models.Model):
Expand Down

0 comments on commit f7dc05d

Please sign in to comment.