[IMP]sale: Update quantity in demo data and some minor changes regarding spaces

bzr revid: dbr@tinyerp.com-20111125070123-lv7ae5b1gb93pvqn
This commit is contained in:
DBR (OpenERP)
2011-11-25 12:31:23 +05:30
parent f4292f0d03
commit 57b90b39f5
3 changed files with 3 additions and 9 deletions
-4
View File
@@ -43,7 +43,6 @@ class sale_shop(osv.osv):
_defaults = {
'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'sale.shop', context=c),
}
sale_shop()
class sale_order(osv.osv):
@@ -456,10 +455,8 @@ class sale_order(osv.osv):
for record in self.pool.get('sale.order').browse(cr, uid, id).invoice_ids:
inv_ids1.add(record.id)
inv_ids = list(inv_ids1.difference(inv_ids))
res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_form')
res_id = res and res[1] or False,
return {
'name': _('Customer Invoices'),
'view_type': 'form',
@@ -1276,7 +1273,6 @@ class sale_order_line(osv.osv):
if rec.state not in ['draft', 'cancel']:
raise osv.except_osv(_('Invalid action !'), _('Cannot delete a sales order line which is in state \'%s\'!') %(rec.state,))
return super(sale_order_line, self).unlink(cr, uid, ids, context=context)
sale_order_line()
class sale_config_picking_policy(osv.osv_memory):
+3 -3
View File
@@ -140,7 +140,7 @@
<field name="name">[PC1] Basic PC</field>
<field name="product_id" ref="product.product_product_pc1"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="product_uom_qty">15</field>
<field name="product_uom_qty">2</field>
<field name="price_unit">450</field>
<field name="type">make_to_order</field>
<field name="delay">8</field>
@@ -240,7 +240,7 @@
<field name="name">[MB1] Mainboard ASUStek A7N8X</field>
<field name="product_id" ref="product.product_product_mb1"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="product_uom_qty">4</field>
<field name="product_uom_qty">15</field>
<field name="price_unit">250</field>
<field name="type">make_to_order</field>
<field name="delay">15</field>
@@ -250,7 +250,7 @@
<field name="name">[MB2] Mainboard ASUStek A7V8X-X</field>
<field name="product_id" ref="product.product_product_mb2"/>
<field name="product_uom" ref="product.product_uom_unit"/>
<field name="product_uom_qty">4</field>
<field name="product_uom_qty">5</field>
<field name="price_unit">500</field>
<field name="type">make_to_order</field>
<field name="delay">15</field>
-2
View File
@@ -20,7 +20,6 @@
##############################################################################
from osv import osv, fields
import netsvc
class stock_move(osv.osv):
_inherit = 'stock.move'
@@ -198,4 +197,3 @@ class stock_picking(osv.osv):
return result
stock_picking()