Merge lp:~openerp-commiter/openobject-addons/trunk-addons-aag into lp:~openerp-dev/openobject-addons/trunk-dev-addons2

Proposed by Atik Agewan(OpenERP)
Status: Merged
Merge reported by: Rucha (Open ERP)
Merged at revision: not available
Proposed branch: lp:~openerp-commiter/openobject-addons/trunk-addons-aag
Merge into: lp:~openerp-dev/openobject-addons/trunk-dev-addons2
Diff against target: 775 lines (+91/-131)
37 files modified
account/i18n/pt_BR.po (+2/-3)
account/report/account_balance.py (+2/-0)
account/wizard/account_move_journal.py (+1/-1)
account/wizard/account_open_closed_fiscalyear.py (+2/-0)
account/wizard/account_report_balance_sheet.py (+2/-1)
account/wizard/account_report_common.py (+4/-1)
account/wizard/account_report_general_ledger.py (+1/-1)
account/wizard/account_report_partner_balance.py (+1/-1)
account/wizard/account_report_partner_ledger.py (+1/-1)
account/wizard/account_report_profit_loss.py (+1/-1)
account/wizard/account_validate_account_move.py (+3/-0)
account/wizard/account_vat.py (+3/-0)
account_invoice_layout/i18n/hu.po (+3/-3)
auction/wizard/auction_pay_sel.py (+5/-5)
board/wizard/board_menu_create.py (+3/-3)
email_template/wizard/email_template_send_wizard.py (+10/-10)
hr_timesheet/i18n/pt_BR.po (+1/-1)
hr_timesheet/wizard/hr_timesheet_print_employee.py (+3/-1)
hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py (+3/-0)
mrp/i18n/es_AR.po (+2/-3)
mrp/wizard/mrp_product_produce.py (+2/-2)
pad/__openerp__.py (+1/-1)
point_of_sale/i18n/pt_BR.po (+1/-1)
project_scrum/wizard/project_scrum_backlog_create_task.py (+4/-2)
project_scrum/wizard/project_scrum_backlog_sprint.py (+3/-0)
purchase/purchase.py (+7/-4)
purchase_requisition/wizard/purchase_requisition_partner.py (+4/-5)
stock/i18n/stock.pot (+0/-5)
stock/wizard/stock_move.py (+0/-29)
stock/wizard/stock_move_view.xml (+0/-28)
stock/wizard/stock_split_move.py (+1/-1)
survey/wizard/survey_browse_answer.py (+7/-8)
survey/wizard/survey_print.py (+2/-3)
survey/wizard/survey_print_answer.py (+1/-1)
survey/wizard/survey_print_statistics.py (+1/-1)
survey/wizard/survey_selection.py (+3/-3)
survey/wizard/survey_send_invitation.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-commiter/openobject-addons/trunk-addons-aag
Reviewer Review Type Date Requested Status
Atik Agewan(OpenERP) (community) Needs Resubmitting
OpenERP Core Team Pending
Review via email: mp+49797@code.launchpad.net

Description of the change

Purchase:[PS] Purchase order line_ Unit of measure

To post a comment you must log in.
Revision history for this message
Atik Agewan(OpenERP) (aag-openerp) :
review: Needs Resubmitting
Revision history for this message
Atik Agewan(OpenERP) (aag-openerp) wrote :

 Again..Purchase:[PS] Purchase order line_ Unit of measure

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/i18n/pt_BR.po'
2--- account/i18n/pt_BR.po 2011-02-14 11:45:07 +0000
3+++ account/i18n/pt_BR.po 2011-02-15 12:38:08 +0000
4@@ -7,14 +7,13 @@
5 "Project-Id-Version: OpenERP Server 6.0dev\n"
6 "Report-Msgid-Bugs-To: support@openerp.com\n"
7 "POT-Creation-Date: 2011-01-11 11:14+0000\n"
8-"PO-Revision-Date: 2011-02-11 22:50+0000\n"
9+"PO-Revision-Date: 2011-02-10 00:58+0000\n"
10 "Last-Translator: Emerson <Unknown>\n"
11 "Language-Team: \n"
12 "MIME-Version: 1.0\n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
15-"X-Launchpad-Export-Date: 2011-02-12 05:00+0000\n"
16-"X-Generator: Launchpad (build 12351)\n"
17+"X-Launchpad-Export-Date: 2011-02-10 04:35+0000\n"
18
19 #. module: account
20 #: model:process.transition,name:account.process_transition_supplierreconcilepaid0
21
22=== modified file 'account/report/account_balance.py'
23--- account/report/account_balance.py 2011-02-15 12:13:39 +0000
24+++ account/report/account_balance.py 2011-02-15 12:38:08 +0000
25@@ -71,6 +71,8 @@
26 def lines(self, form, ids=[], done=None):#, level=1):
27 def _process_child(accounts, disp_acc, parent):
28 account_rec = [acct for acct in accounts if acct['id']==parent][0]
29+ if isinstance(account_rec['parent_id'], tuple):
30+ account_rec['parent_id'] = account_rec['parent_id'][0]
31 currency_obj = self.pool.get('res.currency')
32 acc_id = self.pool.get('account.account').browse(self.cr, self.uid, account_rec['id'])
33 currency = acc_id.currency_id and acc_id.currency_id or acc_id.company_id.currency_id
34
35=== modified file 'account/wizard/account_move_journal.py'
36--- account/wizard/account_move_journal.py 2011-02-15 12:13:39 +0000
37+++ account/wizard/account_move_journal.py 2011-02-15 12:38:08 +0000
38@@ -148,7 +148,7 @@
39
40 journal_id = self._get_journal(cr, uid, context)
41 period_id = self._get_period(cr, uid, context)
42- target_move = self.read(cr, uid, ids, [])[0]['target_move']
43+ target_move = self.read(cr, uid, ids, [], context=context)[0]['target_move']
44
45 name = _("Journal Items")
46 if journal_id:
47
48=== modified file 'account/wizard/account_open_closed_fiscalyear.py'
49--- account/wizard/account_open_closed_fiscalyear.py 2011-02-15 12:13:39 +0000
50+++ account/wizard/account_open_closed_fiscalyear.py 2011-02-15 12:38:08 +0000
51@@ -35,6 +35,8 @@
52 move_obj = self.pool.get('account.move')
53
54 data = self.read(cr, uid, ids, [], context=context)[0]
55+ if isinstance(data['fyear_id'], tuple):
56+ data['fyear_id'] = data['fyear_id'][0]
57 data_fyear = fy_obj.browse(cr, uid, data['fyear_id'], context=context)
58 if not data_fyear.end_journal_period_id:
59 raise osv.except_osv(_('Error !'), _('No End of year journal defined for the fiscal year'))
60
61=== modified file 'account/wizard/account_report_balance_sheet.py'
62--- account/wizard/account_report_balance_sheet.py 2011-02-15 12:13:39 +0000
63+++ account/wizard/account_report_balance_sheet.py 2011-02-15 12:38:08 +0000
64@@ -65,7 +65,8 @@
65 def _print_report(self, cr, uid, ids, data, context=None):
66 if context is None:
67 context = {}
68- data['form'].update(self.read(cr, uid, ids, ['display_type','reserve_account_id'])[0])
69+ record = self.browse(cr, uid, ids, context=context)[0]
70+ data['form'].update({'display_type':record.display_type, 'reserve_account_id':record.reserve_account_id.id})
71 if not data['form']['reserve_account_id']:
72 raise osv.except_osv(_('Warning'),_('Please define the Reserve and Profit/Loss account for current user company !'))
73 data = self.pre_print_report(cr, uid, ids, data, context=context)
74
75=== modified file 'account/wizard/account_report_common.py'
76--- account/wizard/account_report_common.py 2011-02-15 12:13:39 +0000
77+++ account/wizard/account_report_common.py 2011-02-15 12:38:08 +0000
78@@ -131,7 +131,10 @@
79 data = {}
80 data['ids'] = context.get('active_ids', [])
81 data['model'] = context.get('active_model', 'ir.ui.menu')
82- data['form'] = self.read(cr, uid, ids, ['date_from', 'date_to', 'fiscalyear_id', 'journal_ids', 'period_from', 'period_to', 'filter', 'chart_account_id', 'target_move'])[0]
83+ data['form'] = self.read(cr, uid, ids, ['date_from', 'date_to', 'fiscalyear_id', 'journal_ids', 'period_from', 'period_to', 'filter', 'chart_account_id', 'target_move'], context=context)[0]
84+ for field in data['form'].keys():
85+ if isinstance(data['form'][field], tuple):
86+ data['form'][field] = data['form'][field][0]
87 used_context = self._build_contexts(cr, uid, ids, data, context=context)
88 data['form']['periods'] = used_context.get('periods', False) and used_context['periods'] or []
89 data['form']['used_context'] = used_context
90
91=== modified file 'account/wizard/account_report_general_ledger.py'
92--- account/wizard/account_report_general_ledger.py 2011-02-15 12:13:39 +0000
93+++ account/wizard/account_report_general_ledger.py 2011-02-15 12:38:08 +0000
94@@ -50,7 +50,7 @@
95 if context is None:
96 context = {}
97 data = self.pre_print_report(cr, uid, ids, data, context=context)
98- data['form'].update(self.read(cr, uid, ids, ['landscape', 'initial_balance', 'amount_currency', 'sortby'])[0])
99+ data['form'].update(self.read(cr, uid, ids, ['landscape', 'initial_balance', 'amount_currency', 'sortby'], context=context)[0])
100 if not data['form']['fiscalyear_id']:# GTK client problem onchange does not consider in save record
101 data['form'].update({'initial_balance': False})
102 if data['form']['landscape']:
103
104=== modified file 'account/wizard/account_report_partner_balance.py'
105--- account/wizard/account_report_partner_balance.py 2011-02-15 12:13:39 +0000
106+++ account/wizard/account_report_partner_balance.py 2011-02-15 12:38:08 +0000
107@@ -42,7 +42,7 @@
108 if context is None:
109 context = {}
110 data = self.pre_print_report(cr, uid, ids, data, context=context)
111- data['form'].update(self.read(cr, uid, ids, ['display_partner'])[0])
112+ data['form'].update(self.read(cr, uid, ids, ['display_partner'], context=context)[0])
113 return {
114 'type': 'ir.actions.report.xml',
115 'report_name': 'account.partner.balance',
116
117=== modified file 'account/wizard/account_report_partner_ledger.py'
118--- account/wizard/account_report_partner_ledger.py 2011-02-15 12:13:39 +0000
119+++ account/wizard/account_report_partner_ledger.py 2011-02-15 12:38:08 +0000
120@@ -47,7 +47,7 @@
121 if context is None:
122 context = {}
123 data = self.pre_print_report(cr, uid, ids, data, context=context)
124- data['form'].update(self.read(cr, uid, ids, ['initial_balance', 'reconcil', 'page_split', 'amount_currency'])[0])
125+ data['form'].update(self.read(cr, uid, ids, ['initial_balance', 'reconcil', 'page_split', 'amount_currency'], context=context)[0])
126 if data['form']['page_split']:
127 return {
128 'type': 'ir.actions.report.xml',
129
130=== modified file 'account/wizard/account_report_profit_loss.py'
131--- account/wizard/account_report_profit_loss.py 2011-02-15 12:13:39 +0000
132+++ account/wizard/account_report_profit_loss.py 2011-02-15 12:38:08 +0000
133@@ -42,7 +42,7 @@
134 if context is None:
135 context = {}
136 data = self.pre_print_report(cr, uid, ids, data, context=context)
137- data['form'].update(self.read(cr, uid, ids, ['display_type'])[0])
138+ data['form'].update(self.read(cr, uid, ids, ['display_type'], context=context)[0])
139 if data['form']['display_type']:
140 return {
141 'type': 'ir.actions.report.xml',
142
143=== modified file 'account/wizard/account_validate_account_move.py'
144--- account/wizard/account_validate_account_move.py 2011-02-15 12:13:39 +0000
145+++ account/wizard/account_validate_account_move.py 2011-02-15 12:38:08 +0000
146@@ -34,6 +34,9 @@
147 if context is None:
148 context = {}
149 data = self.read(cr, uid, ids, context=context)[0]
150+ for field in data.keys():
151+ if isinstance(data[field], tuple):
152+ data[field] = data[field][0]
153 ids_move = obj_move.search(cr, uid, [('state','=','draft'),('journal_id','=',data['journal_id']),('period_id','=',data['period_id'])])
154 if not ids_move:
155 raise osv.except_osv(_('Warning'), _('Specified Journal does not have any account move entries in draft state for this period'))
156
157=== modified file 'account/wizard/account_vat.py'
158--- account/wizard/account_vat.py 2011-02-15 12:13:39 +0000
159+++ account/wizard/account_vat.py 2011-02-15 12:38:08 +0000
160@@ -47,6 +47,9 @@
161 datas = {'ids': context.get('active_ids', [])}
162 datas['model'] = 'account.tax.code'
163 datas['form'] = self.read(cr, uid, ids)[0]
164+ for field in datas['form'].keys():
165+ if isinstance(datas['form'][field], tuple):
166+ datas['form'][field] = datas['form'][field][0]
167 datas['form']['company_id'] = self.pool.get('account.tax.code').browse(cr, uid, [datas['form']['chart_tax_id']], context=context)[0].company_id.id
168 return {
169 'type': 'ir.actions.report.xml',
170
171=== modified file 'account_invoice_layout/i18n/hu.po'
172--- account_invoice_layout/i18n/hu.po 2011-02-11 04:59:58 +0000
173+++ account_invoice_layout/i18n/hu.po 2011-02-15 12:38:08 +0000
174@@ -7,13 +7,13 @@
175 "Project-Id-Version: OpenERP Server 6.0dev\n"
176 "Report-Msgid-Bugs-To: support@openerp.com\n"
177 "POT-Creation-Date: 2011-01-11 11:14+0000\n"
178-"PO-Revision-Date: 2011-02-10 13:27+0000\n"
179+"PO-Revision-Date: 2011-02-09 12:16+0000\n"
180 "Last-Translator: NOVOTRADE RENDSZERHÁZ <openerp@novotrade.hu>\n"
181 "Language-Team: \n"
182 "MIME-Version: 1.0\n"
183 "Content-Type: text/plain; charset=utf-8\n"
184 "Content-Transfer-Encoding: 8bit\n"
185-"X-Launchpad-Export-Date: 2011-02-11 04:59+0000\n"
186+"X-Launchpad-Export-Date: 2011-02-10 04:35+0000\n"
187 "X-Generator: Launchpad (build 12177)\n"
188
189 #. module: account_invoice_layout
190@@ -160,7 +160,7 @@
191 #: report:account.invoice.layout:0
192 #: report:notify_account.invoice:0
193 msgid "Price"
194-msgstr "Nettó érték"
195+msgstr "Érték"
196
197 #. module: account_invoice_layout
198 #: report:account.invoice.layout:0
199
200=== modified file 'auction/wizard/auction_pay_sel.py'
201--- auction/wizard/auction_pay_sel.py 2011-01-14 00:11:01 +0000
202+++ auction/wizard/auction_pay_sel.py 2011-02-15 12:38:08 +0000
203@@ -42,14 +42,14 @@
204 @param context: A standard dictionary
205 @return:
206 """
207- if context is None:
208+ if context is None:
209 context = {}
210 lot = self.pool.get('auction.lots').browse(cr, uid, context['active_id'], context=context)
211 invoice_obj = self.pool.get('account.invoice')
212- for datas in self.read(cr, uid, ids, context=context):
213- account_id = datas.get('writeoff_acc_id', False)
214- period_id = datas.get('period_id', False)
215- journal_id = datas.get('journal_id', False)
216+ for datas in self.browse(cr, uid, ids, context=context):
217+ account_id = datas.dest_account_id and datas.dest_account_id.id or False
218+ period_id = datas.period_id and datas.period_id.id or False
219+ journal_id = datas.journal_id and datas.journal_id.id or False
220 if lot.sel_inv_id:
221 p = invoice_obj.pay_and_reconcile(['lot.sel_inv_id.id'], datas['amount'], datas['dest_account_id'], journal_id, account_id, period_id, journal_id, context)
222 return {'type': 'ir.actions.act_window_close'}
223
224=== modified file 'board/wizard/board_menu_create.py'
225--- board/wizard/board_menu_create.py 2011-02-09 07:18:57 +0000
226+++ board/wizard/board_menu_create.py 2011-02-15 12:38:08 +0000
227@@ -70,10 +70,10 @@
228 })
229 obj_menu = self.pool.get('ir.ui.menu')
230 #start Loop
231- for data in self.read(cr, uid, ids):
232+ for data in self.browse(cr, uid, ids, context=context):
233 obj_menu.create(cr, uid, {
234- 'name': data.get('menu_name'),
235- 'parent_id': data.get('menu_parent_id'),
236+ 'name': data.menu_name,
237+ 'parent_id': data.menu_parent_id.id,
238 'icon': 'STOCK_SELECT_COLOR',
239 'action': 'ir.actions.act_window,' + str(action_id)
240 }, context=context)
241
242=== modified file 'email_template/wizard/email_template_send_wizard.py'
243--- email_template/wizard/email_template_send_wizard.py 2011-01-14 00:11:01 +0000
244+++ email_template/wizard/email_template_send_wizard.py 2011-02-15 12:38:08 +0000
245@@ -66,7 +66,7 @@
246 if not id:
247 id = context['src_rec_ids'][0]
248 return get_value(cursor, user, id, message, template, context)
249-
250+
251 def _get_template(self, cr, uid, context=None):
252 if context is None:
253 context = {}
254@@ -116,13 +116,13 @@
255 'to':fields.char('To',size=250,required=True),
256 'cc':fields.char('CC',size=250,),
257 'bcc':fields.char('BCC',size=250,),
258- 'reply_to':fields.char('Reply-To',
259- size=250,
260+ 'reply_to':fields.char('Reply-To',
261+ size=250,
262 help="The address recipients should reply to,"
263 " if different from the From address."
264 " Placeholders can be used here."),
265- 'message_id':fields.char('Message-ID',
266- size=250,
267+ 'message_id':fields.char('Message-ID',
268+ size=250,
269 help="The Message-ID header value, if you need to"
270 "specify it, for example to automatically recognize the replies later."
271 " Placeholders can be used here."),
272@@ -133,12 +133,12 @@
273 'signature':fields.boolean('Attach my signature to mail'),
274 #'filename':fields.text('File Name'),
275 'requested':fields.integer('No of requested Mails',readonly=True),
276- 'generated':fields.integer('No of generated Mails',readonly=True),
277+ 'generated':fields.integer('No of generated Mails',readonly=True),
278 'full_success':fields.boolean('Complete Success',readonly=True),
279 'attachment_ids': fields.many2many('ir.attachment','send_wizard_attachment_rel', 'wizard_id', 'attachment_id', 'Attachments'),
280 }
281
282- #FIXME: probably better by overriding default_get directly
283+ #FIXME: probably better by overriding default_get directly
284 _defaults = {
285 'state': lambda self,cr,uid,ctx: len(ctx['src_rec_ids']) > 1 and 'multi' or 'single',
286 'rel_model': lambda self,cr,uid,ctx: self.pool.get('ir.model').search(cr,uid,[('model','=',ctx['src_model'])],context=ctx)[0],
287@@ -156,7 +156,7 @@
288 'reply_to': lambda self,cr,uid,ctx: self._get_template_value(cr, uid, 'reply_to', ctx),
289 'requested':lambda self,cr,uid,ctx: len(ctx['src_rec_ids']),
290 'full_success': False,
291- 'attachment_ids': [],
292+ 'attachment_ids': [],
293 }
294
295 def fields_get(self, cr, uid, fields=None, context=None, write_access=True):
296@@ -200,7 +200,7 @@
297 else:
298 raise osv.except_osv(_("Email Template"),_("Email sending failed for one or more objects."))
299 return True
300-
301+
302 def save_to_mailbox(self, cr, uid, ids, context=None):
303 def get_end_value(id, value):
304 if len(context['src_rec_ids']) > 1: # Multiple Mail: Gets value from the template
305@@ -213,7 +213,7 @@
306 mail_ids = []
307 template = self._get_template(cr, uid, context)
308 for id in context['src_rec_ids']:
309- screen_vals = self.read(cr, uid, ids[0], [],context)
310+ screen_vals = self.read(cr, uid, ids[0], [],context=context)
311 account = self.pool.get('email_template.account').read(cr, uid, screen_vals['from'], context=context)
312 vals = {
313 'email_from': tools.ustr(account['name']) + "<" + tools.ustr(account['email_id']) + ">",
314
315=== modified file 'hr_timesheet/i18n/pt_BR.po'
316--- hr_timesheet/i18n/pt_BR.po 2011-02-11 04:59:58 +0000
317+++ hr_timesheet/i18n/pt_BR.po 2011-02-15 12:38:08 +0000
318@@ -14,7 +14,7 @@
319 "MIME-Version: 1.0\n"
320 "Content-Type: text/plain; charset=UTF-8\n"
321 "Content-Transfer-Encoding: 8bit\n"
322-"X-Launchpad-Export-Date: 2011-02-11 04:59+0000\n"
323+"X-Launchpad-Export-Date: 2011-02-10 04:35+0000\n"
324 "X-Generator: Launchpad (build 12177)\n"
325
326 #. module: hr_timesheet
327
328=== modified file 'hr_timesheet/wizard/hr_timesheet_print_employee.py'
329--- hr_timesheet/wizard/hr_timesheet_print_employee.py 2011-01-14 00:11:01 +0000
330+++ hr_timesheet/wizard/hr_timesheet_print_employee.py 2011-02-15 12:38:08 +0000
331@@ -31,7 +31,7 @@
332 'Month', required=True),
333 'year': fields.integer('Year', required=True),
334 'employee_id': fields.many2one('hr.employee', 'Employee', required=True)
335-
336+
337 }
338
339 def _get_user(self, cr, uid, context=None):
340@@ -50,6 +50,8 @@
341
342 def print_report(self, cr, uid, ids, context=None):
343 data = self.read(cr, uid, ids, context=context)[0]
344+ if isinstance(data['employee_id'], tuple):
345+ data['employee_id'] = data['employee_id'][0]
346 datas = {
347 'ids': [],
348 'model': 'hr.employee',
349
350=== modified file 'hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py'
351--- hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py 2011-01-14 00:11:01 +0000
352+++ hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py 2011-02-15 12:38:08 +0000
353@@ -59,6 +59,9 @@
354 res = mod_obj.read(cr, uid, result, ['res_id'], context=context)
355
356 data = self.read(cr, uid, ids, [], context=context)[0]
357+ if isinstance(data['balance_product'], tuple):
358+ data['balance_product'] = data['balance_product'][0]
359+
360 account_ids = 'active_ids' in context and context['active_ids'] or []
361
362 for account in analytic_account_obj.browse(cr, uid, account_ids, context=context):
363
364=== modified file 'mrp/i18n/es_AR.po'
365--- mrp/i18n/es_AR.po 2011-02-12 05:00:59 +0000
366+++ mrp/i18n/es_AR.po 2011-02-15 12:38:08 +0000
367@@ -7,14 +7,13 @@
368 "Project-Id-Version: OpenERP Server 5.0.0\n"
369 "Report-Msgid-Bugs-To: support@openerp.com\n"
370 "POT-Creation-Date: 2011-01-11 11:15+0000\n"
371-"PO-Revision-Date: 2011-02-11 22:02+0000\n"
372+"PO-Revision-Date: 2011-02-06 16:11+0000\n"
373 "Last-Translator: jpdborgna <Unknown>\n"
374 "Language-Team: \n"
375 "MIME-Version: 1.0\n"
376 "Content-Type: text/plain; charset=UTF-8\n"
377 "Content-Transfer-Encoding: 8bit\n"
378-"X-Launchpad-Export-Date: 2011-02-12 05:00+0000\n"
379-"X-Generator: Launchpad (build 12351)\n"
380+"X-Launchpad-Export-Date: 2011-02-07 05:19+0000\n"
381
382 #. module: mrp
383 #: field:mrp.production,move_created_ids:0
384
385=== modified file 'mrp/wizard/mrp_product_produce.py'
386--- mrp/wizard/mrp_product_produce.py 2011-01-14 00:11:01 +0000
387+++ mrp/wizard/mrp_product_produce.py 2011-02-15 12:38:08 +0000
388@@ -70,10 +70,10 @@
389 context = {}
390 prod_obj = self.pool.get('mrp.production')
391 move_ids = context.get('active_ids', [])
392- for data in self.read(cr, uid, ids, context=context):
393+ for data in self.browse(cr, uid, ids, context=context):
394 for move_id in move_ids:
395 prod_obj.action_produce(cr, uid, move_id,
396- data['product_qty'], data['mode'], context=context)
397+ data.product_qty, data.mode, context=context)
398 return {}
399
400 mrp_product_produce()
401
402=== modified file 'pad/__openerp__.py'
403--- pad/__openerp__.py 2011-02-10 16:10:42 +0000
404+++ pad/__openerp__.py 2011-02-15 12:38:08 +0000
405@@ -1,7 +1,7 @@
406 # -*- coding: utf-8 -*-
407 {
408 'name': 'Enhanced support for (Ether)Pad attachments',
409- 'version': '1.0.3',
410+ 'version': '1.0.2',
411 'category': 'Generic Modules/Others',
412 'description': """
413 Adds enhanced support for (Ether)Pad attachments in the web client, lets the
414
415=== modified file 'point_of_sale/i18n/pt_BR.po'
416--- point_of_sale/i18n/pt_BR.po 2011-02-11 04:59:58 +0000
417+++ point_of_sale/i18n/pt_BR.po 2011-02-15 12:38:08 +0000
418@@ -13,7 +13,7 @@
419 "MIME-Version: 1.0\n"
420 "Content-Type: text/plain; charset=UTF-8\n"
421 "Content-Transfer-Encoding: 8bit\n"
422-"X-Launchpad-Export-Date: 2011-02-11 04:59+0000\n"
423+"X-Launchpad-Export-Date: 2011-02-10 04:35+0000\n"
424 "X-Generator: Launchpad (build 12177)\n"
425
426 #. module: point_of_sale
427
428=== modified file 'project_scrum/wizard/project_scrum_backlog_create_task.py'
429--- project_scrum/wizard/project_scrum_backlog_create_task.py 2011-01-14 00:11:01 +0000
430+++ project_scrum/wizard/project_scrum_backlog_create_task.py 2011-02-15 12:38:08 +0000
431@@ -34,7 +34,9 @@
432 document_pool = self.pool.get('ir.attachment')
433 ids_task = []
434
435- data = self.read(cr, uid, ids, [], context=context)[0]
436+ record = self.browse(cr, uid, ids, context=context)[0]
437+ user = record.user_id and record.user_id.id or False
438+
439 backlogs = backlog_id.browse(cr, uid, context['active_ids'], context=context)
440 result = mod_obj._get_id(cr, uid, 'project', 'view_task_search_form')
441 id = mod_obj.read(cr, uid, result, ['res_id'])
442@@ -45,7 +47,7 @@
443 'name': backlog.name,
444 'description': backlog.note,
445 'project_id': backlog.project_id.id,
446- 'user_id': data['user_id'] or False,
447+ 'user_id': user,
448 'planned_hours': backlog.expected_hours,
449 'remaining_hours':backlog.expected_hours,
450 'sequence':backlog.sequence,
451
452=== modified file 'project_scrum/wizard/project_scrum_backlog_sprint.py'
453--- project_scrum/wizard/project_scrum_backlog_sprint.py 2011-01-14 00:11:01 +0000
454+++ project_scrum/wizard/project_scrum_backlog_sprint.py 2011-02-15 12:38:08 +0000
455@@ -42,6 +42,9 @@
456 if context is None:
457 context = {}
458 data = self.read(cr, uid, ids, [], context=context)[0]
459+ if isinstance(data['sprint_id'], tuple):
460+ data['sprint_id'] = data['sprint_id'][0]
461+
462 for backlog in backlog_obj.browse(cr, uid, context['active_ids'], context=context):
463 backlog_ids.append(backlog.id)
464 if data['convert_to_task']:
465
466=== modified file 'purchase/purchase.py'
467--- purchase/purchase.py 2011-02-15 05:48:34 +0000
468+++ purchase/purchase.py 2011-02-15 12:38:08 +0000
469@@ -665,7 +665,6 @@
470 'notes': notes or'', 'product_uom' : uom or False}, 'domain':{'product_uom':[]}}
471 res = {}
472 prod= self.pool.get('product.product').browse(cr, uid, product)
473-
474 product_uom_pool = self.pool.get('product.uom')
475 lang=False
476 if partner_id:
477@@ -681,6 +680,11 @@
478 date_order = time.strftime('%Y-%m-%d')
479 qty = qty or 1.0
480 seller_delay = 0
481+ if uom:
482+ uom1_cat = prod.uom_id.category_id.id
483+ uom2_cat = product_uom_pool.browse(cr, uid, uom).category_id.id
484+ if uom1_cat != uom2_cat:
485+ uom = False
486
487 prod_name = self.pool.get('product.product').name_get(cr, uid, [prod.id], context=context)[0][1]
488 res = {}
489@@ -707,14 +711,13 @@
490 'taxes_id':map(lambda x: x.id, prod.supplier_taxes_id),
491 'date_planned': date_planned or dt,'notes': notes or prod.description_purchase,
492 'product_qty': qty,
493- 'product_uom': uom}})
494+ 'product_uom': prod.uom_id.id}})
495 domain = {}
496
497 taxes = self.pool.get('account.tax').browse(cr, uid,map(lambda x: x.id, prod.supplier_taxes_id))
498 fpos = fiscal_position and self.pool.get('account.fiscal.position').browse(cr, uid, fiscal_position) or False
499 res['value']['taxes_id'] = self.pool.get('account.fiscal.position').map_tax(cr, uid, fpos, taxes)
500-
501- res2 = self.pool.get('product.uom').read(cr, uid, [uom], ['category_id'])
502+ res2 = self.pool.get('product.uom').read(cr, uid, [prod.uom_id.id], ['category_id'])
503 res3 = prod.uom_id.category_id.id
504 domain = {'product_uom':[('category_id','=',res2[0]['category_id'][0])]}
505 if res2[0]['category_id'][0] != res3:
506
507=== modified file 'purchase_requisition/wizard/purchase_requisition_partner.py'
508--- purchase_requisition/wizard/purchase_requisition_partner.py 2011-01-14 00:11:01 +0000
509+++ purchase_requisition/wizard/purchase_requisition_partner.py 2011-02-15 12:38:08 +0000
510@@ -67,19 +67,18 @@
511 context = {}
512 record_ids = context and context.get('active_ids', False)
513 if record_ids:
514- data = self.read(cr, uid, ids)
515+ data = self.browse(cr, uid, ids, context=context)[0]
516+
517 company = self.pool.get('res.users').browse(cr, uid, uid, context).company_id
518 order_obj = self.pool.get('purchase.order')
519 order_line_obj = self.pool.get('purchase.order.line')
520 partner_obj = self.pool.get('res.partner')
521- tender_line_obj = self.pool.get('purchase.requisition.line')
522 pricelist_obj = self.pool.get('product.pricelist')
523 prod_obj = self.pool.get('product.product')
524 tender_obj = self.pool.get('purchase.requisition')
525 acc_pos_obj = self.pool.get('account.fiscal.position')
526- partner_id = data[0]['partner_id']
527-
528- supplier_data = partner_obj.browse(cr, uid, partner_id, context=context)
529+ partner_id = data.partner_id and data.partner_id.id or False
530+ supplier_data = data.partner_id
531
532 address_id = partner_obj.address_get(cr, uid, [partner_id], ['delivery'])['delivery']
533 list_line=[]
534
535=== modified file 'stock/i18n/stock.pot'
536--- stock/i18n/stock.pot 2011-01-14 00:11:01 +0000
537+++ stock/i18n/stock.pot 2011-02-15 12:38:08 +0000
538@@ -1114,7 +1114,6 @@
539 #: view:stock.invoice.onshipping:0
540 #: view:stock.location.product:0
541 #: view:stock.move:0
542-#: view:stock.move.track:0
543 #: view:stock.picking:0
544 #: view:stock.split.into:0
545 msgid "_Cancel"
546@@ -1693,7 +1692,6 @@
547 msgstr ""
548
549 #. module: stock
550-#: field:stock.move.track,quantity:0
551 msgid "Quantity per lot"
552 msgstr ""
553
554@@ -1920,7 +1918,6 @@
555
556 #. module: stock
557 #: model:ir.actions.act_window,name:stock.track_line_old
558-#: view:stock.move.track:0
559 msgid "Tracking a move"
560 msgstr ""
561
562@@ -2461,7 +2458,6 @@
563 msgstr ""
564
565 #. module: stock
566-#: field:stock.move.track,tracking_prefix:0
567 msgid "Tracking prefix"
568 msgstr ""
569
570@@ -2901,7 +2897,6 @@
571 #: view:stock.move.consume:0
572 #: view:stock.move.scrap:0
573 #: view:stock.move.split:0
574-#: view:stock.move.track:0
575 #: view:stock.split.into:0
576 msgid "Ok"
577 msgstr ""
578
579=== modified file 'stock/wizard/stock_move.py'
580--- stock/wizard/stock_move.py 2011-02-15 12:13:39 +0000
581+++ stock/wizard/stock_move.py 2011-02-15 12:38:08 +0000
582@@ -21,35 +21,6 @@
583
584 from osv import fields, osv
585
586-class stock_move_track(osv.osv_memory):
587- _name = "stock.move.track"
588- _description = "Track moves"
589-
590- _columns = {
591- 'tracking_prefix': fields.char('Tracking prefix', size=64),
592- 'quantity': fields.float("Quantity per lot")
593- }
594-
595- _defaults = {
596- 'quantity': lambda *x: 1
597- }
598-
599- def track_lines(self, cr, uid, ids, context=None):
600- """ To track stock moves lines
601- @param self: The object pointer.
602- @param cr: A database cursor
603- @param uid: ID of the user currently logged in
604- @param ids: An ID or list of IDs if we want more than one
605- @param context: A standard dictionary
606- @return:
607- """
608- datas = self.read(cr, uid, ids)[0]
609- move_obj = self.pool.get('stock.move')
610- move_obj._track_lines(cr, uid, context['active_id'], datas, context=context)
611- return {'type': 'ir.actions.act_window_close'}
612-
613-stock_move_track()
614-
615 class stock_move_consume(osv.osv_memory):
616 _name = "stock.move.consume"
617 _description = "Consume Products"
618
619=== modified file 'stock/wizard/stock_move_view.xml'
620--- stock/wizard/stock_move_view.xml 2011-01-14 00:11:01 +0000
621+++ stock/wizard/stock_move_view.xml 2011-02-15 12:38:08 +0000
622@@ -2,34 +2,6 @@
623 <openerp>
624 <data>
625
626- <record id="view_stock_move_track_wizard" model="ir.ui.view">
627- <field name="name">Tracking a move</field>
628- <field name="model">stock.move.track</field>
629- <field name="type">form</field>
630- <field name="arch" type="xml">
631- <form string="Tracking a move">
632- <field name="tracking_prefix" colspan="4"/>
633- <field name="quantity" colspan="4"/>
634- <newline/>
635- <separator string="" colspan="4" />
636- <button icon='gtk-cancel' special="cancel"
637- string="_Cancel" />
638- <button name="track_lines" string="Ok"
639- type="object" icon="gtk-ok" />
640- </form>
641- </field>
642- </record>
643-
644- <record id="track_line_old" model="ir.actions.act_window">
645- <field name="name">Tracking a move</field>
646- <field name="type">ir.actions.act_window</field>
647- <field name="res_model">stock.move.track</field>
648- <field name="view_type">form</field>
649- <field name="view_mode">form</field>
650- <field name="target">new</field>
651- </record>
652-
653-
654 <!-- Consume, scrap move -->
655
656 <record id="view_stock_move_consume_wizard" model="ir.ui.view">
657
658=== modified file 'stock/wizard/stock_split_move.py'
659--- stock/wizard/stock_split_move.py 2011-02-09 07:18:57 +0000
660+++ stock/wizard/stock_split_move.py 2011-02-15 12:38:08 +0000
661@@ -107,7 +107,7 @@
662 record_id = context and context.get('active_id', False) or False
663 pick_obj = self.pool.get('stock.picking')
664 pick = pick_obj.browse(cr, uid, record_id, context=context)
665- data = self.read(cr, uid, ids[0])
666+ data = self.read(cr, uid, ids[0], context=context)
667 for move in pick.move_lines:
668 quantity = data['move%s' % move.id]
669 if 0 < quantity < move.product_qty:
670
671=== modified file 'survey/wizard/survey_browse_answer.py'
672--- survey/wizard/survey_browse_answer.py 2011-02-09 07:18:57 +0000
673+++ survey/wizard/survey_browse_answer.py 2011-02-15 12:38:08 +0000
674@@ -61,14 +61,13 @@
675 @return : Dictionary value for Open the browse answer wizard.
676 """
677 if context is None: context = {}
678- record = self.read(cr, uid, ids, [])
679- record = record and record[0] or {}
680- if record['response_id']:
681- res_id = [(record['response_id'])]
682- else:
683- sur_response_obj = self.pool.get('survey.response')
684- res_id = sur_response_obj.search(cr, uid, [('survey_id', '=',int(record['survey_id']))])
685- context.update({'active' : True,'survey_id' : record['survey_id'], 'response_id' : res_id, 'response_no' : 0})
686+ sur_response_obj = self.pool.get('survey.response')
687+ for record in self.browse(cr, uid, ids,context=context):
688+ if record.response_id.id:
689+ res_id = record.response_id.id
690+ else:
691+ res_id = sur_response_obj.search(cr, uid, [('survey_id', '=',record.survey_id)])[0]
692+ context.update({'active' : True,'survey_id' : record.survey_id, 'response_id' : [res_id], 'response_no' : 0})
693 search_obj = self.pool.get('ir.ui.view')
694 search_id = search_obj.search(cr,uid,[('model','=','survey.question.wiz'),('name','=','Survey Search')])
695 return {
696
697=== modified file 'survey/wizard/survey_print.py'
698--- survey/wizard/survey_print.py 2011-02-09 07:18:57 +0000
699+++ survey/wizard/survey_print.py 2011-02-15 12:38:08 +0000
700@@ -55,10 +55,9 @@
701 @param context: A standard dictionary for contextual values
702 @return : Dictionary value for print survey form.
703 """
704-
705- datas = {'ids' : self.read(cr, uid, ids, [], context)[0]['survey_ids']}
706+ datas = {'ids' : self.read(cr, uid, ids, ['survey_ids'], context=context)[0]['survey_ids']}
707 res = self.read(cr, uid, ids, ['survey_title', 'orientation', 'paper_size',\
708- 'page_number', 'without_pagebreak'], context)
709+ 'page_number', 'without_pagebreak'], context=context)
710 res = res and res[0] or {}
711 datas['form'] = res
712 datas['model'] = 'survey.print'
713
714=== modified file 'survey/wizard/survey_print_answer.py'
715--- survey/wizard/survey_print_answer.py 2011-02-09 07:18:57 +0000
716+++ survey/wizard/survey_print_answer.py 2011-02-15 12:38:08 +0000
717@@ -59,7 +59,7 @@
718 context = {}
719 datas = {'ids': context.get('active_ids', [])}
720 res = self.read(cr, uid, ids, ['response_ids', 'orientation', 'paper_size',\
721- 'page_number', 'without_pagebreak'], context)
722+ 'page_number', 'without_pagebreak'], context=context)
723 res = res and res[0] or {}
724 datas['form'] = res
725 datas['model'] = 'survey.print.answer'
726
727=== modified file 'survey/wizard/survey_print_statistics.py'
728--- survey/wizard/survey_print_statistics.py 2011-02-09 07:18:57 +0000
729+++ survey/wizard/survey_print_statistics.py 2011-02-15 12:38:08 +0000
730@@ -44,7 +44,7 @@
731 if context is None:
732 context = {}
733 datas = {'ids': context.get('active_ids', [])}
734- res = self.read(cr, uid, ids, ['survey_ids'], context)
735+ res = self.read(cr, uid, ids, ['survey_ids'], context=context)
736 res = res and res[0] or {}
737 datas['form'] = res
738 datas['model'] = 'survey.print.statistics'
739
740=== modified file 'survey/wizard/survey_selection.py'
741--- survey/wizard/survey_selection.py 2011-02-09 07:18:57 +0000
742+++ survey/wizard/survey_selection.py 2011-02-15 12:38:08 +0000
743@@ -122,7 +122,7 @@
744 search_obj = self.pool.get('ir.ui.view')
745 if context is None: context = {}
746
747- sur_id = self.read(cr, uid, ids, [])[0]
748+ sur_id = self.read(cr, uid, ids, ['survey_id'], context=context)[0]
749 survey_id = sur_id['survey_id']
750 context.update({'survey_id': survey_id, 'sur_name_id': sur_id['id']})
751 cr.execute('select count(id) from survey_history where user_id=%s\
752@@ -133,8 +133,8 @@
753 if user_limit and res >= user_limit:
754 raise osv.except_osv(_('Warning !'),_("You can not give response for this survey more than %s times") % (user_limit))
755
756- sur_rec = survey_obj.read(cr,uid,self.read(cr,uid,ids)[0]['survey_id'])
757- if sur_rec['max_response_limit'] and sur_rec['max_response_limit'] <= sur_rec['tot_start_survey']:
758+ sur_rec = survey_obj.browse(cr,uid,ids,context=context)[0]
759+ if sur_rec.max_response_limit and sur_rec.max_response_limit <= sur_rec.tot_start_survey:
760 raise osv.except_osv(_('Warning !'),_("You can not give more response. Please contact the author of this survey for further assistance."))
761
762 search_id = search_obj.search(cr,uid,[('model','=','survey.question.wiz'),('name','=','Survey Search')])
763
764=== modified file 'survey/wizard/survey_send_invitation.py'
765--- survey/wizard/survey_send_invitation.py 2011-02-09 07:18:57 +0000
766+++ survey/wizard/survey_send_invitation.py 2011-02-15 12:38:08 +0000
767@@ -96,7 +96,7 @@
768 def action_send(self, cr, uid, ids, context=None):
769 if context is None:
770 context = {}
771- record = self.read(cr, uid, ids, [])
772+ record = self.read(cr, uid, ids, [],context=context)
773 survey_ids = context.get('active_ids', [])
774 record = record and record[0]
775 partner_ids = record['partner_ids']

Subscribers

People subscribed via source and target branches