diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-11-02 15:40:43 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-11-02 15:40:43 +0700 |
| commit | 6b49797aca36574497f93a06f8e1c0622e5ad009 (patch) | |
| tree | ee729e6f9feda2a0f5d46cf70608666e241cbbc2 /indoteknik_custom/models/product_template.py | |
| parent | f8fc4ac3557bf5a74f49ea79b178b29ff5684815 (diff) | |
add field kind of sparepart and accesories in product template
Diffstat (limited to 'indoteknik_custom/models/product_template.py')
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 10d109fb..d1de2221 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -53,6 +53,10 @@ class ProductTemplate(models.Model): seq_new_product = fields.Integer(string='Seq New Product', help='Urutan Sequence New Product') is_edited = fields.Boolean(string='Is Edited') qty_sold = fields.Float(string='Sold Quantity', compute='_get_qty_sold') + kind_of = fields.Selection([ + ('sp', 'Spare Part'), + ('acc', 'Accessories') + ], string='Kind of', copy=False) def _get_qty_sold(self): for rec in self: |
