mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add sequence to support category
This commit is contained in:
@@ -58,3 +58,7 @@ class ProductTemplate(models.Model):
|
||||
if len(self.product_variant_ids) == 1:
|
||||
self.product_variant_ids.default_code = self.default_code_stored
|
||||
|
||||
@api.onchange('categ_id')
|
||||
def _onchange_cate_id(self):
|
||||
if self.categ_id and self.categ_id.internal_type:
|
||||
self.internal_type = self.categ_id.internal_type
|
||||
Reference in New Issue
Block a user