a6f8d1554f89d33f132993f37ff28006af024605
A customer has a gift card product linked to a specific income account. When sold, the income account associated with the gift card product is credited correctly. The issue arises when the gift card is consumed within a sales order. An order line is added using a "dummy product" to indicate the gift card's usage (one dummy product is created for each loyalty program). Due to this, when an account move is created from the sale order, the income account defined on the dummy product is used instead of the one on the gift card product. This leads to the wrong income account being debited, causing unbalanced accounting entries. There's currently no way to link back to the original gift card product from a `loyalty.card` record. Because of this, the system cannot identify the correct income account to debit. Fixing this would require adding a new field, which we can't do in stable. A potential workaround is to find the dummy product and set the income account to the same as the gift card product. However, with one dummy product for each `loyalty.program`, all named "Gift Card", finding the right dummy product is difficult. This commit aims to simplify the workaround by adding a link to the associated dummy product on the `loyalty.program` form view. This change should ease the process of finding and modifying the correct dummy product, thus mitigating the issue in the current stable version. opw-3239720 opw-3373287 closes odoo/odoo#133461 X-original-commit: 767eccb122055cd9a474ce5110cb7296eb9ef4c2 Signed-off-by: Séna Serge Nshimiyimana (sesn) <sesn@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%