fix: Update 7.6
This commit is contained in:
parent
6985a3aac1
commit
7ee11f1aff
10
statement.py
10
statement.py
@ -263,7 +263,8 @@ class CloseStatement(Wizard):
|
|||||||
'start_balance': s.start_balance,
|
'start_balance': s.start_balance,
|
||||||
'balance': end_balance,
|
'balance': end_balance,
|
||||||
'end_balance': (
|
'end_balance': (
|
||||||
end_balance + s.start_balance)
|
end_balance + s.start_balance),
|
||||||
|
'company': Transaction().context.get('company')
|
||||||
}
|
}
|
||||||
statementLines.append(line)
|
statementLines.append(line)
|
||||||
|
|
||||||
@ -396,6 +397,10 @@ class StatementLine(ModelView):
|
|||||||
],
|
],
|
||||||
states={'required': Eval('transfer', True)})
|
states={'required': Eval('transfer', True)})
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def default_company():
|
||||||
|
return Transaction().context.get('company')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def default_currency():
|
def default_currency():
|
||||||
Company = Pool().get('company.company')
|
Company = Pool().get('company.company')
|
||||||
@ -403,9 +408,6 @@ class StatementLine(ModelView):
|
|||||||
if company:
|
if company:
|
||||||
return Company(company).currency.id
|
return Company(company).currency.id
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def default_company():
|
|
||||||
return Transaction().context.get('company')
|
|
||||||
|
|
||||||
@fields.depends('end_balance', 'real_cash', 'mismatch')
|
@fields.depends('end_balance', 'real_cash', 'mismatch')
|
||||||
def on_change_real_cash(self):
|
def on_change_real_cash(self):
|
||||||
|
@ -10,4 +10,5 @@
|
|||||||
<field name="mismatch"/>
|
<field name="mismatch"/>
|
||||||
<field name="transfer"/>
|
<field name="transfer"/>
|
||||||
<field name="account"/>
|
<field name="account"/>
|
||||||
|
<field name="company"/>
|
||||||
</tree>
|
</tree>
|
||||||
|
Loading…
Reference in New Issue
Block a user