| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 46 |
| Technical Name |
xpt_hide_so_lines |
| License | OPL-1 |
| Website | https://xpedyt.pl |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 46 |
| Technical Name |
xpt_hide_so_lines |
| License | OPL-1 |
| Website | https://xpedyt.pl |
Hide Lines from Customer
Keep internal sale order lines out of customer PDFs and the portal — with a single checkbox.
Overview
Sale orders sometimes include lines that are meant for internal use only — handling fees, internal service charges, margin buffers, or informational lines that the customer should not see. Removing them from the order is not an option because they affect the total or are needed for accounting. Sending a manually edited PDF every time is slow and error-prone.
Hide Lines from Customer solves this cleanly. A single Hide from Customer checkbox on each sale order line controls whether that line appears in the customer-facing PDF report and in the portal view. Checked lines remain fully visible to internal users, are processed normally in the order total, and are never accidentally sent to the customer.
Hide from Customer checkbox on every line
A Hide from Customer column is added to the sale order lines tab. Checking the box on any line immediately marks it as internal-only. The flag is:
- unchecked by default — no change to existing orders or workflow,
- visible to all internal users with access to the sale order,
- preserved when the order is confirmed, invoiced, or duplicated.
There is no limit on how many lines can be hidden in a single order.
Excluded from the PDF report
When the customer PDF is generated (quotation or order confirmation), hidden lines are automatically filtered out. The PDF the customer receives shows only the lines intended for them.
Internal users printing or previewing the same order from the backend see all lines, including the hidden ones, so nothing is lost for internal reference.
Hidden in the customer portal
The same filter applies to the portal view. When a customer logs into the Odoo portal and opens their order, hidden lines do not appear in the order table. The portal total reflects only what the customer can see, keeping the experience consistent with the PDF they received.
Order totals stay correct internally
Hiding a line from the customer does not remove it from the order internally. The line amount is still included in the order total on the backend, flows through to the invoice, and is accounted for normally. The Hide from Customer flag only controls visibility in customer-facing output — it has no effect on pricing, taxes, or accounting.
Requirements
- Odoo 19
- Module dependency:
sale
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module