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.

28 lines
1.0 KiB

  1. # -*- coding: utf-8 -*-
  2. # Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)
  3. # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. from openerp import fields, models
  6. class PosPartialReturnWizardLine(models.TransientModel):
  7. _name = 'pos.partial.return.wizard.line'
  8. wizard_id = fields.Many2one(
  9. comodel_name='pos.partial.return.wizard', string='Wizard')
  10. pos_order_line_id = fields.Many2one(
  11. comodel_name='pos.order.line', required=True, readonly=True,
  12. string='Line To Return')
  13. initial_qty = fields.Float(
  14. string='Initial Quantity', readonly=True,
  15. help="Quantity of Product initially sold")
  16. max_returnable_qty = fields.Float(
  17. string='Returnable Quantity', readonly=True,
  18. help="Compute maximum quantity that can be returned for this line,"
  19. " depending of the quantity of the line and other possible refunds.")
  20. qty = fields.Float(string='Returned Quantity', default=0.0)