incoterm
This page combines editorial guidance with evidence extracted from the selected official branch. Always test the flow with your own permissions and configuration.
Purpose
This Incoterm Model is used to manage the Incoterms <https://en.wikipedia.org/wiki/Incoterms>_ on sales, purchases and shipments. The module contains the Incoterm versions of 2000, 2010 and 2020.
The analysis found 13 Python files, 27 XML files, 18 views, 3 actions, 1 menus, and 0 reports.
Functional user guide
Who should use it
This module is relevant to people responsible for incoterm processes, company configuration, and result review. Administrators should participate whenever dependencies, permissions, or sequences are introduced.
What you will be able to do
After configuration, you will be able to identify the records added by incoterm, execute actions in the correct state, and understand the information shared with other modules.
Requirements and preparation
Before activation, verify company, currency, users, and groups. Install and configure required dependencies first. When real data exists, rehearse activation and upgrades on a restored copy.
Activate dependencies first, review company configuration, and rehearse the complete workflow before production use.
Required dependencies
company— must be installed and configured before testing this module.country— must be installed and configured before testing this module.ir— must be installed and configured before testing this module.party— must be installed and configured before testing this module.
Optional integrations
account_invoice— enables an additional integration; test the combination explicitly.account_invoice_stock— enables an additional integration; test the combination explicitly.carrier— enables an additional integration; test the combination explicitly.purchase— enables an additional integration; test the combination explicitly.purchase_request_quotation— enables an additional integration; test the combination explicitly.sale— enables an additional integration; test the combination explicitly.sale_opportunity— enables an additional integration; test the combination explicitly.sale_shipment_cost— enables an additional integration; test the combination explicitly.sale_shipment_grouping— enables an additional integration; test the combination explicitly.stock— enables an additional integration; test the combination explicitly.stock_package_shipping— enables an additional integration; test the combination explicitly.web_shop— enables an additional integration; test the combination explicitly.
Recommended initial configuration
- Activate the module and sign in again to load menus and permissions.
- Review new company configuration options and defaults.
- Assign groups to test users using least privilege.
- Create small, verifiable master data before bulk imports.
- Run one complete scenario from draft to final state and inspect related records.
Module objects and concepts
- account.invoice: groups 2 model(s), including
account.invoice,account.invoice.line. These records form the information users inspect or modify during the process. - carrier: groups 1 model(s), including
carrier. These records form the information users inspect or modify during the process. - company.company: groups 1 model(s), including
company.company. These records form the information users inspect or modify during the process. - incoterm.incoterm: groups 1 model(s), including
incoterm.incoterm. These records form the information users inspect or modify during the process. - incoterm.incoterm-company: groups 1 model(s), including
incoterm.incoterm-company.company. These records form the information users inspect or modify during the process. - party.address: groups 1 model(s), including
party.address. These records form the information users inspect or modify during the process. - party.incoterm: groups 1 model(s), including
party.incoterm. These records form the information users inspect or modify during the process. - party.party: groups 1 model(s), including
party.party. These records form the information users inspect or modify during the process. - purchase.purchase: groups 1 model(s), including
purchase.purchase. These records form the information users inspect or modify during the process. - purchase.request: groups 2 model(s), including
purchase.request.create_purchase,purchase.request.quotation. These records form the information users inspect or modify during the process. - sale.opportunity: groups 1 model(s), including
sale.opportunity. These records form the information users inspect or modify during the process. - sale.sale: groups 1 model(s), including
sale.sale. These records form the information users inspect or modify during the process. - stock.shipment: groups 4 model(s), including
stock.shipment.in,stock.shipment.in.return,stock.shipment.out,stock.shipment.out.return. These records form the information users inspect or modify during the process. - web.shop: groups 1 model(s), including
web.shop. These records form the information users inspect or modify during the process.
Typical workflow
- Select the correct company and date before creating a document.
- Complete master data before lines or details.
- Use form buttons for state changes; saving is not the same as validating or posting.
- Review warnings, totals, related documents, and traceability.
- Verify effects on dependent modules before closing the process.
Actions, states, and wizards
quotation— action or transition that starts quotation. Check permissions, current state, and related records before running it.received— action or transition that starts received. Check permissions, current state, and related records before running it.waiting— action or transition that starts waiting. Check permissions, current state, and related records before running it.
Controls before production
- Define who creates, reviews, confirms, cancels, and reads.
- Test closed periods, unauthorized users, and incomplete data.
- Verify numbering, currency, rounding, and time zone where applicable.
- Document error correction without direct database edits.
- Include its tables and files in backup and restore procedures.
Troubleshooting
- If a menu is missing, verify activation, module-list update, groups, and a new login session.
- If a field rejects a value, inspect its domain, company, state, and configured dependencies.
- If a button is hidden or disabled, check permissions and valid transitions; never change state with SQL.
- If results differ, reproduce a minimal case and compare related records before and after.
- Keep the full traceback, version, active modules, and minimal data needed to diagnose an error.
Developer guide
Architecture and extension points
The package contains 26 Python classes and declares or extends 19 models. It uses Boolean, Char, Function, Many2Many, Many2One, One2Many, Selection. Developers should first determine whether a class creates a model or uses PoolMeta to extend one, preserve super() calls, and avoid duplicating dependency rules.
Registered or extended models
account.invoiceaccount.invoice.linecarriercompany.companyincoterm.incotermincoterm.incoterm-company.companyparty.addressparty.incotermparty.partypurchase.purchasepurchase.request.create_purchasepurchase.request.quotationsale.opportunitysale.salestock.shipment.instock.shipment.in.returnstock.shipment.outstock.shipment.out.returnweb.shop
Field types used
BooleanCharFunctionMany2ManyMany2OneOne2ManySelection
Detected classes and public methods
Classes: Address, Carrier, Company, DifferentIncotermWarning, Incoterm, IncotermAvailableMixin, IncotermMixin, Incoterm_Company, Invoice, InvoiceLine, Opportunity, Party, Purchase, RequestCreatePurchase, RequestQuotation, Sale, Sale_Carrier, Sale_WebShop, ShipmentIn, ShipmentInReturn, ShipmentIn_Purchase, ShipmentMixin, ShipmentOut, ShipmentOutReturn, ShipmentOut_Sale, Shop
Methods: check_for_quotation(), default_company(), get_incoterms(), get_is_incoterm_related(), get_rec_name(), get_sale(), incoterm_name(), on_change_carrier(), on_change_company(), on_change_incoterm(), on_change_party(), on_change_shipment_cost_method(), on_change_with_available_incoterms(), on_change_with_incoterm_location_required(), on_modification(), order_is_incoterm_related(), quote(), receive(), shipping_to(), shipping_to_address(), wait()
Code map
Detected 13 Python files, 27 XML files, and 0 explicit access files. XML connects models to views, menus, actions, and reports; access CSV files establish initial permissions.
__init__.pyaccount.pycarrier.pycarrier.xmlcommon.pycompany.pycompany.xmldoc/conf.pyexceptions.pyincoterm.pyincoterm.xmlmessage.xmlparty.pyparty.xmlpurchase.pypurchase.xmlsale.pysale.xmlstock.pystock.xmlview/carrier_form.xmlview/carrier_list.xmlview/company_form.xmlview/incoterm_form.xmlview/incoterm_list.xmlview/party_form_purchase.xmlview/party_form_sale.xmlview/party_incoterm_form.xmlview/party_incoterm_list.xmlview/purchase_form.xmlview/purchase_request_quotation_form.xmlview/sale_form.xmlview/sale_opportunity_form.xmlview/stock_shipment_in_form.xmlview/stock_shipment_in_return_form.xmlview/stock_shipment_out_form.xmlview/stock_shipment_out_return_form.xmlview/web_shop_form.xmlweb.pyweb.xml
Test plan
- Activation on an empty database and upgrade from the previous revision.
- Create, update, copy, and delete according to state and access rights.
- Every button, transition, and wizard with valid and invalid scenarios.
- Applicable multi-company rules, translations, time zones, and currencies.
- Combined installation with required and optional dependencies.
- Backup and restore of records, attachments, and generated reports.
Compatibility and upgrades
Keep server and modules on series 8.0. Before upgrading, compare tryton.cfg, __register__ migrations, state changes, XML IDs, and permissions. A successful build does not replace a rehearsed migration or functional data reconciliation.
Official documentation evidence
Topics found: Design · Incoterm · Incoterm Module · Usage · Activate an Incoterm for a company
-
- doc/design.rst: The Incoterm Module introduces the following concepts:
-
- doc/index.rst: This Incoterm Model is used to manage the
Incoterms <https://en.wikipedia.org/wiki/Incoterms>_ on sales, purchases and shipments. The module contains the Incoterm versions of 2000, 2010 and 2020.
- doc/index.rst: This Incoterm Model is used to manage the
-
- doc/usage.rst: To allow the usage of an
Incoterm <model-incoterm.incoterm>in Tryton, you must add it to theIncotermsfield of theCompany <company:model-company.company>. You can also remove it later to prevent it from being used in the future.
- doc/usage.rst: To allow the usage of an