Hi all,
Here i tried the following,
1.add a dropdown field for product category in sale oder line.
2.in that sale order line list the products respective to selected product category.
This is where i go so far in "sale.order" model :
x_product_categories = fields.Many2one('product.category' , 'Catégorie du Produit')
@api.onchange('x_product_categories')
def _show_list_of_products(self):
for order in self:
selected_category_id = order.x_product_categories
product_id = fields.One2many('product.product' , domain=['category_id', '=','selected_category_id'])
Any suggestions please?
Thanks a lot
which version are you using?