Adapt statement_of_account.diff to latest changes.

This commit is contained in:
Albert Cervera i Areny 2022-05-12 09:45:56 +02:00
parent 60878e712c
commit ea2aa60415
1 changed files with 10 additions and 9 deletions

View File

@ -1,16 +1,17 @@
diff --git a/account.py b/account.py diff --git a/account.py b/account.py
index fd58736..62c3e6f 100644 index 974a027..60b320f 100644
--- a/trytond/trytond/modules/account/account.py --- a/trytond/trytond/modules/account/account.py
+++ b/trytond/trytond/modules/account/account.py +++ a/trytond/trytond/modules/account/account.py
@@ -2035,14 +2035,15 @@ class GeneralLedgerAccountContext(ModelView): @@ -2035,7 +2035,7 @@ class GeneralLedgerAccountContext(ModelView):
'General Ledger Account Context' 'General Ledger Account Context'
__name__ = 'account.general_ledger.account.context' __name__ = 'account.general_ledger.account.context'
fiscalyear = fields.Many2One('account.fiscalyear', 'Fiscal Year', fiscalyear = fields.Many2One('account.fiscalyear', 'Fiscal Year',
- required=True) - required=True,
+ required=False) + required=False,
start_period = fields.Many2One('account.period', 'Start Period',
domain=[ domain=[
('fiscalyear', '=', Eval('fiscalyear')), ('company', '=', Eval('company')),
],
@@ -2046,7 +2046,8 @@ class GeneralLedgerAccountContext(ModelView):
('start_date', '<=', (Eval('end_period'), 'start_date')), ('start_date', '<=', (Eval('end_period'), 'start_date')),
], ],
states={ states={
@ -20,7 +21,7 @@ index fd58736..62c3e6f 100644
}) })
end_period = fields.Many2One('account.period', 'End Period', end_period = fields.Many2One('account.period', 'End Period',
domain=[ domain=[
@@ -2050,7 +2051,8 @@ class GeneralLedgerAccountContext(ModelView): @@ -2054,7 +2055,8 @@ class GeneralLedgerAccountContext(ModelView):
('start_date', '>=', (Eval('start_period'), 'start_date')) ('start_date', '>=', (Eval('start_period'), 'start_date'))
], ],
states={ states={
@ -30,7 +31,7 @@ index fd58736..62c3e6f 100644
}) })
from_date = fields.Date("From Date", from_date = fields.Date("From Date",
domain=[ domain=[
@@ -2252,7 +2254,7 @@ class GeneralLedgerLine(ModelSQL, ModelView): @@ -2262,7 +2264,7 @@ class GeneralLedgerLine(ModelSQL, ModelView):
def __setup__(cls): def __setup__(cls):
super(GeneralLedgerLine, cls).__setup__() super(GeneralLedgerLine, cls).__setup__()
cls.__access__.add('account') cls.__access__.add('account')