[12.0][IMP] - sale line linked to contracts must not be invoiced from sale order

This commit is contained in:
sbejaoui
2019-10-01 10:51:50 +02:00
committed by Denis Roussel
parent 46f9bb6234
commit 0e0d8ecd6c
3 changed files with 27 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ class SaleOrder(models.Model):
def action_show_contracts(self):
self.ensure_one()
action = self.env.ref(
"contract.contract_contract_customer_form_view"
"contract.action_customer_contract"
).read()[0]
contracts = (
self.env['contract.line']