e088762a21
- Affected Modules: website_sale, website_blog, website_partner, website_crm_partner_assign, website_customer, website_slides, website_links, website_membership, website_hr, website_hr_recruitment, website_payment, website_sale_delivery, website_forum, website_event - Remove unnecessary model `website.product.pricelist` from website_sale, All its mechanism already transferd to existing model `product.pricelist` - Change in `product.pricelist` model, make website_id(o2m) to website_ids(m2m), As user can choose that same pricelist can be used in multiple websites - Added `default_website` as default values in `website_ids(m2m)` & `website_id(m2o)` field in almost all affected modules (mentioned above!!) - To use/publish things(like... product, pricelist, blog, forum, events, etc...) in website, User have to set `website_published` mechanism `on` (if it's available for that model/object), Also have to set/assign different websites in `website_ids` field as per needs
75 lines
2.8 KiB
XML
75 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>
|