Hello,
I'm working on odoo9. I'm facing one issue in which i have 1 One2many field in the sale order line and for the relation there is 1 Many2one field.
Now in the One2many field class, there is 1 Many2one field to another object.
On the click of button, i write some data in the sale order line's One2many fields and it is written also correctly.
But, now in the Many2one field, display _unknown,id instead of just id.
For more Info:-
class SaleOrderLine(models.Model):
_inherit = 'sale.order.line'
lot_line_ids = fields.One2many('lot.line.detail', 'line_id', 'Lot Ids')
class LotLineDetail(models.Model):
_name = 'lot.line.detail'
_description = "Lot Line Detail"
line_id = fields.Many2one('sale.order.line', 'Sale Order Line')
lot_line_id = fields.Many2one('lot.detail', string='Lot Line Id')
lot_line_qty = fields.Float('Quantity')
In the lot_line_id, i have facing _unknown error.
Thanks in advance,
Where is defined the model lot.detail?? in another module? if yes then you should put a dependency with that module in your __openerp__.py
found the error and solve it. Thanks both of you for quick reply
Hello you have found any solution related to this error ?