trytond-patches/issue10391004_1.diff
2016-05-30 14:20:02 +02:00

12 lines
616 B
Diff

diff -r cc5593b01647 trytond/trytond/modules/analytic_account/line.py
--- a/trytond/trytond/modules/analytic_account/line.py Wed May 11 11:34:37 2016 +0200
+++ b/trytond/trytond/modules/analytic_account/line.py Mon May 30 14:18:06 2016 +0200
@@ -27,7 +27,7 @@
'on_change_with_company')
account = fields.Many2One('analytic_account.account', 'Account',
required=True, select=True, domain=[
- ('type', '!=', 'view'),
+ ('type', 'not in', ['view', 'root']),
['OR',
('company', '=', None),
('company', '=', Eval('company', -1)),