[18.0] [MIG] pos_session_pay_invoice#1472
Conversation
642bbe1 to
6bfe20c
Compare
dd612a9 to
868f215
Compare
javierizaca
left a comment
There was a problem hiding this comment.
Functional review completed. The module works as expected, allowing payments to be made from the backend of an active session. LGTM.
| "partner_id": self.invoice_id.partner_id.id, | ||
| "account_move": self.invoice_id.id, | ||
| "state": "invoiced", | ||
| "state": "draft", |
There was a problem hiding this comment.
Is it validated at some point?
There was a problem hiding this comment.
It is validated (or set as 'invoiced') here: https://github.com/OCA/pos/pull/1472/files#diff-f228ebf7313229f41451c1c8f72b80d566b40b9075e7fefd8dfac7313711e159R92
I searched for highet level function in pos.order to assign the state, but found anything useful for this case
There was a problem hiding this comment.
Have you tried the following function 'action_pos_order_invoice' which calls '_generate_pos_order_invoice' which generates an invoice and marks the 'pos order' as invoiced?
There was a problem hiding this comment.
We don't have to generate a new invoice, the invoice is already generated. We are associating a new pos order with an already created invoice. So using that function does not make sense for me
868f215 to
9d88a07
Compare
9d88a07 to
6dabf01
Compare
|
/ocabot migration pos_session_pay_invoice |
cristina-hidalgo-tecnativa
left a comment
There was a problem hiding this comment.
I've tested this locally, both at code level and functionally.
Regarding the CI/CD failures, they don't seem related to this module at all — for example, the IrModuleModule._load_pos_data_fields() error (tracked in odoo/odoo#241122) was already fixed in the OCB via commit OCA/OCB@692620ab6.
Also, the module's own tests pass cleanly on my end, so LGTM.
Currently translated at 100.0% (30 of 30 strings) Translation: pos-16.0/pos-16.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_session_pay_invoice/it/
…rders createds with this module
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-16.0/pos-16.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_session_pay_invoice/
Currently translated at 100.0% (8 of 8 strings) Translation: pos-16.0/pos-16.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_session_pay_invoice/it/
…S session To prevent mistakes, users must select only the journals available in the pos.payment.method of the POS session.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-16.0/pos-16.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_session_pay_invoice/
… customer transactions Before this commit, the wizard generated an account.bank.statement.line, but the problem was that when the POS had cash control enabled, all transactions generated by this wizard were displayed under Cash, because Odoo considered such statements as Cash In/Out operations, see https://github.com/odoo/odoo/blob/c1d3153ed564c0f47a201e5751740857a15d7db2/addons/point_of_sale/models/pos_session.py#L557-L567. Now, the transactions are shown under Cash or Bank depending on the payment method and journal type. For payments of vendor bills, a statement line will still be created, because the POS only works with receivable accounts and cannot reconcile with payable accounts. See https://github.com/odoo/odoo/blob/c1d3153ed564c0f47a201e5751740857a15d7db2/addons/point_of_sale/models/pos_order.py#L890-L898
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-16.0/pos-16.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_session_pay_invoice/
Currently translated at 100.0% (12 of 12 strings) Translation: pos-16.0/pos-16.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_session_pay_invoice/it/
6dabf01 to
64477f2
Compare
|
Rebased to see if the tests pass now |
|
Waiting OCA/oca-ci#123 for the CI to greenify. |
64477f2 to
fd65042
Compare
|
Hello @pedrobaeza This pull request is ready, in case you want to review it or merge it. Thanks! |
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at e826150. Thanks a lot for contributing to OCA. ❤️ |
Standard migration
Depends of OCA/account-payment#820
T-9200