Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

This is odoo model code. I would like to count total product quantity of product on category from my selected warehouse. How can I achive that?

classThreshold(models.Model):
_name="threshold.threshold"
main_location=fields.Many2many("stock.warehouse", string="Main Location")
product=fields.Many2many("product.template", string="Product")
category=fields.Many2one("product.category", string="Category")
attribute=fields.Many2many("product.attribute", string="Attribute")
threshold_value=fields.Integer(string="Threshold Value")
transfer_quantity=fields.Integer(string="Transfer Quantity")
status_button=fields.Selection([('0','Active'),('1','Dissmiss')], default='0', index=True, string="Status")
threshold_selection=fields.Selection([('0','Product'),('1','Category'),], default= '0', index=True, string="Threshold Selection")


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 18
11878
3
thg 1 25
19975
1
thg 11 22
3494
2
thg 8 22
7894
1
thg 1 25
9569