Browse Source

[MIG] pos_price_to_weight: Migration to 10.0

pull/234/head
Invitu 7 years ago
committed by Sylvain LE GAL
parent
commit
eedaa211fd
  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', 'name': 'Point of Sale - Price to Weight',
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'Point Of Sale', 'category': 'Point Of Sale',
'summary': 'Compute weight based on barcodes with prices', 'summary': 'Compute weight based on barcodes with prices',
'author': 'La Louve, GRAP, Odoo Community Association (OCA)', '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). 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"> <record id="rule_price_to_weight" model="barcode.rule">
<field name="name">Price Barcodes (Computed Weight) 2 Decimals</field> <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> <field name="encoding">ean13</field>
</record> </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) # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # 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): class BarcodeRule(models.Model):

Loading…
Cancel
Save