~vauxoo/addons-vauxoo/addons-vauxoo-stock_picking_cancel_move-dev-julio

« back to all changes in this revision

Viewing changes to account_move_group/wizard/account_move_group.py

  • Committer: Julio Serna
  • Date: 2012-10-23 16:23:35 UTC
  • mfrom: (492.1.42 6.1)
  • Revision ID: julio@vauxoo.com-20121023162335-1buz3jm9fkclhld4
[MERGE] repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- encoding: utf-8 -*-
 
2
###########################################################################
 
3
#    Module Writen to OpenERP, Open Source Management Solution
 
4
#
 
5
#    Copyright (c) 2012 Vauxoo - http://www.vauxoo.com
 
6
#    All Rights Reserved.
 
7
#    info@vauxoo.com
 
8
############################################################################
 
9
#    Coded by: julio (julio@vauxoo.com)
 
10
############################################################################
 
11
#
 
12
#    This program is free software: you can redistribute it and/or modify
 
13
#    it under the terms of the GNU Affero General Public License as
 
14
#    published by the Free Software Foundation, either version 3 of the
 
15
#    License, or (at your option) any later version.
 
16
#
 
17
#    This program is distributed in the hope that it will be useful,
 
18
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
#    GNU Affero General Public License for more details.
 
21
#
 
22
#    You should have received a copy of the GNU Affero General Public License
 
23
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
24
#
 
25
##############################################################################
 
26
import time
 
27
from osv import osv, fields
 
28
import decimal_precision as dp
 
29
from tools.translate import _
 
30
 
 
31
class account_move_group(osv.osv_memory):
 
32
    _name='account.move.group'
 
33
    
 
34
    def move_group(self, cr, uid, ids, context=None):
 
35
        account_move_line = self.pool.get('account.move.line')
 
36
        if context is None:
 
37
            context = {}
 
38
        move_ids = context.get('active_ids', [])
 
39
        account_move_line._create_move_group(cr, uid, move_ids, context=context)
 
40
        return {}
 
41
    
 
42
account_move_group()
 
43
 
 
44
 
 
45
 
 
46
 
 
47
 
 
48
 
 
49
 
 
50
 
 
51
 
 
52
 
 
53
 
 
54
 
 
55
 
 
56
 
 
57
 
 
58
 
 
59
 
 
60