flectra/addons/website_sale/data/data.xml

74 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<data noupdate="1">
<record id="menu_shop" model="website.menu">
<field name="name">Shop</field>
<field name="url">/shop</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence" type="int">20</field>
</record>
<record id="action_open_website" model="ir.actions.act_url">
<field name="name">Website Shop</field>
<field name="target">self</field>
<field name="url">/shop</field>
</record>
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="action_open_website"/>
<field name="state">open</field>
</record>
<record model="crm.team" id="sales_team.salesteam_website_sales">
<field name="active" eval="True"/>
<field name="dashboard_graph_model">sale.report</field>
<field name="dashboard_graph_period">week</field>
<field name="company_id" eval="False"/>
</record>
<record model="website" id="website.default_website">
<field name="salesteam_id" ref="sales_team.salesteam_website_sales"/>
</record>
<record model="product.pricelist" id="product.list0">
<field name="selectable" eval="False" />
<field name="website_ids" eval="[(4, ref('website.default_website'))]"/>
</record>
</data>
<data>
<record id="sale.model_sale_order" model="ir.model">
<field name="website_form_access" eval="True"/>
<field name="website_form_label">Sales Order</field>
</record>
<function model="ir.model.fields" name="formbuilder_whitelist">
<value>sale.order</value>
<value eval="[
'client_order_ref',
]"/>
</function>
<record id="base.model_res_partner" model="ir.model">
<field name="website_form_access">True</field>
<field name="website_form_label">Customer</field>
</record>
<function model="ir.model.fields" name="formbuilder_whitelist">
<value>res.partner</value>
<value eval="[
'name', 'phone', 'email',
'city', 'zip', 'street', 'street2', 'state_id', 'country_id',
'vat', 'company_name'
]"/>
</function>
</data>
<data noupdate="0">
<record id="product_limit_20" model="product.view.limit">
<field name="name">20</field>
</record>
<record id="product_limit_40" model="product.view.limit">
<field name="name">40</field>
</record>
<record id="product_limit_60" model="product.view.limit">
<field name="name">60</field>
</record>
</data>
</flectra>