[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:
parent
b10ba1fc15
commit
0889cdfc3a
2 changed files with 988 additions and 332 deletions
|
|
@ -2,11 +2,11 @@
|
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
|
||||
|
||||
{
|
||||
'name': 'Website Sale - Aplicoop',
|
||||
'version': '18.0.1.0.2',
|
||||
'category': 'Website/Sale',
|
||||
'summary': 'Modern replacement of legacy Aplicoop - Collaborative consumption group orders',
|
||||
'description': '''
|
||||
"name": "Website Sale - Aplicoop",
|
||||
"version": "18.0.1.0.2",
|
||||
"category": "Website/Sale",
|
||||
"summary": "Modern replacement of legacy Aplicoop - Collaborative consumption group orders",
|
||||
"description": """
|
||||
Website Sale - Aplicoop
|
||||
=======================
|
||||
|
||||
|
|
@ -31,52 +31,53 @@ Installation
|
|||
|
||||
Add to Odoo addons directory and install via Apps menu.
|
||||
See README.rst for detailed documentation.
|
||||
''',
|
||||
'author': 'Criptomart',
|
||||
'maintainers': ['Criptomart'],
|
||||
'website': 'https://criptomart.net',
|
||||
'license': 'AGPL-3',
|
||||
'depends': [
|
||||
'website_sale',
|
||||
'product',
|
||||
'sale',
|
||||
'account',
|
||||
'product_get_price_helper',
|
||||
""",
|
||||
"author": "Criptomart",
|
||||
"maintainers": ["Criptomart"],
|
||||
"website": "https://criptomart.net",
|
||||
"license": "AGPL-3",
|
||||
"depends": [
|
||||
"website_sale",
|
||||
"product",
|
||||
"sale",
|
||||
"account",
|
||||
"product_get_price_helper",
|
||||
"product_origin",
|
||||
],
|
||||
'data': [
|
||||
"data": [
|
||||
# Datos: Grupos propios
|
||||
'data/groups.xml',
|
||||
"data/groups.xml",
|
||||
# Vistas de seguridad
|
||||
'security/ir.model.access.csv',
|
||||
'security/record_rules.xml',
|
||||
"security/ir.model.access.csv",
|
||||
"security/record_rules.xml",
|
||||
# Vistas
|
||||
'views/group_order_views.xml',
|
||||
'views/res_partner_views.xml',
|
||||
'views/website_templates.xml',
|
||||
'views/product_template_views.xml',
|
||||
'views/sale_order_views.xml',
|
||||
'views/portal_templates.xml',
|
||||
'views/load_from_history_templates.xml',
|
||||
"views/group_order_views.xml",
|
||||
"views/res_partner_views.xml",
|
||||
"views/website_templates.xml",
|
||||
"views/product_template_views.xml",
|
||||
"views/sale_order_views.xml",
|
||||
"views/portal_templates.xml",
|
||||
"views/load_from_history_templates.xml",
|
||||
],
|
||||
'i18n': [
|
||||
'i18n/es.po',
|
||||
'i18n/eu_ES.po',
|
||||
"i18n": [
|
||||
"i18n/es.po",
|
||||
"i18n/eu_ES.po",
|
||||
],
|
||||
'external_dependencies': {
|
||||
'python': [],
|
||||
"external_dependencies": {
|
||||
"python": [],
|
||||
},
|
||||
'assets': {
|
||||
'web.assets_frontend': [
|
||||
'website_sale_aplicoop/static/src/css/website_sale.css',
|
||||
"assets": {
|
||||
"web.assets_frontend": [
|
||||
"website_sale_aplicoop/static/src/css/website_sale.css",
|
||||
],
|
||||
'web.assets_tests': [
|
||||
'website_sale_aplicoop/static/tests/test_suite.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_realtime_search.js',
|
||||
"web.assets_tests": [
|
||||
"website_sale_aplicoop/static/tests/test_suite.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_realtime_search.js",
|
||||
],
|
||||
},
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
'application': True,
|
||||
"installable": True,
|
||||
"auto_install": False,
|
||||
"application": True,
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue