Skip to content

Commit

Permalink
[16.0][MIG]agreement_serviceprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhascs committed Jul 3, 2023
1 parent bcd71dd commit 96900fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions agreement_serviceprofile/models/agreement_serviceprofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AgreementServiceProfile(models.Model):
def _default_stage_id(self):
return self.env.ref("agreement_serviceprofile.servpro_stage_draft")

name = fields.Char(string="Name", required=True)
name = fields.Char('Name', required=True)
stage_id = fields.Many2one(
"agreement.stage",
string="Stage",
Expand All @@ -23,13 +23,12 @@ def _default_stage_id(self):
)
agreement_id = fields.Many2one("agreement", string="Agreement", ondelete="cascade")
active = fields.Boolean(
string="Active",
'Active',
default=True,
help="If unchecked, it will allow you to hide this service profile "
"without removing it.",
help="If unchecked, it will allow you to hide this service profile without removing it.",
)

notes = fields.Text(string="Notes")
notes = fields.Text('Notes')
product_id = fields.Many2one(
"product.template",
"Service Product",
Expand All @@ -40,7 +39,7 @@ def _default_stage_id(self):
"Service Product Variant",
domain="[('is_serviceprofile', '=', True), ('type', '=', 'service')]",
)
use_product_variant = fields.Boolean("Use Product Variant", default=False)
use_product_variant = fields.Boolean('Use Product Variant', default=False)
partner_id = fields.Many2one(related="agreement_id.partner_id", string="Partner")

# Used for Kanban grouped_by view
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<field name="name">Agreement Service Profile Tree</field>
<field name="model">agreement.serviceprofile</field>
<field name="arch" type="xml">
<tree string="Service Profiles" default_order='agreement_id'>
<tree default_order='agreement_id'>
<field name="name" />
<field name="agreement_id" />
<field name="partner_id" />
Expand Down

0 comments on commit 96900fc

Please sign in to comment.