[IMP] procurement: Moved stock.warehouse.orderpoint sequence and data file to procurement module.
bzr revid: uco@tinyerp.com-20100528104430-opnf85w0osxhb3te
This commit is contained in:
parent
f9b7a6e0e4
commit
eb990b1dc2
|
@ -76,7 +76,7 @@
|
||||||
'report/mrp_report_view.xml',
|
'report/mrp_report_view.xml',
|
||||||
'report/mrp_production_order_view.xml',
|
'report/mrp_production_order_view.xml',
|
||||||
],
|
],
|
||||||
'demo_xml': ['mrp_demo.xml', 'mrp_order_point.xml'],
|
'demo_xml': ['mrp_demo.xml'],
|
||||||
'test': [
|
'test': [
|
||||||
'test/mrp_phantom_bom.yml',
|
'test/mrp_phantom_bom.yml',
|
||||||
'test/mrp_production_order.yml',
|
'test/mrp_production_order.yml',
|
||||||
|
|
|
@ -16,20 +16,5 @@
|
||||||
<field name="number_increment">1</field>
|
<field name="number_increment">1</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|
||||||
<record id="sequence_mrp_op_type" model="ir.sequence.type">
|
|
||||||
<field name="name">Stock orderpoint</field>
|
|
||||||
<field name="code">mrp.warehouse.orderpoint</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="sequence_mrp_op" model="ir.sequence">
|
|
||||||
<field name="name">Stock orderpoint</field>
|
|
||||||
<field name="code">mrp.warehouse.orderpoint</field>
|
|
||||||
<field name="prefix">OP/</field>
|
|
||||||
<field name="padding">5</field>
|
|
||||||
<field name="number_next">1</field>
|
|
||||||
<field name="number_increment">1</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
'process/procurement_process.xml',
|
'process/procurement_process.xml',
|
||||||
"company_view.xml",
|
"company_view.xml",
|
||||||
],
|
],
|
||||||
# 'demo_xml': [],
|
'demo_xml': ['stock_orderpoint.xml'],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
'active': False,
|
'active': False,
|
||||||
'certificate': '',
|
'certificate': '',
|
||||||
|
|
|
@ -485,7 +485,7 @@ class stock_warehouse_orderpoint(osv.osv):
|
||||||
'active': lambda *a: 1,
|
'active': lambda *a: 1,
|
||||||
'logic': lambda *a: 'max',
|
'logic': lambda *a: 'max',
|
||||||
'qty_multiple': lambda *a: 1,
|
'qty_multiple': lambda *a: 1,
|
||||||
'name': lambda x,y,z,c: x.pool.get('ir.sequence').get(y,z,'mrp.warehouse.orderpoint') or '',
|
'name': lambda x,y,z,c: x.pool.get('ir.sequence').get(y,z,'stock.orderpoint') or '',
|
||||||
'product_uom': lambda sel, cr, uid, context: context.get('product_uom', False),
|
'product_uom': lambda sel, cr, uid, context: context.get('product_uom', False),
|
||||||
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'stock.warehouse.orderpoint', context=c)
|
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'stock.warehouse.orderpoint', context=c)
|
||||||
}
|
}
|
||||||
|
@ -519,7 +519,7 @@ class stock_warehouse_orderpoint(osv.osv):
|
||||||
if not default:
|
if not default:
|
||||||
default = {}
|
default = {}
|
||||||
default.update({
|
default.update({
|
||||||
'name': self.pool.get('ir.sequence').get(cr, uid, 'mrp.warehouse.orderpoint') or '',
|
'name': self.pool.get('ir.sequence').get(cr, uid, 'stock.orderpoint') or '',
|
||||||
})
|
})
|
||||||
return super(stock_warehouse_orderpoint, self).copy(cr, uid, id, default, context)
|
return super(stock_warehouse_orderpoint, self).copy(cr, uid, id, default, context)
|
||||||
|
|
||||||
|
|
|
@ -15,5 +15,18 @@
|
||||||
<field eval="'(False,)'" name="args"/>
|
<field eval="'(False,)'" name="args"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<record id="sequence_mrp_op_type" model="ir.sequence.type">
|
||||||
|
<field name="name">Stock orderpoint</field>
|
||||||
|
<field name="code">stock.orderpoint</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="sequence_mrp_op" model="ir.sequence">
|
||||||
|
<field name="name">Stock orderpoint</field>
|
||||||
|
<field name="code">stock.orderpoint</field>
|
||||||
|
<field name="prefix">OP/</field>
|
||||||
|
<field name="padding">5</field>
|
||||||
|
<field name="number_next">1</field>
|
||||||
|
<field name="number_increment">1</field>
|
||||||
|
</record>
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
Loading…
Reference in New Issue