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

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