[IMP] website_sale_aplicoop: Add product origin fields to product cards

- Add product_origin dependency to show country/state of origin
- Display country_id and state_id fields in product cards with map marker icon
- Show only populated fields (conditional rendering)
- Fields appear after supplier info in eskaera shop template
- Country names auto-translate based on user language (state names do not)
- Format: 'State, Country' or just 'Country' if no state
This commit is contained in:
snt 2026-02-12 16:40:01 +01:00
parent b10ba1fc15
commit 0889cdfc3a
2 changed files with 988 additions and 332 deletions

View file

@ -2,11 +2,11 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{ {
'name': 'Website Sale - Aplicoop', "name": "Website Sale - Aplicoop",
'version': '18.0.1.0.2', "version": "18.0.1.0.2",
'category': 'Website/Sale', "category": "Website/Sale",
'summary': 'Modern replacement of legacy Aplicoop - Collaborative consumption group orders', "summary": "Modern replacement of legacy Aplicoop - Collaborative consumption group orders",
'description': ''' "description": """
Website Sale - Aplicoop Website Sale - Aplicoop
======================= =======================
@ -31,52 +31,53 @@ Installation
Add to Odoo addons directory and install via Apps menu. Add to Odoo addons directory and install via Apps menu.
See README.rst for detailed documentation. See README.rst for detailed documentation.
''', """,
'author': 'Criptomart', "author": "Criptomart",
'maintainers': ['Criptomart'], "maintainers": ["Criptomart"],
'website': 'https://criptomart.net', "website": "https://criptomart.net",
'license': 'AGPL-3', "license": "AGPL-3",
'depends': [ "depends": [
'website_sale', "website_sale",
'product', "product",
'sale', "sale",
'account', "account",
'product_get_price_helper', "product_get_price_helper",
"product_origin",
], ],
'data': [ "data": [
# Datos: Grupos propios # Datos: Grupos propios
'data/groups.xml', "data/groups.xml",
# Vistas de seguridad # Vistas de seguridad
'security/ir.model.access.csv', "security/ir.model.access.csv",
'security/record_rules.xml', "security/record_rules.xml",
# Vistas # Vistas
'views/group_order_views.xml', "views/group_order_views.xml",
'views/res_partner_views.xml', "views/res_partner_views.xml",
'views/website_templates.xml', "views/website_templates.xml",
'views/product_template_views.xml', "views/product_template_views.xml",
'views/sale_order_views.xml', "views/sale_order_views.xml",
'views/portal_templates.xml', "views/portal_templates.xml",
'views/load_from_history_templates.xml', "views/load_from_history_templates.xml",
], ],
'i18n': [ "i18n": [
'i18n/es.po', "i18n/es.po",
'i18n/eu_ES.po', "i18n/eu_ES.po",
], ],
'external_dependencies': { "external_dependencies": {
'python': [], "python": [],
}, },
'assets': { "assets": {
'web.assets_frontend': [ "web.assets_frontend": [
'website_sale_aplicoop/static/src/css/website_sale.css', "website_sale_aplicoop/static/src/css/website_sale.css",
], ],
'web.assets_tests': [ "web.assets_tests": [
'website_sale_aplicoop/static/tests/test_suite.js', "website_sale_aplicoop/static/tests/test_suite.js",
'website_sale_aplicoop/static/tests/test_cart_functions.js', "website_sale_aplicoop/static/tests/test_cart_functions.js",
'website_sale_aplicoop/static/tests/test_tooltips_labels.js', "website_sale_aplicoop/static/tests/test_tooltips_labels.js",
'website_sale_aplicoop/static/tests/test_realtime_search.js', "website_sale_aplicoop/static/tests/test_realtime_search.js",
], ],
}, },
'installable': True, "installable": True,
'auto_install': False, "auto_install": False,
'application': True, "application": True,
} }

File diff suppressed because it is too large Load diff