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.

18 lines
590 B

  1. # Copyright 2019 Coop IT Easy SCRLfs
  2. # @author Pierrick Brun <pierrick.brun@akretion.com>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. from odoo import api, models
  5. class PosOrder(models.Model):
  6. _inherit = 'pos.order'
  7. @api.multi
  8. def _prepare_done_order_line_for_pos(self, order_line):
  9. res = super(PosOrder, self)\
  10. ._prepare_done_order_line_for_pos(order_line)
  11. res['container_id'] = order_line.container_id.id
  12. res['container_weight'] = order_line.container_weight
  13. res['tare'] = order_line.tare
  14. return res