11 lines
382 B
Python
11 lines
382 B
Python
from odoo import models
|
|
|
|
class PurchaseOrder(models.Model):
|
|
_inherit = 'purchase.order'
|
|
|
|
def button_confirm(self):
|
|
return super(PurchaseOrder, self.with_context(bypass_user_restriction=True)).button_confirm()
|
|
|
|
def button_approve(self, force=False):
|
|
return super(PurchaseOrder, self.with_context(bypass_user_restriction=True)).button_approve(force=force)
|