Please sign in to comment.
- Loading branch information...
|@@ -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.")|