trytond-patches/issue4030.diff

13 lines
674 B
Diff
Raw Normal View History

2023-01-04 16:07:34 +01:00
diff -r 1329bfa523a8 trytond/tryton/trytond/modules/analytic_account/line.py
--- a/tryton/modules/analytic_account/line.py Mon Apr 23 17:28:19 2018 +0200
+++ b/tryton/modules/analytic_account/line.py Fri May 11 13:16:07 2018 +0200
2019-01-22 10:23:00 +01:00
@@ -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)),