Use tax sequence to order M2M of taxes

issue4120
review12461002
This commit is contained in:
Nicolas Évrard committed 2015-03-16 15:40:51 +01:00
1 parent df39555e65
commit 505d176590
1 file changed
+1
+1
View File
@@ -919,6 +919,7 @@ class PurchaseLine(ModelSQL, ModelView):
note = fields.Text('Note')
taxes = fields.Many2Many('purchase.line-account.tax',
'line', 'tax', 'Taxes',
order=[('tax.sequence', 'ASC'), ('tax.id', 'ASC')],
domain=[('parent', '=', None), ['OR',
('group', '=', None),
('group.kind', 'in', ['purchase', 'both'])],