diff --git a/crm_claim/README.rst b/crm_claim/README.rst index 59d00a0af64..44fa779089c 100644 --- a/crm_claim/README.rst +++ b/crm_claim/README.rst @@ -93,6 +93,10 @@ Contributors - Fernando La Chica +- `APSL-Nagarro `__: + + - Bernat Obrador + Maintainers ----------- diff --git a/crm_claim/__manifest__.py b/crm_claim/__manifest__.py index ffe9ef8ac12..46c5cd432e0 100644 --- a/crm_claim/__manifest__.py +++ b/crm_claim/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Claims Management", - "version": "16.0.1.2.0", + "version": "17.0.1.0.0", "category": "Customer Relationship Management", "author": "Odoo S.A., Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/crm", diff --git a/crm_claim/models/crm_claim.py b/crm_claim/models/crm_claim.py index 7f12ea55e91..cff15a686d5 100644 --- a/crm_claim/models/crm_claim.py +++ b/crm_claim/models/crm_claim.py @@ -44,10 +44,10 @@ def _selection_model(self): active = fields.Boolean(default=True) description = fields.Text() resolution = fields.Text() - create_date = fields.Datetime(string="Creation Date", readonly=True) - write_date = fields.Datetime(string="Update Date", readonly=True) + create_date = fields.Datetime(string="Creation Date") + write_date = fields.Datetime(string="Update Date") date_deadline = fields.Date(string="Deadline") - date_closed = fields.Datetime(string="Closed", readonly=True) + date_closed = fields.Datetime(string="Closed") date = fields.Datetime(string="Claim Date", index=True, default=fields.Datetime.now) model_ref_id = fields.Reference( selection="_selection_model", string="Model Reference" diff --git a/crm_claim/readme/CONTRIBUTORS.md b/crm_claim/readme/CONTRIBUTORS.md index c959439422d..5579bcf7585 100644 --- a/crm_claim/readme/CONTRIBUTORS.md +++ b/crm_claim/readme/CONTRIBUTORS.md @@ -5,3 +5,5 @@ - Ruchir Shukla \<\> - [Guadaltech](https://www.guadaltech.es): - Fernando La Chica \<\> +- [APSL-Nagarro](): + - Bernat Obrador \<\> diff --git a/crm_claim/report/crm_claim_report.py b/crm_claim/report/crm_claim_report.py index 75258f824b2..dce87e8c6e6 100644 --- a/crm_claim/report/crm_claim_report.py +++ b/crm_claim/report/crm_claim_report.py @@ -15,32 +15,35 @@ class CrmClaimReport(models.Model): _auto = False _description = "CRM Claim Report" - user_id = fields.Many2one(comodel_name="res.users", string="User", readonly=True) - team_id = fields.Many2one(comodel_name="crm.team", string="Team", readonly=True) - nbr_claims = fields.Integer(string="# of Claims", readonly=True) + user_id = fields.Many2one(comodel_name="res.users", string="User") + team_id = fields.Many2one(comodel_name="crm.team", string="Team") + nbr_claims = fields.Integer( + string="# of Claims", + ) company_id = fields.Many2one( - comodel_name="res.company", string="Company", readonly=True + comodel_name="res.company", + string="Company", ) - create_date = fields.Datetime(readonly=True, index=True) - claim_date = fields.Datetime(readonly=True) + create_date = fields.Datetime(index=True) + claim_date = fields.Datetime() delay_close = fields.Float( string="Delay to close", digits=(16, 2), - readonly=True, group_operator="avg", help="Number of Days to close the case", ) stage_id = fields.Many2one( comodel_name="crm.claim.stage", string="Stage", - readonly=True, domain="[('team_ids','=',team_id)]", ) categ_id = fields.Many2one( - comodel_name="crm.claim.category", string="Category", readonly=True + comodel_name="crm.claim.category", + string="Category", ) partner_id = fields.Many2one( - comodel_name="res.partner", string="Partner", readonly=True + comodel_name="res.partner", + string="Partner", ) priority = fields.Selection( selection=[("0", "Low"), ("1", "Normal"), ("2", "High")] @@ -52,16 +55,19 @@ class CrmClaimReport(models.Model): ], string="Action Type", ) - date_closed = fields.Datetime(string="Close Date", readonly=True, index=True) - date_deadline = fields.Date(string="Deadline", readonly=True, index=True) + date_closed = fields.Datetime(string="Close Date", index=True) + date_deadline = fields.Date(string="Deadline", index=True) delay_expected = fields.Float( string="Overpassed Deadline", digits=(16, 2), - readonly=True, group_operator="avg", ) - email = fields.Integer(string="# Emails", readonly=True) - subject = fields.Char(string="Claim Subject", readonly=True) + email = fields.Integer( + string="# Emails", + ) + subject = fields.Char( + string="Claim Subject", + ) def _select(self): select_str = """ diff --git a/crm_claim/static/description/index.html b/crm_claim/static/description/index.html index 4ac5c76dc54..a6c5c4fc501 100644 --- a/crm_claim/static/description/index.html +++ b/crm_claim/static/description/index.html @@ -441,6 +441,10 @@

Contributors

  • Fernando La Chica <fernando.lachica@guadaltech.es>
  • +
  • APSL-Nagarro: +
  • diff --git a/crm_claim/views/crm_claim_views.xml b/crm_claim/views/crm_claim_views.xml index 124e8ee88fd..fac4fb33719 100644 --- a/crm_claim/views/crm_claim_views.xml +++ b/crm_claim/views/crm_claim_views.xml @@ -11,8 +11,8 @@ - - + + @@ -73,9 +73,9 @@ - - - + + + diff --git a/crm_claim/views/res_partner_views.xml b/crm_claim/views/res_partner_views.xml index 80ddd98896c..91e3167da74 100644 --- a/crm_claim/views/res_partner_views.xml +++ b/crm_claim/views/res_partner_views.xml @@ -10,7 +10,7 @@