All in One Remove Internal Reference from Sale/Purchase/Invoice Lines
by SprintERP Technologies https://sprinterp.com$ 15.01
All in One Enterprise Internal Reference Removal & Line Clean Suite
Automatically remove and strip product internal reference codes [default_code] from Sale, Purchase, and Invoice line descriptions.
Key Module Highlights
All in One Remove Internal Reference from Sale/Purchase/Invoice Lines
Configure Product Internal Reference Codes
Navigate to the Odoo **Sales** menu and select **Products**. Open or create any product form layout to assign an active technical product string inside the standard **"Internal Reference"** data field. When this reference code is active, Odoo defaults to appending brackets as a prefix label on line templates, which this module automatically targets and strips.
Key Logic: The extraction framework automatically checks the
default_code prefix on product selection and updates, executing a targeted
replace function to sanitize line names across all operations.
Automated Sale Order Description Sanitization
Create or open a Quotation or Sales Order layout. When a product carrying an internal reference code is added to the order lines grid, Odoo traditionally appends that code directly into the description field. This backend architecture instantly intercepts that operation, stripping the technical prefix layout entirely to leave a clean, client-ready product title.
Key Logic: The module overrides the baseline _get_product_multiline_description_sale
method and hooks into _onchange_product_id_warning to consistently clean
multi-line sales descriptions at runtime.
Clean PDF Document Layout Generation
Print or preview the external customer quotation layout report. Because the internal data framework completely strips out technical bracket combinations directly at the data record layer, the generated external PDF documents automatically display clean description rows, completely free from cluttering internal codes.
Key Logic: Since the sanitization script modifies database fields during line creation and data updates, standard QWeb report engines fetch clean description text out-of-the-box.
Sanitized Quotation and Order Line View
Once the backend processing hooks execute, the order line description grid shifts to a fully cleaned view state. While the primary product search dropdown still preserves the system reference strings for accurate lookups, the actual description cells display perfectly sanitized text labels, completely separating internal tracking indices from your active document views.
Key Logic: The clean operation safely runs at the model data layer during state mutations, maintaining separate validation references so backend search indexes and product auto-completions continue to work smoothly.
Sanitized External PDF Quotation Report
Generate or review the final printed document layout for the customer. With the backend text sanitization pipeline fully active, the external PDF layout completely isolates customers from seeing clunky database tags. The description column prints a highly polished, professional text structure that vastly improves customer-facing document design.
Key Logic: The clean text string is committed safely to the primary database fields, ensuring standard QWeb rendering routines print clean document layouts out-of-the-box without editing core report layouts.
Invoice & Bill Line Label Interception
Navigate to the Odoo **Invoicing** or **Accounting** dashboard and initialize a standard Customer Invoice or Vendor Bill. When pulling items into the invoice data grid, Odoo traditionally forces technical tracking strings inside the row labels. The module hooks instantly into this lifecycle, isolating and parsing out bracket strings to keep your operational data layout exceptionally neat.
Key Logic: The core system directly extends the operational architecture of account.move.line,
tracking data mutations over _onchange_product_id pipelines to secure clean,
un-cluttered internal lines.
Sanitized Invoice Label View Grid
Review the operational draft state after the sanitization pipeline triggers. While Odoo preserves the primary product selection references intact within the first lookup column, the actual row **"Label"** cells are automatically stripped of technical code elements. This balances precise internal tracking with clean accounting entries.
Key Logic: The underlying system securely commits clean description values directly
to the account.move.line model during lifecycle mutations, preventing technical
codes from flowing downstream into financial reports.
Purchase Line Description Interception
Navigate to the Odoo **Purchase** module and initialize a standard Request for Quotation (RFQ). When picking products within the purchase order lines grid, Odoo defaults to forcing internal product code prefixes into the item descriptions. This technical framework instantly intercepts the record pipeline to prepare the text rows for clean processing.
Key Logic: The underlying system directly extends the operational architecture of
purchase.order.line, tracking data mutations over
onchange_product_id pipelines to secure clean, un-cluttered internal lines.
Sanitized Purchase Order Description View Grid
Review the operational procurement state after the sanitization pipeline triggers. While Odoo preserves the primary product selection references intact within the first lookup column, the actual row **"Description"** cells are automatically stripped of technical code elements. This balances precise internal warehouse tracking with clean outbound vendor records.
Key Logic: The underlying system securely commits clean description values directly
to the purchase.order.line model during lifecycle mutations, preventing
internal tracking tags from being printed on final RFQ sheets.
Key Features & Capabilities
Sanitize operational line layouts and maintain professional, clean customer-facing document descriptions in Odoo.
Sales Description Cleansing
Intercepts quotation layouts during product selection to strip technical product codes, ensuring clean descriptions for end customers.
Purchase Line Sanitizer
Automatically parses and eliminates the default code prefix from purchase lines during vendor procurement setups and RFQ modifications.
Invoice & Bill Label Control
Suppresses technical internal code brackets from appearing on validated customer invoices, credit notes, and incoming vendor bills.
Smart Prefix Tokenization
Intelligently matches and targets both standard spaced prefixes "[REF] " and tight string formats "[REF]" to completely normalize description text.
Multi-Event Lifecycle Hooks
Applies extraction routines simultaneously across onchange operations, record data initialization, and standard transactional line write updates.
Bulk Optimization Ready
Engineered strictly with Odoo multi-create decorators to handle high-volume import tasks and automated document generation without bottlenecks.
Need Any Help?
Installation, Configuration & Bug Fixing support from our experts.
© 2017 SprintERP Technologies. All Rights Reserved.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Purchase (purchase) • Sales (sale_management) • Discuss (mail) |
| Lines of code | 97 |
| Technical Name |
se_all_in_one_remove_description |
| License | OPL-1 |
| Website | https://sprinterp.com |
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