Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Product Supplierinfo Code

Entity: product.template

Compute Method: _compute_supplier_product_code

Inputs Method Outputs
  • seller_ids
for prod in self:
            seller = first(prod.seller_ids)
            prod.supplier_product_code = seller.product_code

Back to entity