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.

14 lines
309 B

4 years ago
4 years ago
  1. # -*- coding: utf-8 -*-
  2. from openerp import _, models, api
  3. class BarcodeRule(models.Model):
  4. _inherit = 'barcode.rule'
  5. @api.model
  6. def _get_type_selection(self):
  7. res = super(BarcodeRule, self)._get_type_selection()
  8. res.append(
  9. ('tare', _('Tare')))
  10. return res