addons-cm/product_origin_char/models/product_template.py
snt 5efe57dc19 [REF] product_origin_char: simplify to template-based origin
- Move origin_text field from product.supplierinfo to product.template
- Add related field in product.product for variant access
- Remove dependency on product_main_seller
- Update views to show field near category (editable)
- Rewrite tests for new architecture
- Update all documentation (README, readme/ fragments)
- Bump version to 18.0.2.0.0
2026-03-06 17:43:20 +01:00

14 lines
316 B
Python

# Copyright 2026 Criptomart
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo import models
class ProductTemplate(models.Model):
_inherit = "product.template"
origin_text = fields.Char(
string="Origin",
help="Origin of the product.",
)