Merge lp:~unifield-team/unifield-server/us-2065 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4102
Proposed branch: lp:~unifield-team/unifield-server/us-2065
Merge into: lp:unifield-server
Diff against target: 96 lines (+14/-13)
6 files modified
bin/addons/analytic_distribution_supply/purchase.py (+1/-6)
bin/addons/purchase_compare_rfq/wizard/compare_rfq.py (+1/-1)
bin/addons/sourcing/procurement_order.py (+3/-2)
bin/addons/tender_flow/report/tender_rfq_comparison_xls.mako (+5/-1)
bin/addons/tender_flow/report/tender_rfq_comparison_xls.py (+1/-1)
bin/addons/tender_flow/tender_flow.py (+3/-2)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-2065
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+312565@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/addons/analytic_distribution_supply/purchase.py'
--- bin/addons/analytic_distribution_supply/purchase.py 2016-11-09 10:33:09 +0000
+++ bin/addons/analytic_distribution_supply/purchase.py 2016-12-06 13:37:01 +0000
@@ -498,16 +498,11 @@
498 if not default:498 if not default:
499 default = {}499 default = {}
500500
501 if isinstance(l_id, (int, long)):
502 l_id = [l_id]
503 data = self.read(cr, uid, l_id[0], ['confirmed_delivery_date'], context=context)
504
505 # Update default501 # Update default
506 default.update({'commitment_line_ids': [(6, 0, [])],})502 default.update({'commitment_line_ids': [(6, 0, [])],})
507 default.update({"confirmed_delivery_date": data['confirmed_delivery_date']})
508 if 'analytic_distribution_id' not in default and not context.get('keepDateAndDistrib'):503 if 'analytic_distribution_id' not in default and not context.get('keepDateAndDistrib'):
509 default['analytic_distribution_id'] = False504 default['analytic_distribution_id'] = False
510 new_data = super(purchase_order_line, self).copy_data(cr, uid, l_id[0], default, context)505 new_data = super(purchase_order_line, self).copy_data(cr, uid, l_id, default, context)
511 if new_data and new_data.get('analytic_distribution_id'):506 if new_data and new_data.get('analytic_distribution_id'):
512 new_data['analytic_distribution_id'] = self.pool.get('analytic.distribution').copy(cr, uid, new_data['analytic_distribution_id'], {}, context=context)507 new_data['analytic_distribution_id'] = self.pool.get('analytic.distribution').copy(cr, uid, new_data['analytic_distribution_id'], {}, context=context)
513 return new_data508 return new_data
514509
=== modified file 'bin/addons/purchase_compare_rfq/wizard/compare_rfq.py'
--- bin/addons/purchase_compare_rfq/wizard/compare_rfq.py 2016-11-09 10:33:09 +0000
+++ bin/addons/purchase_compare_rfq/wizard/compare_rfq.py 2016-12-06 13:37:01 +0000
@@ -521,7 +521,7 @@
521 r.update({521 r.update({
522 'name_%s' % sid: sup.name,522 'name_%s' % sid: sup.name,
523 'unit_price_%s' % sid: rfql and pu or 0.00,523 'unit_price_%s' % sid: rfql and pu or 0.00,
524 'confirmed_delivery_date_%s' % sid: rfql.confirmed_delivery_date,524 'confirmed_delivery_date_%s' % sid: rfql and rfql.confirmed_delivery_date or False,
525 'comment_%s' % sid: rfql and rfql.comment or '',525 'comment_%s' % sid: rfql and rfql.comment or '',
526 })526 })
527527
528528
=== modified file 'bin/addons/sourcing/procurement_order.py'
--- bin/addons/sourcing/procurement_order.py 2016-11-09 10:33:09 +0000
+++ bin/addons/sourcing/procurement_order.py 2016-12-06 13:37:01 +0000
@@ -128,8 +128,9 @@
128 if procurement and procurement.tender_line_id:128 if procurement and procurement.tender_line_id:
129 if procurement.tender_line_id.comment:129 if procurement.tender_line_id.comment:
130 line['comment'] = procurement.tender_line_id.comment130 line['comment'] = procurement.tender_line_id.comment
131 if procurement.tender_line_id.purchase_order_line_id and procurement.tender_line_id.purchase_order_line_id.confirmed_delivery_date:131 # US-2065 - Do not push Delivery confirmed date on the RfQ to the PO
132 line.update({'confirmed_delivery_date': procurement.tender_line_id.purchase_order_line_id.confirmed_delivery_date})132 # if procurement.tender_line_id.purchase_order_line_id and procurement.tender_line_id.purchase_order_line_id.confirmed_delivery_date:
133 # line.update({'confirmed_delivery_date': procurement.tender_line_id.purchase_order_line_id.confirmed_delivery_date})
133134
134 if not line.get('price_unit', False):135 if not line.get('price_unit', False):
135 cur_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.currency_id.id136 cur_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.currency_id.id
136137
=== modified file 'bin/addons/tender_flow/report/tender_rfq_comparison_xls.mako'
--- bin/addons/tender_flow/report/tender_rfq_comparison_xls.mako 2016-10-27 10:25:44 +0000
+++ bin/addons/tender_flow/report/tender_rfq_comparison_xls.mako 2016-12-06 13:37:01 +0000
@@ -588,7 +588,11 @@
588 %>588 %>
589 <Cell ss:StyleID="s87"><Data ss:Type="String">${line.get(sup_name, '')|x}</Data></Cell>589 <Cell ss:StyleID="s87"><Data ss:Type="String">${line.get(sup_name, '')|x}</Data></Cell>
590 <Cell ss:StyleID="s88"><Data ss:Type="Number">${line.get(sup_price, 0.00)}</Data></Cell>590 <Cell ss:StyleID="s88"><Data ss:Type="Number">${line.get(sup_price, 0.00)}</Data></Cell>
591 <Cell ss:StyleID="sShortDate"><Data ss:Type="DateTime">${line.get(sup_confirmed_delivery_date, '')|x}T00:00:00.000</Data></Cell>591 % if line.get(sup_confirmed_delivery_date, False):
592 <Cell ss:StyleID="sShortDate"><Data ss:Type="DateTime">${line.get(sup_confirmed_delivery_date, '')|x}T00:00:00.000</Data></Cell>
593 % else:
594 <Cell ss:StyleID="s87"><Data ss:Type="String"></Data></Cell>
595 % endif
592 <Cell ss:StyleID="s90"><Data ss:Type="String">${line.get(sup_comment, '')|x}</Data></Cell>596 <Cell ss:StyleID="s90"><Data ss:Type="String">${line.get(sup_comment, '')|x}</Data></Cell>
593 % endfor597 % endfor
594 <Cell ss:StyleID="s91"><Data ss:Type="String">${line.choosen_supplier_id or ''|x}</Data></Cell>598 <Cell ss:StyleID="s91"><Data ss:Type="String">${line.choosen_supplier_id or ''|x}</Data></Cell>
595599
=== modified file 'bin/addons/tender_flow/report/tender_rfq_comparison_xls.py'
--- bin/addons/tender_flow/report/tender_rfq_comparison_xls.py 2016-10-25 07:31:30 +0000
+++ bin/addons/tender_flow/report/tender_rfq_comparison_xls.py 2016-12-06 13:37:01 +0000
@@ -78,7 +78,7 @@
78 'name_%s' % sid: sup.name,78 'name_%s' % sid: sup.name,
79 'unit_price_%s' % sid: pu,79 'unit_price_%s' % sid: pu,
80 'comment_%s' % sid: rfql and rfql.comment or '',80 'comment_%s' % sid: rfql and rfql.comment or '',
81 'confirmed_delivery_date_%s' % sid: rfql.confirmed_delivery_date,81 'confirmed_delivery_date_%s' % sid: rfql and rfql.confirmed_delivery_date or False,
82 })82 })
8383
84 lines.append(line_vals)84 lines.append(line_vals)
8585
=== modified file 'bin/addons/tender_flow/tender_flow.py'
--- bin/addons/tender_flow/tender_flow.py 2016-11-09 10:33:09 +0000
+++ bin/addons/tender_flow/tender_flow.py 2016-12-06 13:37:01 +0000
@@ -641,8 +641,9 @@
641 'comment': line.comment,641 'comment': line.comment,
642 }642 }
643643
644 if line.purchase_order_line_id:644 # US-2065 - Do not push Delivery confirmed date on the RfQ to the PO
645 pol_values.update({'confirmed_delivery_date': line.purchase_order_line_id.confirmed_delivery_date})645 # if line.purchase_order_line_id:
646 # pol_values.update({'confirmed_delivery_date': line.purchase_order_line_id.confirmed_delivery_date})
646647
647 data.setdefault(line.supplier_id.id, {}) \648 data.setdefault(line.supplier_id.id, {}) \
648 .setdefault('order_line', []).append((0,0, dict(pol_values)))649 .setdefault('order_line', []).append((0,0, dict(pol_values)))

Subscribers

People subscribed via source and target branches

to all changes: