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:
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user