Julien Alardot (jual) de027b6e2b [FIX] sale{_expense,_expense_margin}: Fix re-invoicing of expenses
This deals with a bug when an expense re-invoiced
with a 'sale_price' expense_policy and 'delivery' invoice_policy

Current bad behaviour:
- When re-invoicing another expense matching the first one's
  price_unit and product the quantities aren't updated properly
- Furthermore, reversing the original move doesn't impact the sale order
- Resetting the expense sheet to draft neither

New correct behaviour:
- When re-invoicing another expense matching the first one's
  they aren't grouped together on the same line, allowing to update
  and reverse the lines independently
- Reversing the original move sets its corresponding sale order line
  quantity and delivered quantity to 0
- Resetting the expense sheet to draft does the same
- Resetting the original move does the same
- Adds clarity to the sale_stock error message, so it's understandable
  from the expense view

task-3458826

Part-of: odoo/odoo#147123
2023-12-21 17:25:01 +00:00
2023-11-02 21:02:44 +00:00
2023-12-21 10:42:50 +00:00
…
…
…

Build Status Tech Doc Help Nightly Builds

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

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%