[Merge] branch merged with lp:~openerp-dev/openobject-addons/uco-dev-addons1
bzr revid: mso@mso-20100519091541-ygl2jjnxq1r5w8hs
This commit is contained in:
@@ -22,11 +22,12 @@
|
||||
<field name="name">PCE</field>
|
||||
<field name="factor">1.0</field>
|
||||
<field name="factor_inv_data">1.0</field>
|
||||
<field name="rounding">1.0</field>
|
||||
</record>
|
||||
<record id="product_uom_kgm" model="product.uom">
|
||||
<field name="category_id" ref="product_uom_categ_kgm"/>
|
||||
<field name="name">KGM</field>
|
||||
<field name="factor">1.0</field>
|
||||
<field name="factor">1000.0</field>
|
||||
<field name="factor_inv_data">1.0</field>
|
||||
</record>
|
||||
<record id="uom_hour" model="product.uom">
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
groups="group_purchase_user"/>-->
|
||||
<menuitem icon="terp-purchase" id="base.menu_purchase_root" name="Procurement Management"
|
||||
groups="group_purchase_user" sequence="7"/>
|
||||
<menuitem id="menu_procurement_management" name="Procurement Management"
|
||||
<menuitem id="menu_procurement_management" name="Purchase Management"
|
||||
parent="base.menu_purchase_root" sequence="1"/>
|
||||
|
||||
<!--supplier menu-->
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
company_id: base.main_company
|
||||
location_id: stock.stock_location_stock
|
||||
logic: max
|
||||
name: OP/00002
|
||||
product_id: product_product_wood0
|
||||
product_max_qty: 15.0
|
||||
product_min_qty: 10.0
|
||||
@@ -38,12 +37,11 @@
|
||||
-
|
||||
Now I make a sale order for table.
|
||||
-
|
||||
!record {model: sale.order, id: sale_order_so0}:
|
||||
!record {model: sale.order, id: sale_order_so3}:
|
||||
amount_total: 5.0
|
||||
amount_untaxed: 5.0
|
||||
date_order: '2010-04-30'
|
||||
invoice_quantity: order
|
||||
name: SO006
|
||||
order_line:
|
||||
- company_id: base.main_company
|
||||
delay: 7.0
|
||||
@@ -66,7 +64,7 @@
|
||||
-
|
||||
I confirm the order.
|
||||
-
|
||||
!workflow {model: sale.order, action: order_confirm, ref: sale_order_so0}
|
||||
!workflow {model: sale.order, action: order_confirm, ref: sale_order_so3}
|
||||
-
|
||||
I check that one procurement is generated.
|
||||
-
|
||||
|
||||
@@ -161,6 +161,7 @@ class stock_sale_forecast_createlines(osv.osv_memory):
|
||||
def create_forecast(self,cr, uid, ids, context={}):
|
||||
product_obj = self.pool.get('product.product')
|
||||
forecast_obj=self.pool.get('stock.sale.forecast')
|
||||
mod_obj =self.pool.get('ir.model.data')
|
||||
for f in self.browse(cr, uid, ids, context):
|
||||
prod_categ_obj=self.pool.get('product.category')
|
||||
template_obj=self.pool.get('product.template')
|
||||
@@ -212,11 +213,14 @@ class stock_sale_forecast_createlines(osv.osv_memory):
|
||||
'product_uom_categ' : p.uom_id.category_id.id,
|
||||
'product_uos_categ' : prod_uos_categ,
|
||||
})
|
||||
result = mod_obj._get_id(cr, uid, 'stock_planning', 'view_stock_sale_forecast_filter')
|
||||
id = mod_obj.read(cr, uid, result, ['res_id'], context=context)
|
||||
return {
|
||||
'view_type': 'form',
|
||||
"view_mode": 'tree',
|
||||
'res_model': 'stock.sale.forecast',
|
||||
'type': 'ir.actions.act_window',
|
||||
'type': 'ir.actions.act_window',
|
||||
'search_view_id': id['res_id'],
|
||||
}
|
||||
stock_sale_forecast_createlines()
|
||||
|
||||
@@ -488,7 +492,7 @@ class stock_planning_createlines(osv.osv_memory):
|
||||
def create_planning(self,cr, uid, ids, context={}):
|
||||
product_obj = self.pool.get('product.product')
|
||||
planning_obj=self.pool.get('stock.planning')
|
||||
|
||||
mod_obj =self.pool.get('ir.model.data')
|
||||
for f in self.browse(cr, uid, ids, context=context):
|
||||
if f.forecasted_products:
|
||||
cr.execute("SELECT product_id \
|
||||
@@ -562,11 +566,14 @@ class stock_planning_createlines(osv.osv_memory):
|
||||
'stock_supply_location': stock_supply_location,
|
||||
|
||||
})
|
||||
result = mod_obj._get_id(cr, uid, 'stock_planning', 'view_stock_planning_filter')
|
||||
id = mod_obj.read(cr, uid, result, ['res_id'], context=context)
|
||||
return {
|
||||
'view_type': 'form',
|
||||
"view_mode": 'tree',
|
||||
'res_model': 'stock.planning',
|
||||
'type': 'ir.actions.act_window',
|
||||
'type': 'ir.actions.act_window',
|
||||
'search_view_id': id['res_id'],
|
||||
}
|
||||
stock_planning_createlines()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user