From 7a6c31aa99d033ce1e0c19eea0bc56c4e7130078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 12 Oct 2021 10:15:55 +0200 Subject: [PATCH] Add web_shop_shopify module issue10611 review362271002 --- __init__.py | 1 + product.py | 11 +++++++++++ product.xml | 6 ++++++ view/product_template_form.xml | 11 +++++++++++ 4 files changed, 29 insertions(+) create mode 100644 view/product_template_form.xml diff --git a/__init__.py b/__init__.py index d961c75f7e..1a2b3aa1b1 100644 --- a/__init__.py +++ b/__init__.py @@ -17,6 +17,7 @@ def register(): web.Shop_Product, web.Shop_ProductCategory, web.User, + product.Template, product.Product, product.Category, sale.Sale, diff --git a/product.py b/product.py index 61c72044db..39562fe59c 100644 --- a/product.py +++ b/product.py @@ -1,10 +1,21 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. +from trytond.config import config from trytond.model import fields from trytond.pool import PoolMeta from trytond.pyson import Eval +if not config.get('html', 'plugins-product.template-web_shop_description'): + config.set( + 'html', 'plugins-product.template-web_shop_description', 'fullpage') + + +class Template(metaclass=PoolMeta): + __name__ = 'product.template' + + web_shop_description = fields.Text("Web Shop Description", translate=True) + class Product(metaclass=PoolMeta): __name__ = 'product.product' diff --git a/product.xml b/product.xml index 2e7f19bc44..869358fca1 100644 --- a/product.xml +++ b/product.xml @@ -3,6 +3,12 @@ this repository contains the full copyright notices and license terms. --> + + product.template + + product_template_form + + product.product diff --git a/view/product_template_form.xml b/view/product_template_form.xml new file mode 100644 index 0000000000..992592108b --- /dev/null +++ b/view/product_template_form.xml @@ -0,0 +1,11 @@ + + + + + + + + + +