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 @@ + + + + + + + + + +