Add patch issue10391004 which avoids the possibility of the user selecting an

account of type 'root' in analytic move lines.
This commit is contained in:
Albert Cervera i Areny 2014-07-01 16:41:57 +02:00
parent cad2062e69
commit d84549b87c
2 changed files with 16 additions and 0 deletions

15
issue10391004_1.diff Normal file
View File

@ -0,0 +1,15 @@
Index: line.py
===================================================================
--- ./trytond/trytond/modules/analytic_account/line.py
+++ ./trytond/trytond/modules/analytic_account/line.py
@@ -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)),

1
series
View File

@ -19,3 +19,4 @@ domain_validation_ca.diff
fix_sepa_translations.diff
issue12381002_1_10001.diff
issue8461003_1.diff
issue10391004_1.diff