Sale Stock Line Customer Reference

sale_stock_line_customer_ref
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/18.0/sale_stock_line_customer_ref
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales/Sales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Duy (Đỗ Anh)
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits stock.package_level_form_view
view_move_line_form stock.move.line.form.inherit stock.move.line field Inherits stock.view_move_line_form
view_order_form sale.order.form.inherit sale.order xpath Inherits sale.view_order_form
view_picking_form stock.picking.form.inherit stock.picking xpath Inherits stock.view_picking_form
view_quant_package_form stock.quant.package.form.inherit stock.quant.package xpath Inherits stock.view_quant_package_form
view_stock_move_line_detailed_operation_tree stock.move.line.operations.list.inherit stock.move.line field Inherits stock.view_stock_move_line_detailed_operation_tree
view_stock_move_operations stock.move.operations.form.inherit stock.move field Inherits stock.view_stock_move_operations
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.

REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/14.0/sale_stock_line_customer_ref
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales/Sales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Simone Orsi, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
package_level_form_view stock.package_level.form.inherit stock.package_level field Inherits stock.package_level_form_view
view_move_line_form stock.move.line.form.inherit stock.move.line field Inherits stock.view_move_line_form
view_order_form sale.order.form.inherit sale.order xpath Inherits sale.view_order_form
view_picking_form stock.picking.form.inherit stock.picking field Inherits stock.view_picking_form
view_quant_package_form stock.quant.package.form.inherit stock.quant.package group Inherits stock.view_quant_package_form
view_stock_move_line_detailed_operation_tree stock.move.line.operations.tree.inherit stock.move.line field Inherits stock.view_stock_move_line_detailed_operation_tree
view_stock_move_operations stock.move.operations.form.inherit stock.move field Inherits stock.view_stock_move_operations
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
    readonly=True 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 (0)

No public methods.

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

No public methods.