summaryrefslogtreecommitdiff
path: root/addons/stock/models/barcode.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-03-22 13:08:45 +0100
committerThibault Delavallée <tde@openerp.com>2016-04-29 12:18:36 +0200
commitd7af45bb03d83ffedffeaacc89fd7265134629d9 (patch)
treec087019183e64eab64a0feacecf66d4c79ab6410 /addons/stock/models/barcode.py
parente28b83603b512bcbbf3c1ec3d491a71d89d2c822 (diff)
[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.
Diffstat (limited to 'addons/stock/models/barcode.py')
-rw-r--r--addons/stock/models/barcode.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/addons/stock/models/barcode.py b/addons/stock/models/barcode.py
index 627d2016a46..701ce3fc54d 100644
--- a/addons/stock/models/barcode.py
+++ b/addons/stock/models/barcode.py
@@ -1,15 +1,14 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from odoo import models
-from odoo.tools.translate import _
+from odoo import models, _
-class barcode_rule(models.Model):
+class BarcodeRule(models.Model):
_inherit = 'barcode.rule'
def _get_type_selection(self):
- types = set(super(barcode_rule, self)._get_type_selection())
+ types = set(super(BarcodeRule, self)._get_type_selection())
types.update([
('weight', _('Weighted Product')),
('location', _('Location')),