diff --git a/purchase_collective/__manifest__.py b/purchase_collective/__manifest__.py
index 47c99f6..9df04a0 100644
--- a/purchase_collective/__manifest__.py
+++ b/purchase_collective/__manifest__.py
@@ -19,7 +19,7 @@ El Usuario que crea la orden es el encargado de distribuir los productos al rest
'author': "Criptomart",
'website': "https://criptomart.net",
'category': 'Purchase Management',
- 'version': '0.12.0.1.0',
+ 'version': "16.0.1.0.0",
'depends': ["purchase","sale","product","network_partner"],
'data': [
'security/purchase_collective_security.xml',
diff --git a/purchase_collective/models/purchase_collective.py b/purchase_collective/models/purchase_collective.py
index 6472888..51deaaf 100644
--- a/purchase_collective/models/purchase_collective.py
+++ b/purchase_collective/models/purchase_collective.py
@@ -7,7 +7,6 @@ from operator import attrgetter
from odoo import models, fields, api, osv, _
from odoo.exceptions import Warning
from odoo.tools.safe_eval import safe_eval as eval
-import odoo.addons.decimal_precision as dp
_logger = logging.getLogger(__name__)
@@ -59,12 +58,10 @@ class PurchaseCollectiveOrder(models.Model):
return res
- @api.multi
def subscribe(self, partner):
self.message_subscribe(partner_ids=[(partner.id)])
self.message_post(body=("Order line created by %s" %(partner.name)))
- @api.multi
def button_details(self):
context = self.env.context.copy()
view_id = self.env.ref(
diff --git a/purchase_collective/models/sale_order.py b/purchase_collective/models/sale_order.py
index d7c3078..b5ee05b 100644
--- a/purchase_collective/models/sale_order.py
+++ b/purchase_collective/models/sale_order.py
@@ -15,7 +15,6 @@ class SaleOrder(models.Model):
)
is_cp = fields.Boolean(string="Is part of a Collective Purchase")
- @api.multi
def action_confirm(self):
for order in self:
order.warehouse_id = order.partner_id.node_id.wh_id
diff --git a/purchase_collective/security/purchase_collective_security.xml b/purchase_collective/security/purchase_collective_security.xml
index ecd966e..e694ea6 100644
--- a/purchase_collective/security/purchase_collective_security.xml
+++ b/purchase_collective/security/purchase_collective_security.xml
@@ -1,6 +1,5 @@
-
-
+
Collective Purchase
@@ -44,5 +43,4 @@
-
-
+
diff --git a/purchase_collective/views/actions.xml b/purchase_collective/views/actions.xml
index 41b7da3..030e67a 100644
--- a/purchase_collective/views/actions.xml
+++ b/purchase_collective/views/actions.xml
@@ -5,7 +5,6 @@
Open
ir.actions.act_window
purchase_collective.order
- form
tree,form
{
'search_default_my_sale_orders_filter': 1
@@ -22,7 +21,6 @@
Closed
ir.actions.act_window
purchase_collective.order
- form
tree,form
{
'search_default_my_sale_orders_filter': 1
@@ -39,7 +37,6 @@
Cancelled
ir.actions.act_window
purchase_collective.order
- form
tree,form
{
'search_default_my_sale_orders_filter': 1
diff --git a/purchase_collective/views/partner_net_views.xml b/purchase_collective/views/partner_net_views.xml
index 9c67e3d..b88ad30 100644
--- a/purchase_collective/views/partner_net_views.xml
+++ b/purchase_collective/views/partner_net_views.xml
@@ -1,6 +1,6 @@
-
+
partner.net.form.wh.view
diff --git a/purchase_collective/views/partner_node_views.xml b/purchase_collective/views/partner_node_views.xml
index a6eb246..4a28462 100644
--- a/purchase_collective/views/partner_node_views.xml
+++ b/purchase_collective/views/partner_node_views.xml
@@ -1,6 +1,6 @@
-
+
partner.node.form.wh.view
diff --git a/purchase_collective/views/purchase_collective.xml b/purchase_collective/views/purchase_collective.xml
index dc83760..763d16c 100644
--- a/purchase_collective/views/purchase_collective.xml
+++ b/purchase_collective/views/purchase_collective.xml
@@ -1,5 +1,5 @@
-
+
purchase.collective.order.form.view
diff --git a/purchase_collective/views/sale_order.xml b/purchase_collective/views/sale_order.xml
index a5a0b1c..c1ef456 100644
--- a/purchase_collective/views/sale_order.xml
+++ b/purchase_collective/views/sale_order.xml
@@ -1,6 +1,6 @@
-
+
sale order collective purchase extension
sale.order