Browse Source

[MIG] pos_price_to_weight: Migration to 10.0

pull/464/head
Invitu 7 years ago
committed by Iván Todorovich
parent
commit
1a9186aa2a
  1. 2
      pos_price_to_weight/__manifest__.py
  2. 4
      pos_price_to_weight/data/barcode_rule.xml
  3. 2
      pos_price_to_weight/models/barcode_rule.py

2
pos_price_to_weight/__openerp__.py → pos_price_to_weight/__manifest__.py

@ -5,7 +5,7 @@
{
'name': 'Point of Sale - Price to Weight',
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'Point Of Sale',
'summary': 'Compute weight based on barcodes with prices',
'author': 'La Louve, GRAP, Odoo Community Association (OCA)',

4
pos_price_to_weight/data/barcode_rule.xml

@ -5,7 +5,7 @@ Copyright (C) 2017 - Today: GRAP (http://www.grap.coop)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<openerp><data>
<odoo>
<record id="rule_price_to_weight" model="barcode.rule">
<field name="name">Price Barcodes (Computed Weight) 2 Decimals</field>
@ -16,4 +16,4 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="encoding">ean13</field>
</record>
</data></openerp>
</odoo>

2
pos_price_to_weight/models/barcode_rule.py

@ -3,7 +3,7 @@
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import _, api, models
from odoo import _, api, models
class BarcodeRule(models.Model):

Loading…
Cancel
Save