mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Post transfer account move by default, like for an invoice
Add sum in bank payment line tree view
This commit is contained in:
committed by
Pedro M. Baeza
parent
287c05c4c3
commit
e881c2aaa1
@@ -46,7 +46,8 @@
|
||||
<field name="bank_id"/>
|
||||
<field name="date"/>
|
||||
<field name="amount_currency" widget="monetary"
|
||||
options="{'currency_field': 'currency'}"/>
|
||||
options="{'currency_field': 'currency'}"
|
||||
sum="Total Amount"/>
|
||||
<field name="currency"/>
|
||||
<field name="name"/>
|
||||
<field name="company_id" groups="base.group_multi_company"
|
||||
|
||||
@@ -261,10 +261,8 @@ class PaymentOrder(models.Model):
|
||||
aml_obj.create(trf_ml_vals)
|
||||
self._reconcile_payment_lines(blines)
|
||||
|
||||
# consider entry_posted on account_journal
|
||||
if move.journal_id.entry_posted:
|
||||
# post account move
|
||||
move.post()
|
||||
# post account move
|
||||
move.post()
|
||||
|
||||
# State field is written by act_sent_wait
|
||||
self.write({'date_sent': fields.Date.context_today(self)})
|
||||
|
||||
Reference in New Issue
Block a user