Repository
OCA/edi · module folder · Try on Runboat
Module version
1.0.0
Category
Sale
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/edi
Last tracking update
2026-08-07 08:42:55
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Weblate, OCA-git-bot, oca-ci, Rafael Lima
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
ebill_postfinance_customer_free_ref, sale_order_import_ubl_customer_free_ref
Description
The goal of this module is to improve on the client_order_ref on
sale.order.

By default, Odoo only has one field to handle the customer reference of
a sales order.

However, an order provided by the buyer can contain an id (PO number)
and a free reference. When exchanging with the other parties, you
sometimes need to differentiate them. For instance, this is required by
some EDI flows.

To help with this, this module adds two specific fields for them and
transforms the client_order_ref standard field into a computed one.

The two new fields are also passed on to generated invoices.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_move_form account.move.customer.free.ref.form account.move form Inherits account.view_move_form
view_order_form sale.order.customer.free.ref.form sale.order form Inherits sale.view_order_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (2)
  • customer_order_free_ref Char
    copy=False string='Customer Free Reference'
  • customer_order_number Char
    copy=False
Public methods (0)

No public methods.

New fields (3)
  • client_order_ref Char
    compute='_compute_client_order_ref' copy=False inverse='_inverse_client_order_ref' store=True string='Customer Reference'
  • customer_order_free_ref Char
    copy=False string='Customer Free Reference'
  • customer_order_number Char
    copy=False
Public methods (0)

No public methods.

Loading…

Loading…