opt superbar

This commit is contained in:
ivan deng
2019-11-29 11:00:12 +08:00
parent 864f41223e
commit 0ee4de8478
35 changed files with 3 additions and 4 deletions

View File

@@ -34,8 +34,8 @@ class MrpProduction(models.Model):
def create(self, values): def create(self, values):
# 配置层级关系 # 配置层级关系
if 'origin' in values and values['origin']: if 'origin' in values and values['origin']:
mo = self.env['mrp.production'].search([('name', '=', values['origin'])]) mo = self.env['mrp.production'].search([('name', '=', values['origin'])], limit=1, order='id desc')
if len(mo) == 1: if len(mo) == 1:
values['parent_id'] = mo.id values['parent_id'] = mo[0].id
res = super(MrpProduction, self).create(values) res = super(MrpProduction, self).create(values)
return res return res

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -17,7 +17,7 @@
{ {
'name': "App mrp Manufacturing Orders browse by state workcenter navigator", 'name': "App mrp Manufacturing Orders browse by state workcenter navigator",
'version': '13.19.09.27', 'version': '13.19.11.29',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Base', 'category': 'Base',
'website': 'https://www.sunpop.cn', 'website': 'https://www.sunpop.cn',

View File

@@ -13,7 +13,6 @@
<field name="reservation_state"/> <field name="reservation_state"/>
<field name="state"/> <field name="state"/>
<field name="routing_id" groups="mrp.group_mrp_routings"/> <field name="routing_id" groups="mrp.group_mrp_routings"/>
<field name="procurement_group_id" context="{'show_production':1}"/>
</superbar> </superbar>
</xpath> </xpath>
</field> </field>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB