Merge PR #859 into 12.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2022-08-11 14:53:47 +00:00
3 changed files with 6 additions and 1 deletions

View File

@@ -15,3 +15,4 @@ class ContractTag(models.Model):
string='Company',
default=lambda self: self.env.user.company_id,
)
color = fields.Integer("Color Index", default=0)

View File

@@ -82,7 +82,7 @@
<field name="contract_type" invisible="1"
required="1"/>
<field name="fiscal_position_id" attrs="{'readonly': [('is_terminated','=',True)]}"/>
<field name="tag_ids" widget="many2many_tags"/>
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
</group>
</group>
@@ -269,6 +269,9 @@
<field name="code"/>
<field name="journal_id" groups="account.group_account_user"/>
<field name="partner_id"/>
<field name="tag_ids"
widget="many2many_tags"
options="{'color_field': 'color'}"/>
<field name="active" invisible="1"/>
<field name="company_id" groups="base.group_multi_company"/>
</tree>

View File

@@ -10,6 +10,7 @@
<form>
<group>
<field name="name"/>
<field name="color"/>
<field name="company_id" options="{'no_create': True}"
groups="base.group_multi_company"/>
</group>