[FIX] sale: incorrect decorator
The `@api.model` decorator prevent the call to the method from a button. opw-2262445 closes odoo/odoo#51686 X-original-commit: 7de8420f2b645849a953376d6b1d8d663f3c8aa2 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -564,7 +564,6 @@ class SaleOrder(models.Model):
|
||||
}
|
||||
return invoice_vals
|
||||
|
||||
@api.model
|
||||
def action_quotation_sent(self):
|
||||
if self.filtered(lambda so: so.state != 'draft'):
|
||||
raise UserError(_('Only draft orders can be marked as sent directly.'))
|
||||
|
||||
Reference in New Issue
Block a user