summaryrefslogtreecommitdiff
path: root/addons/stock/models/barcode.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-03-22 13:49:48 +0100
committerThibault Delavallée <tde@openerp.com>2016-04-29 12:18:36 +0200
commite28b83603b512bcbbf3c1ec3d491a71d89d2c822 (patch)
treebe7bc3a17ce1ddd87a0396ad74a816dffb4273d6 /addons/stock/models/barcode.py
parent3116e8946b1cd81f04eb2d21e548817080d474b3 (diff)
[MOV] stock: barcode, procurement, product, res_*
Move models not located in stock.py file and their views: - barcode - procurement - product - product.putaway, product.removal and stock.fixed.putaway.strat are extracted from product.py to their own product_strategy file to separate product and product.template code from stock specific code related to products - res_* - settings - web_planner This commit only moves files. No change is done.
Diffstat (limited to 'addons/stock/models/barcode.py')
-rw-r--r--addons/stock/models/barcode.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/addons/stock/models/barcode.py b/addons/stock/models/barcode.py
new file mode 100644
index 00000000000..627d2016a46
--- /dev/null
+++ b/addons/stock/models/barcode.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from odoo import models
+from odoo.tools.translate import _
+
+
+class barcode_rule(models.Model):
+ _inherit = 'barcode.rule'
+
+ def _get_type_selection(self):
+ types = set(super(barcode_rule, self)._get_type_selection())
+ types.update([
+ ('weight', _('Weighted Product')),
+ ('location', _('Location')),
+ ('lot', _('Lot')),
+ ('package', _('Package'))
+ ])
+ return list(types)