parent
1f7fa31b17
commit
875237e58d
|
@ -214,7 +214,7 @@ class InvoiceLine(metaclass=PoolMeta):
|
||||||
If(Bool(Eval('_parent_invoice')),
|
If(Bool(Eval('_parent_invoice')),
|
||||||
If(Eval('_parent_invoice', {}).get('type') == 'out',
|
If(Eval('_parent_invoice', {}).get('type') == 'out',
|
||||||
('type.expense', '=', True),
|
('type.expense', '=', True),
|
||||||
('type.reveue', '=', True)),
|
('type.revenue', '=', True)),
|
||||||
If(Eval('invoice_type') == 'out',
|
If(Eval('invoice_type') == 'out',
|
||||||
('type.expense', '=', True),
|
('type.expense', '=', True),
|
||||||
('type.revenue', '=', True)))
|
('type.revenue', '=', True)))
|
||||||
|
@ -227,7 +227,7 @@ class InvoiceLine(metaclass=PoolMeta):
|
||||||
Bool(Eval('_parent_invoice', {}).get('target_company')),
|
Bool(Eval('_parent_invoice', {}).get('target_company')),
|
||||||
Eval('intercompany_invoice', False)),
|
Eval('intercompany_invoice', False)),
|
||||||
},
|
},
|
||||||
depends=['intercompany_invoice', 'invoice_type', 'invoice'])
|
depends=['invoice'])
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def __setup__(cls):
|
def __setup__(cls):
|
||||||
|
|
Loading…
Reference in New Issue