File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,15 @@ class CommissionMixin(models.AbstractModel):
19
19
readonly = False ,
20
20
store = True ,
21
21
copy = True ,
22
+ precompute = True ,
22
23
)
23
24
product_id = fields .Many2one (comodel_name = "product.product" , string = "Product" )
24
25
commission_free = fields .Boolean (
25
26
string = "Comm. free" ,
26
27
compute = "_compute_commission_free" ,
27
28
store = True ,
28
29
readonly = True ,
30
+ precompute = True ,
29
31
)
30
32
commission_status = fields .Char (
31
33
compute = "_compute_commission_status" ,
@@ -126,11 +128,13 @@ class CommissionLineMixin(models.AbstractModel):
126
128
store = True ,
127
129
readonly = False ,
128
130
copy = True ,
131
+ precompute = True ,
129
132
)
130
133
amount = fields .Monetary (
131
134
string = "Commission Amount" ,
132
135
compute = "_compute_amount" ,
133
136
store = True ,
137
+ precompute = True ,
134
138
)
135
139
# Fields to be overriden with proper source (via related or computed field)
136
140
currency_id = fields .Many2one (comodel_name = "res.currency" )
You can’t perform that action at this time.
0 commit comments