Nathan Marotte (nama) 0e7b58a439 [FIX] sale_timesheet : not finding invoice when reversing with period
Issue: When reversing an invoice of timesheet and selecting a time
period, there is an user error saying there is nothing to invoice

Steps to reproduce :
 1) Create a SO with a timesheetable service
 2) Deliver some hours
 3) Invoice them
 4) Confirm the invoice, then add credit note, confirm
 5) Invoice the same hours again (the sales order indeed says 0 hours
 invoiced)
 -> There is nothing to invoice

Why is that a bug:
 When creating the invoice in `sale_make_invoice_advance`, if there is
 a period selected, we are going to search with a domain to only count
 the quantity that have not been invoiced, this is done by checking that
 either the invoice_line_ids are not set, or that they are cancelled
 but when reversing an invoice, the state is posted, so we need a better
 domain to take that in consideration

opw-2525655

closes odoo/odoo#75760

X-original-commit: 269a5da4f505998a46d834176beda4f000835175
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-09-01 07:17:49 +00:00
2021-08-16 15:19:30 +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%