Add web_shop_shopify module
issue10611 review362271002
This commit is contained in:
@@ -17,6 +17,7 @@ def register():
|
||||
web.Shop_Product,
|
||||
web.Shop_ProductCategory,
|
||||
web.User,
|
||||
product.Template,
|
||||
product.Product,
|
||||
product.Category,
|
||||
sale.Sale,
|
||||
|
||||
+11
@@ -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'
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user