Skip to content
Snippets Groups Projects
Commit 1265839a authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] sale: Down payment in multi company

When creating a product "down payment" in multi company in function "create_invoices"
of the model "sale.advance.payment.inv", a default company was set on this product
and it could lead to access rights error when trying to invoice a SO from an other
company.

NB: The down payment product must be shared with all the companies, as this is
the only one that you can set in the ir.config_parameter.

opw:1841468
parent bd2de7ae
Branches
Tags
No related merge requests found
......@@ -179,4 +179,5 @@ class SaleAdvancePaymentInv(models.TransientModel):
'invoice_policy': 'order',
'property_account_income_id': self.deposit_account_id.id,
'taxes_id': [(6, 0, self.deposit_taxes_id.ids)],
'company_id': False,
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment