Skip to content

Commit

Permalink
use commercial_partner_id to allow invoicing an invoice address
Browse files Browse the repository at this point in the history
  • Loading branch information
bguillot committed Jun 18, 2024
1 parent 3c10b13 commit ca8d837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_invoicing_subcontractor/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def _check_invoice_mode_validity(self):
)
)
project_partner = first(line.analytic_account_id.project_ids).partner_id
if project_partner != line.move_id.partner_id:
if project_partner != line.move_id.partner_id.commercial_partner_id:
raise exceptions.ValidationError(
_(
"Line %s is not valid, the analytic_account is not "
Expand Down

0 comments on commit ca8d837

Please sign in to comment.