[IMP] odex_benefit: Add agree_terms field for services

This commit is contained in:
younes 2025-12-01 14:55:58 +01:00
parent c5d8fc2292
commit 5bd2b229c4
2 changed files with 2 additions and 0 deletions

View File

@ -218,6 +218,7 @@ class ServiceRequest(models.Model):
('done', 'Done Payment'), ], copy=False, compute="_compute_payment_order_state", store=True)
total_moves = fields.Integer(string="Total Move", compute='_get_total_move_lines')
return_reason_id = fields.Many2one("return.reason", string="Return Reason")
agree_terms = fields.Boolean(string="I agree to the Terms and Conditions",default=False,)
@api.depends('payment_order_ids')
def _compute_payment_order(self):

View File

@ -291,6 +291,7 @@
readonly="1"/>
<field name="required_attach" invisible="1"/>
<field name="is_seasonal" invisible="1"/>
<field name="agree_terms" invisible="1" widget="boolean_toggle"/>
</group>
</group>
<group>