Skip to content
Permalink
Browse files

fixme

  • Loading branch information...
Feyensv committed Nov 8, 2019
1 parent 697257f commit ed7f2ea2316c67100aa19ae4b955b15277e94981
Showing with 2 additions and 0 deletions.
  1. +2 −0 addons/account/models/account.py
@@ -1674,6 +1674,8 @@ class AccountTaxRepartitionLine(models.Model):
refund_tax_id = fields.Many2one(comodel_name='account.tax', help="The tax set to apply this repartition on refund invoices. Mutually exclusive with invoice_tax_id")
tax_id = fields.Many2one(comodel_name='account.tax', compute='_compute_tax_id')
country_id = fields.Many2one(string="Country", comodel_name='res.country', related='company_id.country_id', help="Technical field used to restrict tags domain in form view.")
# VFE FIXME does it take the user main company on purpose ?
# shouldn't it use the company on the environment?
company_id = fields.Many2one(string="Company", comodel_name='res.company', required=True, default=lambda x: x.env.user.company_id, help="The company this repartition line belongs to.")
sequence = fields.Integer(string="Sequence", default=1, help="The order in which display and match repartition lines. For refunds to work properly, invoice repartition lines should be arranged in the same order as the credit note repartition lines they correspond to.")

0 comments on commit ed7f2ea

Please sign in to comment.
You can’t perform that action at this time.