opt superbar
@@ -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
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 12 KiB |
@@ -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',
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 12 KiB |