@@ -15,32 +15,35 @@ class CrmClaimReport(models.Model):
15
15
_auto = False
16
16
_description = "CRM Claim Report"
17
17
18
- user_id = fields .Many2one (comodel_name = "res.users" , string = "User" , readonly = True )
19
- team_id = fields .Many2one (comodel_name = "crm.team" , string = "Team" , readonly = True )
20
- nbr_claims = fields .Integer (string = "# of Claims" , readonly = True )
18
+ user_id = fields .Many2one (comodel_name = "res.users" , string = "User" )
19
+ team_id = fields .Many2one (comodel_name = "crm.team" , string = "Team" )
20
+ nbr_claims = fields .Integer (
21
+ string = "# of Claims" ,
22
+ )
21
23
company_id = fields .Many2one (
22
- comodel_name = "res.company" , string = "Company" , readonly = True
24
+ comodel_name = "res.company" ,
25
+ string = "Company" ,
23
26
)
24
- create_date = fields .Datetime (readonly = True , index = True )
25
- claim_date = fields .Datetime (readonly = True )
27
+ create_date = fields .Datetime (index = True )
28
+ claim_date = fields .Datetime ()
26
29
delay_close = fields .Float (
27
30
string = "Delay to close" ,
28
31
digits = (16 , 2 ),
29
- readonly = True ,
30
32
group_operator = "avg" ,
31
33
help = "Number of Days to close the case" ,
32
34
)
33
35
stage_id = fields .Many2one (
34
36
comodel_name = "crm.claim.stage" ,
35
37
string = "Stage" ,
36
- readonly = True ,
37
38
domain = "[('team_ids','=',team_id)]" ,
38
39
)
39
40
categ_id = fields .Many2one (
40
- comodel_name = "crm.claim.category" , string = "Category" , readonly = True
41
+ comodel_name = "crm.claim.category" ,
42
+ string = "Category" ,
41
43
)
42
44
partner_id = fields .Many2one (
43
- comodel_name = "res.partner" , string = "Partner" , readonly = True
45
+ comodel_name = "res.partner" ,
46
+ string = "Partner" ,
44
47
)
45
48
priority = fields .Selection (
46
49
selection = [("0" , "Low" ), ("1" , "Normal" ), ("2" , "High" )]
@@ -52,16 +55,19 @@ class CrmClaimReport(models.Model):
52
55
],
53
56
string = "Action Type" ,
54
57
)
55
- date_closed = fields .Datetime (string = "Close Date" , readonly = True , index = True )
56
- date_deadline = fields .Date (string = "Deadline" , readonly = True , index = True )
58
+ date_closed = fields .Datetime (string = "Close Date" , index = True )
59
+ date_deadline = fields .Date (string = "Deadline" , index = True )
57
60
delay_expected = fields .Float (
58
61
string = "Overpassed Deadline" ,
59
62
digits = (16 , 2 ),
60
- readonly = True ,
61
63
group_operator = "avg" ,
62
64
)
63
- email = fields .Integer (string = "# Emails" , readonly = True )
64
- subject = fields .Char (string = "Claim Subject" , readonly = True )
65
+ email = fields .Integer (
66
+ string = "# Emails" ,
67
+ )
68
+ subject = fields .Char (
69
+ string = "Claim Subject" ,
70
+ )
65
71
66
72
def _select (self ):
67
73
select_str = """
0 commit comments