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.

15 lines
452 B

  1. # Copyright (C) 2020-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 models, fields
  5. from odoo.addons import decimal_precision as dp
  6. class PosOrderLine(models.Model):
  7. _inherit = "pos.order.line"
  8. tare = fields.Float(
  9. string="Tare",
  10. digits=dp.get_precision("Product Unit of Measure")
  11. )