fix: Update 7.6

This commit is contained in:
Rodia 2025-07-23 13:38:31 -03:00
parent 6985a3aac1
commit 7ee11f1aff
2 changed files with 7 additions and 4 deletions

View File

@ -263,7 +263,8 @@ class CloseStatement(Wizard):
'start_balance': s.start_balance,
'balance': end_balance,
'end_balance': (
end_balance + s.start_balance)
end_balance + s.start_balance),
'company': Transaction().context.get('company')
}
statementLines.append(line)
@ -396,6 +397,10 @@ class StatementLine(ModelView):
],
states={'required': Eval('transfer', True)})
@staticmethod
def default_company():
return Transaction().context.get('company')
@staticmethod
def default_currency():
Company = Pool().get('company.company')
@ -403,9 +408,6 @@ class StatementLine(ModelView):
if company:
return Company(company).currency.id
@staticmethod
def default_company():
return Transaction().context.get('company')
@fields.depends('end_balance', 'real_cash', 'mismatch')
def on_change_real_cash(self):

View File

@ -10,4 +10,5 @@
<field name="mismatch"/>
<field name="transfer"/>
<field name="account"/>
<field name="company"/>
</tree>