mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
12 lines
616 B
Diff
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)),
|