Eval company or -1 in context m2o fields #163427
This commit is contained in:
parent
e361302c40
commit
78238b272e
4
sale.py
4
sale.py
|
@ -33,9 +33,9 @@ class Sale(ContactMixin, metaclass=PoolMeta):
|
||||||
@classmethod
|
@classmethod
|
||||||
def __setup__(cls):
|
def __setup__(cls):
|
||||||
super().__setup__()
|
super().__setup__()
|
||||||
cls.allowed_invoice_contacts.context = {'company': Eval('company')}
|
cls.allowed_invoice_contacts.context = {'company': Eval('company', -1)}
|
||||||
cls.allowed_invoice_contacts.depends.add('company')
|
cls.allowed_invoice_contacts.depends.add('company')
|
||||||
cls.invoice_contact.context = {'company': Eval('company')}
|
cls.invoice_contact.context = {'company': Eval('company', -1)}
|
||||||
cls.invoice_contact.depends.add('company')
|
cls.invoice_contact.depends.add('company')
|
||||||
|
|
||||||
def _get_invoice_sale(self):
|
def _get_invoice_sale(self):
|
||||||
|
|
Loading…
Reference in New Issue