flectra/addons/website_customer/views/res_partner_views.xml
Siddharth Bhalgami e088762a21 [IMP] Improve Multi-Website Functionalities:-
- 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
2018-02-12 18:44:52 +05:30

70 lines
2.8 KiB
XML

<?xml version="1.0"?>
<flectra>
<record id="view_partners_form_website" model="ir.ui.view">
<field name="name">view.res.partner.form.website.tags</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="website_partner.view_partners_form_website" />
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='company_id']" position="after">
<field name="website_tag_ids" widget="many2many_tags" string="Website Tags"/>
</xpath>
</data>
</field>
</record>
<record id="view_partner_tag_form" model="ir.ui.view">
<field name="name">Website Tags</field>
<field name="model">res.partner.tag</field>
<field name="arch" type="xml">
<form string="Partner Tag">
<group col="4">
<field name="name"/>
<field name="classname"/>
<field name="website_published"/>
<field name="website_ids" widget="many2many_tags"/>
<field name="active"/>
</group>
</form>
</field>
</record>
<record id="view_partner_tag_list" model="ir.ui.view">
<field name="name">Website Tags</field>
<field name="model">res.partner.tag</field>
<field eval="6" name="priority"/>
<field name="arch" type="xml">
<tree string="Website Tags">
<field name="name"/>
<field name="classname"/>
<field name="website_published"/>
<field name="active"/>
</tree>
</field>
</record>
<record id="action_partner_tag_form" model="ir.actions.act_window">
<field name="name">Website Tags</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner.tag</field>
<field name="view_type">form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a new partner tag.
</p>
<p>
Manage the partner tags to better classify them on your website.
You can add the filter by tag on your website in the "Customize" menu.
</p>
</field>
</record>
<menuitem
action="action_partner_tag_form"
id="menu_partner_tag_form"
name="Website Tags"
sequence="2"
parent="contacts.res_partner_menu_config"
/>
</flectra>