I have the ff code, I want to add approver name in purchase report, I can't make it to work. Can you help me?
Hi Gelo Panelo,
Please try this code.
from odoo import models, fields, api
_inherit = 'purchase.order'
approver_id = fields.Many2one('res.users','Approved By')
def button_approve(self, force=False):
result = super(Approver_PO, self).button_approve(force=force)
for po in self:
Hope it will help you.