Skip to content

Commit

Permalink
Merge PR #58 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
github-grap-bot committed Oct 7, 2024
2 parents bd6e04b + 70de79d commit 3f7dad5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fiscal_company_point_of_sale/models/pos_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def _check_company_journal(self):

@api.constrains("company_id", "journal_ids")
def _check_company_payment(self):
if self.mapped("journal_ids.company_id.fiscal_company_id.id") != [
self.company_id.fiscal_company_id.id
]:
if self.mapped("journal_ids") and self.mapped(
"journal_ids.company_id.fiscal_company_id.id"
) != [self.company_id.fiscal_company_id.id]:
raise ValidationError(
_(
"The companies of the method payments and the company of the point of sale"
Expand Down

0 comments on commit 3f7dad5

Please sign in to comment.