feat: hide authorizer for rental orders, auto-set sale type

Rental orders no longer show the "Authorizer Required?" question or
the Authorizer field. The sale type is automatically set to 'Rentals'
when creating or confirming a rental order. Validation logic also
skips authorizer checks for rental sale type.

Made-with: Cursor
This commit is contained in:
gsinghpal
2026-02-25 23:33:23 -05:00
parent 3c8f83b8e6
commit 14fe9ab716
51 changed files with 4192 additions and 822 deletions

View File

@@ -1,4 +1,4 @@
from odoo import fields, models
from odoo import api, fields, models
class RentalRenewalLog(models.Model):
@@ -67,6 +67,7 @@ class RentalRenewalLog(models.Model):
)
notes = fields.Text(string="Notes")
@api.depends('order_id', 'renewal_number')
def _compute_display_name(self):
for rec in self:
rec.display_name = (