bank-payment icon indicating copy to clipboard operation
bank-payment copied to clipboard

account_payment_order: Set invoice payment_state when an order is uploaded

Open TeoGoddet opened this issue 4 years ago • 0 comments

When a payment method is not set to automatically post the payment lines on file upload, it would be great to have the invoice payment state set to 'in_payment' so that there is no double upload while the bank is processing the file.

Seems https://github.com/odoo/odoo/blob/013efbdfbf6bd6513a0c834ad61b807c780c5e5d/addons/account/models/account_move.py#L1239 and maybe https://github.com/odoo/odoo/blob/013efbdfbf6bd6513a0c834ad61b807c780c5e5d/addons/account/models/account_move.py#L2163

Otherwise this could be overrided globally https://github.com/odoo/odoo/blob/013efbdfbf6bd6513a0c834ad61b807c780c5e5d/addons/account/models/account_move.py#L1260

Would such feature be interesting ? I could work on this this summer.

Should it be in account_payment_order or in a dedicated module extending account_payment_order ?

TeoGoddet avatar Jun 11 '21 11:06 TeoGoddet