diff --git a/beesdoo_product/__init__.py b/beesdoo_product/__init__.py
index 8d752fb..9b42961 100644
--- a/beesdoo_product/__init__.py
+++ b/beesdoo_product/__init__.py
@@ -1,3 +1,2 @@
-# -*- coding: utf-8 -*-
-import models
-import wizard
+from . import models
+from . import wizard
diff --git a/beesdoo_product/__manifest__.py b/beesdoo_product/__manifest__.py
index ac8eb60..47bdad5 100644
--- a/beesdoo_product/__manifest__.py
+++ b/beesdoo_product/__manifest__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
{
'name': "beesdoo_product",
@@ -20,7 +19,7 @@
'version': '0.1',
# any module necessary for this one to work correctly
- 'depends': ['beesdoo_base', 'product', 'point_of_sale','pos_price_to_weight'],
+ 'depends': ['beesdoo_base', 'product', 'sale', 'point_of_sale', 'pos_price_to_weight'],
# always loaded
'data': [
diff --git a/beesdoo_product/models/__init__.py b/beesdoo_product/models/__init__.py
index f270af8..52cfd16 100644
--- a/beesdoo_product/models/__init__.py
+++ b/beesdoo_product/models/__init__.py
@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
-import beesdoo_product
\ No newline at end of file
+from . import beesdoo_product
\ No newline at end of file
diff --git a/beesdoo_product/models/beesdoo_product.py b/beesdoo_product/models/beesdoo_product.py
index 6fef74f..c097ae1 100644
--- a/beesdoo_product/models/beesdoo_product.py
+++ b/beesdoo_product/models/beesdoo_product.py
@@ -1,4 +1,3 @@
- # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.tools.translate import _
from odoo.exceptions import UserError, ValidationError
@@ -15,8 +14,8 @@ class BeesdooProduct(models.Model):
main_seller_id = fields.Many2one('res.partner', string='Main Seller', compute='_compute_main_seller_id', store=True)
- display_unit = fields.Many2one('product.uom')
- default_reference_unit = fields.Many2one('product.uom')
+ display_unit = fields.Many2one('uom.uom')
+ default_reference_unit = fields.Many2one('uom.uom')
display_weight = fields.Float(compute='_get_display_weight', store=True)
total_with_vat = fields.Float(compute='_get_total', store=True, string="Total Sales Price with VAT")
@@ -81,7 +80,7 @@ class BeesdooProduct(models.Model):
while(self.search_count([('barcode', '=', bc)]) > 1):
ean = rule.pattern + str(uuid.uuid4().fields[-1])[:size]
bc = ean[0:12] + str(self.env['barcode.nomenclature'].ean_checksum(ean))
- print 'barcode :', bc
+ print('barcode :', bc)
self.barcode = bc
@api.one
@@ -176,7 +175,7 @@ class BeesdooProductSupplierInfo(models.Model):
price = fields.Float('exVAT Price')
class BeesdooUOMCateg(models.Model):
- _inherit = 'product.uom.categ'
+ _inherit = 'uom.category'
type = fields.Selection([('unit','Unit'),
('weight','Weight'),
diff --git a/beesdoo_product/views/beesdoo_product.xml b/beesdoo_product/views/beesdoo_product.xml
index 010d687..9b828b9 100644
--- a/beesdoo_product/views/beesdoo_product.xml
+++ b/beesdoo_product/views/beesdoo_product.xml
@@ -11,18 +11,12 @@
-
- 1
-
1
1
-
- 1
-
1
@@ -72,6 +66,17 @@
+
+ bees.product.sales.form
+ product.template
+
+
+
+ 1
+
+
+
+
bees.product.label.form
beesdoo.product.label
@@ -91,7 +96,7 @@
bees.product.label.tree
beesdoo.product.label
-
+
@@ -105,7 +110,7 @@
product.category
-
+
@@ -139,13 +144,13 @@
tree,form
-
- product.uom.categ.form
- product.uom.categ
-
+ uom.category.form
+ uom.category
+
@@ -183,6 +188,6 @@
tree,form
-
diff --git a/beesdoo_product/wizard/__init__.py b/beesdoo_product/wizard/__init__.py
index 183e6cc..0d01ffa 100644
--- a/beesdoo_product/wizard/__init__.py
+++ b/beesdoo_product/wizard/__init__.py
@@ -1 +1 @@
-import label_printing_utils
+from . import label_printing_utils
diff --git a/beesdoo_product/wizard/label_printing_utils.py b/beesdoo_product/wizard/label_printing_utils.py
index a3e0c17..4561b7c 100644
--- a/beesdoo_product/wizard/label_printing_utils.py
+++ b/beesdoo_product/wizard/label_printing_utils.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from odoo import models, fields, api
class RequestLabelPrintingWizard(models.TransientModel):