update ui_en

This commit is contained in:
ivan deng
2018-01-03 14:24:18 +08:00
parent 5a5e767008
commit c03c84812c
2 changed files with 2 additions and 2 deletions

View File

@@ -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 = ''

View File

@@ -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>