~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to stock_override/stock.py

  • Committer: Quentin THEURET
  • Date: 2012-07-25 08:03:41 UTC
  • mto: (1016.10.4 uf-1395)
  • mto: This revision was merged to the branch mainline in revision 1151.
  • Revision ID: qt@tempo-consulting.fr-20120725080341-mypg6gyeuutthop5
UF-1066 [IMP] Move initial stock inventory to specific_rules module

Show diffs side-by-side

added added

removed removed

Lines of Context:
1003
1003
stock_location_chained_options()
1004
1004
 
1005
1005
 
1006
 
class initial_stock_inventory(osv.osv):
1007
 
    _name = 'initial.stock.inventory'
1008
 
    _inherit = 'stock.inventory'
1009
 
    
1010
 
initial_stock_inventory()
1011
 
 
1012
 
 
1013
 
class initial_stock_inventory_line(osv.osv):
1014
 
    _name = 'initial.stock.inventory.line'
1015
 
    _inherit = 'stock.inventory.line'
1016
 
    
1017
 
    _columns = {
1018
 
        'inventory_id': fields.many2one('initial.stock.inventory', string='Inventory'),
1019
 
        'average_cost': fields.float(digits=(16,2), string='Initial average cost', required=True),
1020
 
        'currency_id': fields.many2one('res.currency', string='Functional currency'),
1021
 
    }
1022
 
    
1023
 
    _defaults = {
1024
 
        'currency_id': lambda obj, cr, uid, c: obj.pool.get('res.users').browse(cr, uid, uid).company_id.currency_id.id,
1025
 
    }
1026
 
    
1027
 
initial_stock_inventory_line()
1028
 
 
1029
 
 
1030
1006
class ir_values(osv.osv):
1031
1007
    _name = 'ir.values'
1032
1008
    _inherit = 'ir.values'