[FIX] website_customer: rename tag into website tag
Confusing since b51795e924
todo: merge 2 models?
This commit is contained in:
@@ -7,7 +7,7 @@ class res_partner(osv.Model):
|
||||
_inherit = 'res.partner'
|
||||
|
||||
_columns = {
|
||||
'tag_ids': fields.many2many('res.partner.tag', id1='partner_id', id2='tag_id', string='Tags'),
|
||||
'website_tag_ids': fields.many2many('res.partner.tag', id1='partner_id', id2='tag_id', string='Website tags', oldname="tag_ids"),
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ class res_partner_tags(osv.Model):
|
||||
_columns = {
|
||||
'name': fields.char('Category Name', required=True, translate=True),
|
||||
'partner_ids': fields.many2many('res.partner', 'res_partner_res_partner_tag_rel', id1='tag_id', id2='partner_id', string='Partners'),
|
||||
'classname': fields.selection(get_selection_class, 'Class', help="Bootstrap class to customize the color of the tag", required=True),
|
||||
'classname': fields.selection(get_selection_class, 'Class', help="Bootstrap class to customize the color", required=True),
|
||||
'active': fields.boolean('Active'),
|
||||
}
|
||||
_defaults = {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="//field[@name='company_id']" position="after">
|
||||
<field name="tag_ids" widget="many2many_tags" string="Website Tags"/>
|
||||
<field name="website_tag_ids" widget="many2many_tags" string="Website Tags"/>
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user