Skip to content
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

Conversation

zepa-odoo
Copy link
Contributor

In this PR:

  • 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

@C3POdoo C3POdoo requested review from a team and davidmonnom and removed request for a team May 20, 2024 07:05
@robodoo
Copy link
Contributor

robodoo commented May 20, 2024

@zepa-odoo zepa-odoo force-pushed the master-point_of_sale-add_relation_between_pos_order_with_reverse_entry-zepa branch from b900f1c to e40a977 Compare May 20, 2024 07:31
@C3POdoo C3POdoo added the RD research & development, internal work label May 20, 2024
@zepa-odoo zepa-odoo requested a review from jco-odoo May 20, 2024 08:11
@zepa-odoo zepa-odoo force-pushed the master-point_of_sale-add_relation_between_pos_order_with_reverse_entry-zepa branch 3 times, most recently from 7f7a563 to 2e7f211 Compare May 21, 2024 05:46
@@ -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")
Copy link
Contributor

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.

Copy link
Contributor Author

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
@zepa-odoo zepa-odoo force-pushed the master-point_of_sale-add_relation_between_pos_order_with_reverse_entry-zepa branch from 2e7f211 to de657c6 Compare May 23, 2024 06:13
@jco-odoo
Copy link
Contributor

@robodoo r+

@jco-odoo
Copy link
Contributor

@robodoo rebase-ff

@robodoo
Copy link
Contributor

robodoo commented May 24, 2024

Merge method set to rebase and fast-forward.

robodoo pushed a commit that referenced this pull request May 24, 2024
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
robodoo pushed a commit that referenced this pull request May 24, 2024
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]>
@robodoo robodoo closed this May 24, 2024
@robodoo robodoo added the 17.3 label May 24, 2024
zel-odoo pushed a commit to odoo-dev/odoo that referenced this pull request May 24, 2024
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
zel-odoo pushed a commit to odoo-dev/odoo that referenced this pull request May 24, 2024
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants