【发布时间】:2022-12-02 11:12:19
【问题描述】:
every product in odoo should have quantity minimum
i have created product and i set the quantity min to it in reordering rule
what i want to do is get the product name and it's quantity min in python
this is my python file
from odoo import fields,models,api
class Qty_Min_Alert(models.Model):
_inherit='product.template'
product_name = # here i want to set the product name from product.template
product_qty_min = # here i want to set the product quantity minimum from product.template
i added 'product' in depends onmanifest.py can you help me please
【问题讨论】:
标签: python ubuntu odoo odoo-15