mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
@@ -31,6 +31,10 @@ class ContractLine(models.Model):
|
||||
string="Analytic account",
|
||||
comodel_name='account.analytic.account',
|
||||
)
|
||||
analytic_tag_ids = fields.Many2many(
|
||||
comodel_name='account.analytic.tag',
|
||||
string='Analytic Tags',
|
||||
)
|
||||
date_start = fields.Date(
|
||||
string='Date Start',
|
||||
required=True,
|
||||
@@ -675,6 +679,7 @@ class ContractLine(models.Model):
|
||||
{
|
||||
'name': name,
|
||||
'account_analytic_id': self.analytic_account_id.id,
|
||||
'analytic_tag_ids': [(6, 0, self.analytic_tag_ids.ids)],
|
||||
'price_unit': self.price_unit,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -38,8 +38,9 @@
|
||||
</group>
|
||||
</group>
|
||||
<group name="recurrence_info" position="after">
|
||||
<group name="analytic" groups="analytic.group_analytic_accounting">
|
||||
<field name="analytic_account_id"/>
|
||||
<group name="analytic" groups="analytic.group_analytic_accounting,analytic.group_analytic_tags">
|
||||
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
|
||||
<field name="analytic_tag_ids" widget="many2many_tags" groups="analytic.group_analytic_tags"/>
|
||||
</group>
|
||||
</group>
|
||||
</field>
|
||||
@@ -87,6 +88,7 @@
|
||||
<field name="product_id"/>
|
||||
<field name="name"/>
|
||||
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
|
||||
<field name="analytic_tag_ids" widget="many2many_tags" groups="analytic.group_analytic_tags"/>
|
||||
<field name="quantity"/>
|
||||
<field name="uom_id"/>
|
||||
<field name="automatic_price"/>
|
||||
|
||||
Reference in New Issue
Block a user