You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
507 B

# Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class PosOrderReport(models.Model):
_inherit = 'report.pos.order'
place_id = fields.Many2one(
comodel_name='pos.place', string='Place', readonly=True)
def _select(self):
res = super()._select()
res += ', s.place_id as place_id'
return res