Merge lp:~vauxoo/addons-vauxoo/addons-vauxoo-6.1-mrp_group_entries_variation-dev-julio into lp:addons-vauxoo/6.1

Proposed by Julio Serna-http://www.vauxoo.com
Status: Rejected
Rejected by: Moisés López - http://www.vauxoo.com
Proposed branch: lp:~vauxoo/addons-vauxoo/addons-vauxoo-6.1-mrp_group_entries_variation-dev-julio
Merge into: lp:addons-vauxoo/6.1
Diff against target: 133 lines (+118/-0)
3 files modified
mrp_group_entries_variation/__init__.py (+26/-0)
mrp_group_entries_variation/__openerp__.py (+44/-0)
mrp_group_entries_variation/mrp_group_entries_variation.py (+48/-0)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/addons-vauxoo-6.1-mrp_group_entries_variation-dev-julio
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com Pending
Review via email: mp+129053@code.launchpad.net

Description of the change

agrupa polizas de variacion

To post a comment you must log in.
Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

Reject: Este requerimiento, hay que madurarlo para las demás pólizas que se generan automáticamente.

Unmerged revisions

505. By Julio Serna-http://www.vauxoo.com

[IMP][mrp_group_entries_variation] grouped entries of variation

504. By Julio Serna-http://www.vauxoo.com

[INIT] added module mrp_group_entries_variation

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'mrp_group_entries_variation'
2=== added file 'mrp_group_entries_variation/__init__.py'
3--- mrp_group_entries_variation/__init__.py 1970-01-01 00:00:00 +0000
4+++ mrp_group_entries_variation/__init__.py 2012-10-10 21:48:26 +0000
5@@ -0,0 +1,26 @@
6+# -*- encoding: utf-8 -*-
7+###########################################################################
8+# Module Writen to OpenERP, Open Source Management Solution
9+#
10+# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com
11+# All Rights Reserved.
12+# info@vauxoo.com
13+############################################################################
14+# Coded by: julio (julio@vauxoo.com)
15+############################################################################
16+#
17+# This program is free software: you can redistribute it and/or modify
18+# it under the terms of the GNU Affero General Public License as
19+# published by the Free Software Foundation, either version 3 of the
20+# License, or (at your option) any later version.
21+#
22+# This program is distributed in the hope that it will be useful,
23+# but WITHOUT ANY WARRANTY; without even the implied warranty of
24+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25+# GNU Affero General Public License for more details.
26+#
27+# You should have received a copy of the GNU Affero General Public License
28+# along with this program. If not, see <http://www.gnu.org/licenses/>.
29+#
30+##############################################################################
31+import mrp_group_entries_variation
32
33=== added file 'mrp_group_entries_variation/__openerp__.py'
34--- mrp_group_entries_variation/__openerp__.py 1970-01-01 00:00:00 +0000
35+++ mrp_group_entries_variation/__openerp__.py 2012-10-10 21:48:26 +0000
36@@ -0,0 +1,44 @@
37+# -*- encoding: utf-8 -*-
38+###########################################################################
39+# Module Writen to OpenERP, Open Source Management Solution
40+#
41+# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com
42+# All Rights Reserved.
43+# info@vauxoo.com
44+############################################################################
45+# Coded by: julio (julio@vauxoo.com)
46+############################################################################
47+#
48+# This program is free software: you can redistribute it and/or modify
49+# it under the terms of the GNU Affero General Public License as
50+# published by the Free Software Foundation, either version 3 of the
51+# License, or (at your option) any later version.
52+#
53+# This program is distributed in the hope that it will be useful,
54+# but WITHOUT ANY WARRANTY; without even the implied warranty of
55+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56+# GNU Affero General Public License for more details.
57+#
58+# You should have received a copy of the GNU Affero General Public License
59+# along with this program. If not, see <http://www.gnu.org/licenses/>.
60+#
61+##############################################################################
62+
63+{
64+ "name": "Group entries of the variation production",
65+ "version": "1.1",
66+ "author" : "Vauxoo",
67+ "category": "Generic Modules/Account",
68+ "website" : "http://www.vauxoo.com/",
69+ "description": """ inherit to wizard group entries to group the variation entries
70+ """,
71+ 'depends': ['mrp_group_entries'],
72+ 'init_xml': [],
73+ 'update_xml': [
74+ ],
75+ 'demo_xml': [],
76+ 'test': [],
77+ 'installable': True,
78+ 'active': False,
79+}
80+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
81
82=== added file 'mrp_group_entries_variation/mrp_group_entries_variation.py'
83--- mrp_group_entries_variation/mrp_group_entries_variation.py 1970-01-01 00:00:00 +0000
84+++ mrp_group_entries_variation/mrp_group_entries_variation.py 2012-10-10 21:48:26 +0000
85@@ -0,0 +1,48 @@
86+# -*- encoding: utf-8 -*-
87+###########################################################################
88+# Module Writen to OpenERP, Open Source Management Solution
89+#
90+# Copyright (c) 2012 Vauxoo - http://www.vauxoo.com
91+# All Rights Reserved.
92+# info@vauxoo.com
93+############################################################################
94+# Coded by: julio (julio@vauxoo.com)
95+############################################################################
96+#
97+# This program is free software: you can redistribute it and/or modify
98+# it under the terms of the GNU Affero General Public License as
99+# published by the Free Software Foundation, either version 3 of the
100+# License, or (at your option) any later version.
101+#
102+# This program is distributed in the hope that it will be useful,
103+# but WITHOUT ANY WARRANTY; without even the implied warranty of
104+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
105+# GNU Affero General Public License for more details.
106+#
107+# You should have received a copy of the GNU Affero General Public License
108+# along with this program. If not, see <http://www.gnu.org/licenses/>.
109+#
110+##############################################################################
111+import time
112+from osv import osv, fields
113+
114+class mrp_group_entries(osv.osv_memory):
115+ _inherit = 'mrp.group.entries'
116+
117+ def _get_moves(self, cr, uid, move_ids=[], context=None):
118+ res = super(mrp_group_entries, self)._get_moves(cr, uid, move_ids=move_ids, context=context)
119+ mrp_production = self.pool.get('mrp.production')
120+ account_move_line = self.pool.get('account.move.line')
121+ if context is None:
122+ context = {}
123+ move_ids = context.get('active_ids', [])
124+
125+ for production in mrp_production.browse(cr, uid, move_ids):
126+ account_move_line_id = account_move_line.search(cr,uid,[('production_id','=',production.id)])
127+ for move_line in account_move_line.browse(cr, uid, account_move_line_id, context=context):
128+ res.setdefault(move_line.move_id.id, 1)
129+ return res
130+
131+
132+mrp_group_entries()
133+