Ethan Vincent 2b3bf4a4f6 [FIX] sale_pdf_quote_builder: skip fmt empty SOLs
**Current behavior:**
Trying to print or send a sale order quotation that contains
non-saleable lines (notes or sections) will result in a
ValueError.

---

**Expected behavior:**
The quotation should print/download or be prepared for sending.

---

**Steps to reproduce:**
1. Create a new quotation with at least one note or section
   line

2. Click the action gear, select Print -> PDF Quote

---

**Cause of the issue:**
A method involved in the control flow for building a PDF from
a quotation, _get_sol_form_fields_mapping(), attempts to format
the sale price of all order lines involved in an order without
first ensuring one exists.

---

**Fix:**
The fix prevents _get_sol_form_fields_mapping() from being
invoked if the SOL does not have a linked doc (i.e., if the
line has no associated product and thus no price).

opw-3664710

closes odoo/odoo#148291

Signed-off-by: Morgane Demesmaeker <edm@odoo.com>
2024-01-22 19:00:57 +00:00
2023-11-02 21:02:44 +00:00
2024-01-16 09:55:28 +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%