-
Notifications
You must be signed in to change notification settings - Fork 23k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] point_of_sale: link order invoices with reversed orders #166101
[ADD] point_of_sale: link order invoices with reversed orders #166101
Conversation
b900f1c
to
e40a977
Compare
7f7a563
to
2e7f211
Compare
@@ -10,6 +10,7 @@ class AccountMove(models.Model): | |||
pos_order_ids = fields.One2many('pos.order', 'account_move') | |||
pos_payment_ids = fields.One2many('pos.payment', 'account_move_id') | |||
pos_refunded_invoice_ids = fields.Many2many('account.move', 'refunded_invoices', 'refund_account_move', 'original_account_move') | |||
reversed_pos_order_id = fields.Many2one('pos.order', string="Reversed POS Order") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"reversed_pos_order_id" is not entirely clear what it is about.
Maybe with an explanation in help="The pos order that was reverted after closing the session to create an invoice for it. "
Or with a better name, but it quite complicated...
Otherwise, we can continue with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jco-odoo, I applied the suggested changes.
In this commit: - Added a new field to the Journal Entry to reference the POS order, which is also included in the reversed entry of the POS order. - Enhances traceability between original and reversed POS orders and their associated invoices. Task Id: 3937517
In this Commit: - Updated `_compute_amount` method in AccountMove to invert `amount_total_signed` for journal entries associated with reversed POS orders. - Ensures that the total amount reflects the reversal correctly for better accuracy in financial reporting. Task Id: 3937517
2e7f211
to
de657c6
Compare
@robodoo r+ |
@robodoo rebase-ff |
Merge method set to rebase and fast-forward. |
In this commit: - Added a new field to the Journal Entry to reference the POS order, which is also included in the reversed entry of the POS order. - Enhances traceability between original and reversed POS orders and their associated invoices. Task Id: 3937517 Part-of: #166101
In this Commit: - Updated `_compute_amount` method in AccountMove to invert `amount_total_signed` for journal entries associated with reversed POS orders. - Ensures that the total amount reflects the reversal correctly for better accuracy in financial reporting. Task Id: 3937517 closes #166101 Signed-off-by: Josse Colpaert <[email protected]>
In this commit: - Added a new field to the Journal Entry to reference the POS order, which is also included in the reversed entry of the POS order. - Enhances traceability between original and reversed POS orders and their associated invoices. Task Id: 3937517 Part-of: odoo#166101
In this Commit: - Updated `_compute_amount` method in AccountMove to invert `amount_total_signed` for journal entries associated with reversed POS orders. - Ensures that the total amount reflects the reversal correctly for better accuracy in financial reporting. Task Id: 3937517 closes odoo#166101 Signed-off-by: Josse Colpaert <[email protected]>
In this PR:
Task Id: 3937517