Add web_shop_shopify module

issue10611
review362271002
This commit is contained in:
Cédric Krier
2021-10-12 10:15:55 +02:00
parent f3b60a4737
commit 7a6c31aa99
4 changed files with 29 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ def register():
web.Shop_Product,
web.Shop_ProductCategory,
web.User,
product.Template,
product.Product,
product.Category,
sale.Sale,
+11
View File
@@ -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'
+6
View File
@@ -3,6 +3,12 @@
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="product_template_view_form">
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_form"/>
<field name="name">product_template_form</field>
</record>
<record model="ir.ui.view" id="product_product_view_form">
<field name="model">product.product</field>
<field name="inherit" ref="product.product_view_form"/>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//notebook/page[@id='customers']" position="inside">
<group name="web_shop_description" colspan="4" col="-1">
<field name="web_shop_description"/>
<field name="web_shop_description" string="Edit" widget="html" xexpand="0"/>
</group>
</xpath>
</data>