Add sale, purchase or other kind on Tax Rule and Tax Group
review587003
This commit is contained in:
1 parent
bee0176529
commit
f7f0cb8f7f
1 file changed
+5
-1
@@ -960,7 +960,11 @@ class SaleLine(ModelSQL, ModelView):
|
||||
description = fields.Text('Description', size=None, required=True)
|
||||
note = fields.Text('Note')
|
||||
taxes = fields.Many2Many('sale.line-account.tax', 'line', 'tax', 'Taxes',
|
||||
domain=[('parent', '=', None)], states={
|
||||
domain=[('parent', '=', None), ['OR',
|
||||
('group', '=', None),
|
||||
('group.kind', 'in', ['sale', 'both'])],
|
||||
],
|
||||
states={
|
||||
'invisible': Eval('type') != 'line',
|
||||
}, depends=['type'])
|
||||
invoice_lines = fields.Many2Many('sale.line-account.invoice.line',
|
||||
|
||||
Reference in new issue
Block a user