[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:
Nicolas Martinelli
2020-05-22 11:35:17 +00:00
parent 0b27b4dde1
commit da19d486ea
-1
View File
@@ -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.'))