13 lines
685 B
Diff
13 lines
685 B
Diff
diff -r 1329bfa523a8 trytond/trytond/modules/analytic_account/line.py
|
|
--- a/trytond/trytond/modules/analytic_account/line.py Mon Apr 23 17:28:19 2018 +0200
|
|
+++ b/trytond/trytond/modules/analytic_account/line.py Fri May 11 13:16:07 2018 +0200
|
|
@@ -28,7 +28,7 @@
|
|
'on_change_with_company', searcher='search_company')
|
|
account = fields.Many2One('analytic_account.account', 'Account',
|
|
required=True, select=True, domain=[
|
|
- ('type', 'not in', ['view', 'distribution']),
|
|
+ ('type', 'not in', ['view', 'distribution', 'root']),
|
|
['OR',
|
|
('company', '=', None),
|
|
('company', '=', Eval('company', -1)),
|