[FIX] sale: use m2o instead of integer

The field order_id is a many2one on sale.order and not an integer
This commit is contained in:
RomainLibert
2018-08-23 17:44:13 +02:00
parent 02645a6005
commit dc91e3cb0e
+1 -1
View File
@@ -49,7 +49,7 @@ class SaleReport(models.Model):
discount = fields.Float('Discount %', readonly=True)
discount_amount = fields.Float('Discount Amount', readonly=True)
order_id = fields.Integer('Order ID', readonly=True)
order_id = fields.Many2one('sale.order', 'Order ID', readonly=True)
def _query(self, with_clause='', fields={}, groupby='', from_clause=''):
with_ = ("WITH %s" % with_clause) if with_clause else ""