Hi all ,
i need yo help guys
i have to models sale.order with the following fields
class sale_sale(models.Model):
_inherit = 'sale.order'
po_num = fields.Char(string='Po no:', required=True)
quotation_name = fields.Char(string='Quotation Name')
and another model is
class invoice_invoice(models.Model):
_inherit = 'account.invoice'
delivery = fields.Many2one('stock.picking', 'Po No', default=lambda self: self.env['stock.picking'].search([['po', '=', True]]))
signature = fields.Char(string='ESD Signature')
pon = fields.Char(related='delivery.po', required=True)
quot_name = fields.Many2one('sale.order', 'Quotation Name', default=lambda self: self.env['sale.order'].search_read([['quotation_name']]))
quot = fields.Char(related='quot_name.quotation_name')
and what i need is to get field's value of quotation_name in the model account.invoice