From 96900fc18c649732e9f43a21ade3018ad9a0f029 Mon Sep 17 00:00:00 2001 From: vibhascs Date: Mon, 3 Jul 2023 14:37:26 +0530 Subject: [PATCH] [16.0][MIG]agreement_serviceprofile --- .../models/agreement_serviceprofile.py | 11 +++++------ .../views/agreement_serviceprofile.xml | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/agreement_serviceprofile/models/agreement_serviceprofile.py b/agreement_serviceprofile/models/agreement_serviceprofile.py index 01dc5c2b..acd3ed3d 100644 --- a/agreement_serviceprofile/models/agreement_serviceprofile.py +++ b/agreement_serviceprofile/models/agreement_serviceprofile.py @@ -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", @@ -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", @@ -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 diff --git a/agreement_serviceprofile/views/agreement_serviceprofile.xml b/agreement_serviceprofile/views/agreement_serviceprofile.xml index 406e373e..817fa283 100644 --- a/agreement_serviceprofile/views/agreement_serviceprofile.xml +++ b/agreement_serviceprofile/views/agreement_serviceprofile.xml @@ -5,7 +5,7 @@ Agreement Service Profile Tree agreement.serviceprofile - +