-
Create many2one and one2many relationship in OpenERP
almost 11 years ago
-
over 6 years ago
Well Explained -
-
over 7 years ago
Excelent, thanks! -
-
over 7 years ago
Excelent, thanks! -
-
over 7 years ago
what is the use of many2one and one2many
-
-
almost 8 years ago
Hello, I would like to have a possibility to link sale.order.line to Purchase order, in the way that is it linked to purchase.order.line, is it technically possible? Here is my code, but it doesn't work: class purchase_order(models.Model): _inherit = "purchase.order" order_line = fields.One2many('sale.order.line', 'purchase_id_in_sol', 'Sale Order Lines', states={'approved':[('readonly',True)], 'done':[('readonly',True)]}, copy=True)
class sale_order_line(models.Model): _inherit = 'sale.order.line' purchase_id_in_sol = fields.Many2one('purchase.order', string='Sous-traitant order Reference')
-
-
over 8 years ago
Awesome... Easy to understand the relationship
-
6 Comment(s)