[IMP] 'website_partner' compatible with Multi-Website
This commit is contained in:
parent
7366c0bd65
commit
9206847d70
@ -3,45 +3,56 @@
|
|||||||
|
|
||||||
<record id="base.partner_root" model="res.partner">
|
<record id="base.partner_root" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
<record id="base.partner_demo" model="res.partner">
|
<record id="base.partner_demo" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="base.res_partner_12" model="res.partner">
|
<record id="base.res_partner_12" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="base.res_partner_12" model="res.partner">
|
<record id="base.res_partner_12" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="base.res_partner_2" model="res.partner">
|
<record id="base.res_partner_2" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="base.res_partner_1" model="res.partner">
|
<record id="base.res_partner_1" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="base.res_partner_12" model="res.partner">
|
<record id="base.res_partner_12" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="base.res_partner_3" model="res.partner">
|
<record id="base.res_partner_3" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="base.res_partner_3" model="res.partner">
|
<record id="base.res_partner_3" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="base.res_partner_2" model="res.partner">
|
<record id="base.res_partner_2" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="base.res_partner_18" model="res.partner">
|
<record id="base.res_partner_18" model="res.partner">
|
||||||
<field name="website_published">True</field>
|
<field name="website_published">True</field>
|
||||||
|
<field name="website_ids" eval="[(4,ref('website.default_website'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="base.res_partner_10" model="res.partner">
|
<record id="base.res_partner_10" model="res.partner">
|
||||||
|
@ -10,6 +10,11 @@ class WebsiteResPartner(models.Model):
|
|||||||
|
|
||||||
website_description = fields.Html('Website Partner Full Description', strip_style=True)
|
website_description = fields.Html('Website Partner Full Description', strip_style=True)
|
||||||
website_short_description = fields.Text('Website Partner Short Description')
|
website_short_description = fields.Text('Website Partner Short Description')
|
||||||
|
website_ids = fields.Many2many('website', 'website_partner_pub_rel',
|
||||||
|
'website_id', 'partner_id',
|
||||||
|
string='Websites', copy=False,
|
||||||
|
help='List of websites in which '
|
||||||
|
'Partner is published.')
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def _compute_website_url(self):
|
def _compute_website_url(self):
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
<field name="website_published" widget="website_button"/>
|
<field name="website_published" widget="website_button"/>
|
||||||
</button>
|
</button>
|
||||||
</button>
|
</button>
|
||||||
|
<xpath expr="//field[@name='lang']" position="after">
|
||||||
|
<field name="website_ids" widget="many2many_tags"/>
|
||||||
|
</xpath>
|
||||||
</data>
|
</data>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
Loading…
Reference in New Issue
Block a user