Conversation
Currently translated at 86.6% (26 of 30 strings) Translation: pos-14.0/pos-14.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_session_pay_invoice/es/
Currently translated at 100.0% (30 of 30 strings) Translation: pos-14.0/pos-14.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_session_pay_invoice/es/
Currently translated at 100.0% (30 of 30 strings) Translation: pos-14.0/pos-14.0-pos_session_pay_invoice Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_session_pay_invoice/it/
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/
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
Standard migration
Depends of OCA/account-payment#820
T-9200