[MIG] purchase_collective: Migration to 16.0

This commit is contained in:
Luis 2024-01-11 10:42:00 +01:00
parent 27386c71cc
commit 9434c90457
9 changed files with 7 additions and 16 deletions

View file

@ -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(