mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update ui_en
This commit is contained in:
@@ -61,7 +61,7 @@ class ProductTemplate(models.Model):
|
||||
# 设置default_code
|
||||
for template in unique_variants:
|
||||
template.default_code = template.product_variant_ids.default_code
|
||||
for template in (self):
|
||||
for template in (self - unique_variants):
|
||||
if len(template.product_variant_ids)>1:
|
||||
template.default_code = ''
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ eg.
|
||||
<field name="name">demo.tree</field>
|
||||
<field name="model">demo.model</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree bg_colors="grey:state=='cancel';green:state=='draft';blue:state in ('done');red:state in ('waiting')" name="demo_tree">
|
||||
<tree bg_colors="grey:state=='cancel';green:state=='draft';blue:state in ('done');red:state in ('sale')" name="demo_tree">
|
||||
<field name="name" string="Appointment" />
|
||||
<field name="state" />
|
||||
</tree>
|
||||
|
||||
Reference in New Issue
Block a user