diff --git a/beesdoo_purchase/__init__.py b/beesdoo_purchase/__init__.py new file mode 100644 index 0000000..9a7e03e --- /dev/null +++ b/beesdoo_purchase/__init__.py @@ -0,0 +1 @@ +from . import models \ No newline at end of file diff --git a/beesdoo_purchase/__openerp__.py b/beesdoo_purchase/__manifest__.py similarity index 91% rename from beesdoo_purchase/__openerp__.py rename to beesdoo_purchase/__manifest__.py index 50908ce..686afc6 100644 --- a/beesdoo_purchase/__openerp__.py +++ b/beesdoo_purchase/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- { 'name': "Bees Purchase", @@ -14,7 +13,7 @@ 'website': "https://github.com/beescoop/Obeesdoo", 'category': 'Purchase', - 'version': '9.0.1.1.0', + 'version': '12.0.1.1.0', 'depends': ['base', 'purchase', 'beesdoo_product'], diff --git a/beesdoo_purchase/migrations/9.0.1.1.0/post-migrate.py b/beesdoo_purchase/migrations/9.0.1.1.0/post-migrate.py deleted file mode 100644 index bcc9af5..0000000 --- a/beesdoo_purchase/migrations/9.0.1.1.0/post-migrate.py +++ /dev/null @@ -1,12 +0,0 @@ -# coding: utf-8 - - -def migrate(cr, version): - """Set the new supervisor_id field if this one is empty.""" - cr.execute( - """ - UPDATE purchase_order - SET supervisor_id = create_uid - WHERE supervisor_id IS NULL OR supervisor_id = 1 - """ - ) diff --git a/beesdoo_purchase/models/purchase.py b/beesdoo_purchase/models/purchase.py index 0832d37..fe069e5 100644 --- a/beesdoo_purchase/models/purchase.py +++ b/beesdoo_purchase/models/purchase.py @@ -1,7 +1,4 @@ -# coding: utf-8 - -from openerp import api, fields, models - +from odoo import api, fields, models class PurchaseOrder(models.Model): _inherit = "purchase.order" diff --git a/beesdoo_purchase/models/purchase_order.py b/beesdoo_purchase/models/purchase_order.py index 3731456..c572f8b 100644 --- a/beesdoo_purchase/models/purchase_order.py +++ b/beesdoo_purchase/models/purchase_order.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -from openerp import models, fields, api +from odoo import models, fields, api class PurchaseOrder(models.Model): diff --git a/beesdoo_purchase/views/purchase_order.xml b/beesdoo_purchase/views/purchase_order.xml index f649d78..71c0f81 100644 --- a/beesdoo_purchase/views/purchase_order.xml +++ b/beesdoo_purchase/views/purchase_order.xml @@ -1,4 +1,4 @@ - + beesdoo.purchase.order.form.view @@ -36,4 +36,4 @@ - +