Merge lp:~matjaz-6/openerpsl/openerpsl_02_17 into lp:openerpsl/7.0

Proposed by Matjaz Kalic
Status: Merged
Merged at revision: 358
Proposed branch: lp:~matjaz-6/openerpsl/openerpsl_02_17
Merge into: lp:openerpsl/7.0
Diff against target: 59 lines (+15/-5)
3 files modified
m_web_api/static/src/js/core.js (+5/-2)
mrp_procurement_qty/wizard/mrp_procurement_qty.py (+2/-1)
pekarna_reports/report/account_print_invoice.py (+8/-2)
To merge this branch: bzr merge lp:~matjaz-6/openerpsl/openerpsl_02_17
Reviewer Review Type Date Requested Status
Mentis Pending
Review via email: mp+209928@code.launchpad.net

This proposal supersedes a proposal from 2014-03-06.

Description of the change

[FIX] mrp_procurement_qty/wizard/mrp_procurement_qty.py (skip cancel picking if picking_id doesn't exists)
[MOD] m_web_api/static/src/js/core.js (show qty for mrp ordered from stock)

To post a comment you must log in.
358. By Dušan Laznik (Mentis)

[FIX] mrp_procurement_qty/wizard/mrp_procurement_qty.py (skip cancel picking if picking_id doesn't exists)
[MOD] m_web_api/static/src/js/core.js (show qty for mrp ordered from stock)
[FIX] pekarna_reports/report/account_print_invoice.py (fixed total neto price)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'm_web_api/static/src/js/core.js'
2--- m_web_api/static/src/js/core.js 2014-03-03 10:53:22 +0000
3+++ m_web_api/static/src/js/core.js 2014-03-11 10:11:33 +0000
4@@ -365,7 +365,7 @@
5 //------------------------------------------------//
6
7 //Prikaz podjetja in verzije
8- $("#podjetje").text('Podjetje: ' + document.getElementById("s1").options[so].text + ', Verzija: v.03.03');
9+ $("#podjetje").text('Podjetje: ' + document.getElementById("s1").options[so].text + ', Verzija: v.03.06');
10
11 openERP_user = '';
12 if (document.getElementById("u").value == 'Testo-Polizdelki'){
13@@ -939,7 +939,10 @@
14
15 //Ce je narocilo iz OP
16 if (results[i].created_from_op == true)
17- results[i].product_qty = 0
18+ if (vrstaIzdelka=='Izdelki'||vrstaIzdelka=='Dodelava')
19+ results[i].product_qty = '0('+results[i].product_qty+')';
20+ else
21+ results[i].product_qty = 0;
22
23 if (vrstaIzdelka=='Polizdelki_testo'){
24 iDelo = parseInt(results[i].product_delo);
25
26=== modified file 'mrp_procurement_qty/wizard/mrp_procurement_qty.py'
27--- mrp_procurement_qty/wizard/mrp_procurement_qty.py 2014-02-17 15:12:21 +0000
28+++ mrp_procurement_qty/wizard/mrp_procurement_qty.py 2014-03-11 10:11:33 +0000
29@@ -180,7 +180,8 @@
30 for mrp_order in man_order_obj.browse(cr, uid, ready_ids):
31 #0. Preverimo ali je bil delovni nalog sploh narejen/izveden - ce ne ga preklicemo
32 if mrp_order.produced == 0 and mrp_order.scrap == 0 and mrp_order.produced_phantom == 0:
33- picking_obj.action_cancel(cr, uid, [mrp_order.picking_id.id], context) #najprej preklicemo picking
34+ if mrp_order.picking_id.id:
35+ picking_obj.action_cancel(cr, uid, [mrp_order.picking_id.id], context) #najprej preklicemo picking
36 man_order_obj.action_cancel(cr, uid, [mrp_order.id], context) #nato preklicemo manufacturing order
37 if mrp_order.move_prod_id.id:
38 move_obj.action_cancel(cr, uid, [mrp_order.move_prod_id.id], context) #preklicemo se stock move
39
40=== modified file 'pekarna_reports/report/account_print_invoice.py'
41--- pekarna_reports/report/account_print_invoice.py 2013-08-20 10:29:36 +0000
42+++ pekarna_reports/report/account_print_invoice.py 2014-03-11 10:11:33 +0000
43@@ -39,8 +39,14 @@
44
45 def _get_total_net(self, invoice):
46 value_total = 0
47- for line in invoice.invoice_line:
48- value_total += line.quantity * line.price_unit
49+ tax_obj = self.pool.get('account.tax')
50+
51+ for line2 in invoice.invoice_line:
52+ value_total += tax_obj.compute_all(self.cr, self.uid, line2.invoice_line_tax_id, line2.price_unit, line2.quantity, product=line2.product_id, partner=line2.invoice_id.partner_id)['total']
53+
54+# for line in invoice.invoice_line:
55+# value_total += line.quantity * line.price_unit
56+
57 return value_total
58
59 report_sxw.report_sxw('report.account.invoice.pekarna', 'account.invoice', 'pekarna_reports/report/account_print_invoice.rml', parser=account_invoice)

Subscribers

People subscribed via source and target branches