Files
odoo_source/addons/stock/models/barcode.py
T
Thibault Delavallée d7af45bb03 [MIGR] stock: barcode, settings, planner and res_*
Those models are migrated to new API. No change is performed to code
structure or functional structure. Some code cleaning may be performed when
migrating to simplify the code. Other files may be updated due to the move
towards the new API.
2016-04-29 12:18:36 +02:00

19 lines
514 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, _
class BarcodeRule(models.Model):
_inherit = 'barcode.rule'
def _get_type_selection(self):
types = set(super(BarcodeRule, self)._get_type_selection())
types.update([
('weight', _('Weighted Product')),
('location', _('Location')),
('lot', _('Lot')),
('package', _('Package'))
])
return list(types)