[IMP] website_sale_aplicoop: Replace product_origin with product_origin_char

- Replace dependency from product_origin to product_origin_char
- Update product card template to show origin_text field instead of country_id/state_id
- Simpler and more flexible: free text origin per supplier instead of structured fields
- Version: 18.0.1.6.0 -> 18.0.1.7.0

The new field is more suitable for creative product origins like 'Valencia, Huerta de...'
or 'Región de Murcia, cooperativa XX' which don't fit the rigid country/state structure.
This commit is contained in:
snt 2026-02-25 18:55:33 +01:00
parent e4e03d4794
commit 1779c42e9b
2 changed files with 5 additions and 18 deletions

View file

@ -1142,7 +1142,7 @@
</p>
</t>
<t
t-if="product.country_id or product.state_id"
t-if="product.origin_text"
>
<p
class="product-origin mb-2"
@ -1153,21 +1153,8 @@
aria-hidden="true"
/>
<t
t-if="product.state_id"
>
<t
t-out="product.state_id.name"
/><t
t-if="product.country_id"
>, </t>
</t>
<t
t-if="product.country_id"
>
<t
t-out="product.country_id.name"
/>
</t>
t-out="product.origin_text"
/>
</small>
</p>
</t>