Add sale, purchase or other kind on Tax Rule and Tax Group

review587003
This commit is contained in:
Cédric Krier committed 2012-12-05 13:02:41 +01:00
1 parent bee0176529
commit f7f0cb8f7f
1 file changed
+5 -1
+5 -1
View File
@@ -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',