# HG changeset patch # User Cédric Krier Add expand on tree view tryton-env: Add expand on tree view and unify layout of form view. issue8644 review262131002 Index: modules/account/fiscalyear.py =================================================================== --- a/trytond/trytond/modules/account/fiscalyear.py +++ b/trytond/trytond/modules/account/fiscalyear.py @@ -35,7 +35,11 @@ domain=[('end_date', '>=', Eval('start_date', None))], depends=DEPENDS + ['start_date']) periods = fields.One2Many('account.period', 'fiscalyear', 'Periods', - states=STATES, depends=DEPENDS) + states=STATES, + domain=[ + ('company', '=', Eval('company')), + ], + depends=DEPENDS + ['company']) state = fields.Selection([ ('open', 'Open'), ('close', 'Close'), Index: modules/account/view/account_list.xml =================================================================== --- a/trytond/trytond/modules/account/view/account_list.xml +++ b/trytond/trytond/modules/account/view/account_list.xml @@ -2,7 +2,7 @@ - - - + + + Index: modules/account/view/account_list_balance_sheet.xml =================================================================== --- a/trytond/trytond/modules/account/view/account_list_balance_sheet.xml +++ b/trytond/trytond/modules/account/view/account_list_balance_sheet.xml @@ -2,8 +2,8 @@ - + Index: modules/account/view/account_template_list.xml =================================================================== --- a/trytond/trytond/modules/account/view/account_template_list.xml +++ b/trytond/trytond/modules/account/view/account_template_list.xml @@ -2,6 +2,6 @@ - - + + Index: modules/account/view/account_template_tree.xml =================================================================== --- a/trytond/trytond/modules/account/view/account_template_tree.xml +++ b/trytond/trytond/modules/account/view/account_template_tree.xml @@ -2,6 +2,6 @@ - - + + Index: modules/account/view/account_tree.xml =================================================================== --- a/trytond/trytond/modules/account/view/account_tree.xml +++ b/trytond/trytond/modules/account/view/account_tree.xml @@ -2,9 +2,7 @@ - - - - - + + + Index: modules/account/view/account_tree2.xml =================================================================== --- a/trytond/trytond/modules/account/view/account_tree2.xml +++ b/trytond/trytond/modules/account/view/account_tree2.xml @@ -2,7 +2,7 @@ - + Index: modules/account/view/account_type_list.xml =================================================================== --- a/trytond/trytond/modules/account/view/account_type_list.xml +++ b/trytond/trytond/modules/account/view/account_type_list.xml @@ -2,5 +2,5 @@ - + Index: modules/account/view/account_type_template_list.xml =================================================================== --- a/trytond/trytond/modules/account/view/account_type_template_list.xml +++ b/trytond/trytond/modules/account/view/account_type_template_list.xml @@ -2,5 +2,5 @@ - + Index: modules/account/view/account_type_template_tree.xml =================================================================== --- a/trytond/trytond/modules/account/view/account_type_template_tree.xml +++ b/trytond/trytond/modules/account/view/account_type_template_tree.xml @@ -2,5 +2,5 @@ - + Index: modules/account/view/account_type_tree.xml =================================================================== --- a/trytond/trytond/modules/account/view/account_type_tree.xml +++ b/trytond/trytond/modules/account/view/account_type_tree.xml @@ -2,7 +2,5 @@ - - - + Index: modules/account/view/aged_balance_list.xml =================================================================== --- a/trytond/trytond/modules/account/view/aged_balance_list.xml +++ b/trytond/trytond/modules/account/view/aged_balance_list.xml @@ -2,7 +2,7 @@ - + Index: modules/account/view/fiscalyear_form.xml =================================================================== --- a/trytond/trytond/modules/account/view/fiscalyear_form.xml +++ b/trytond/trytond/modules/account/view/fiscalyear_form.xml @@ -3,15 +3,13 @@ this repository contains the full copyright notices and license terms. -->