Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Sales/Sales
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-08-07 08:42:48
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Duy (Đỗ Anh), Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
sale_order_import_ubl_line_customer_ref
Description
This module allows you to add a customer reference on a sale order line.
Lines sharing the same product but different customer references won't
be merged together in stock transfers.

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
package_level_form_view stock.package_level.form.inherit stock.package_level form Inherits stock.package_level_form_view
view_move_line_form stock.move.line.form.inherit stock.move.line form Inherits stock.view_move_line_form
view_order_form sale.order.form.inherit sale.order form Inherits sale.view_order_form
view_picking_form stock.picking.form.inherit stock.picking form Inherits stock.view_picking_form
view_quant_package_form stock.quant.package.form.inherit stock.quant.package form Inherits stock.view_quant_package_form
view_stock_move_line_detailed_operation_tree stock.move.line.operations.list.inherit stock.move.line list Inherits stock.view_stock_move_line_detailed_operation_tree
view_stock_move_operations stock.move.operations.form.inherit stock.move form Inherits stock.view_stock_move_operations
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (1)
  • customer_ref Char
    string='Customer Ref.'
Public methods (0)

No public methods.

New fields (2)
  • customer_ref Char
    compute='_compute_customer_ref' store=True
  • customer_ref_sale_line_id Many2one → sale.order.line
    comodel_name='sale.order.line' compute='_compute_customer_ref_sale_line_id' index=True store=True string='Sale Line With Customer Ref.'
Public methods (0)

No public methods.

New fields (1)
  • customer_ref Char
    related='move_id.customer_ref'
Public methods (2)
  • update_related_packages(self, vals)
    @contextmanager
    Keep packages in sync.
  • write(self, vals)

New fields (1)
  • has_customer_ref Boolean
    compute='_compute_has_customer_ref' help="Technical field to display 'Customer Ref' column in a package level."
Public methods (0)

No public methods.

New fields (1)
  • has_customer_ref Boolean
    compute='_compute_has_customer_ref' help="Technical field to display 'Customer Ref' column on moves."
Public methods (1)
  • action_detailed_operations(self)

New fields (1)
  • customer_ref Char
    help='Customer reference coming from the sale order line.' string='Customer Ref.'
Public methods (0)

No public methods.

Loading…