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

Proposed by Quentin THEURET @Amaris
Status: Merged
Merged at revision: 4034
Proposed branch: lp:~unifield-team/unifield-server/us-1125
Merge into: lp:unifield-server
Diff against target: 967 lines (+298/-22)
38 files modified
bin/addons/delivery_mechanism/delivery_mechanism.py (+8/-2)
bin/addons/msf_outgoing/msf_outgoing.py (+4/-2)
bin/addons/msf_outgoing/msf_outgoing_view.xml (+7/-2)
bin/addons/msf_outgoing/report/empty_picking_ticket.rml (+100/-1)
bin/addons/msf_outgoing/report/packing_list.rml (+1/-1)
bin/addons/msf_outgoing/report/packing_list_xls.mako (+1/-1)
bin/addons/msf_outgoing/report/picking_ticket.py (+1/-0)
bin/addons/msf_outgoing/report/picking_ticket.rml (+1/-1)
bin/addons/msf_outgoing/wizard/create_picking_processor.py (+12/-0)
bin/addons/msf_outgoing/wizard/create_picking_processor_view.xml (+1/-0)
bin/addons/msf_outgoing/wizard/incoming_shipment_processor.py (+22/-0)
bin/addons/msf_outgoing/wizard/incoming_shipment_processor_view.xml (+1/-0)
bin/addons/msf_outgoing/wizard/internal_move_processor.py (+12/-0)
bin/addons/msf_outgoing/wizard/internal_move_processor_view.xml (+1/-0)
bin/addons/msf_outgoing/wizard/outgoing_delivery_processor.py (+12/-0)
bin/addons/msf_outgoing/wizard/outgoing_delivery_processor_view.xml (+1/-0)
bin/addons/msf_outgoing/wizard/picking_processor.py (+14/-1)
bin/addons/msf_outgoing/wizard/picking_processor_view.xml (+1/-0)
bin/addons/msf_outgoing/wizard/ppl_processor.py (+12/-0)
bin/addons/msf_outgoing/wizard/ppl_processor_view.xml (+1/-0)
bin/addons/msf_outgoing/wizard/return_ppl_processor.py (+12/-0)
bin/addons/msf_outgoing/wizard/return_ppl_processor_view.xml (+1/-0)
bin/addons/msf_outgoing/wizard/validate_picking_processor.py (+12/-0)
bin/addons/msf_outgoing/wizard/validate_picking_processor_view.xml (+1/-0)
bin/addons/msf_printed_documents/report/report_reception.rml (+1/-1)
bin/addons/msf_profile/i18n/fr_MF.po (+12/-0)
bin/addons/msf_supply_doc_export/report/report_internal_move_xls.mako (+2/-0)
bin/addons/msf_sync_data_server/data/sync_server.message_rule.csv (+3/-3)
bin/addons/purchase_compare_rfq/wizard/compare_rfq.py (+1/-0)
bin/addons/purchase_override/purchase.py (+3/-2)
bin/addons/sale_override/sale.py (+1/-0)
bin/addons/sourcing/procurement_order.py (+3/-0)
bin/addons/stock_override/report/delivery_order.rml (+8/-2)
bin/addons/stock_override/report/internal_move.rml (+8/-2)
bin/addons/stock_override/stock_view.xml (+5/-0)
bin/addons/sync_so/picking.py (+9/-1)
bin/addons/sync_so/purchase.py (+1/-0)
bin/addons/tender_flow/tender_flow.py (+2/-0)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-1125
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+309869@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/delivery_mechanism/delivery_mechanism.py'
--- bin/addons/delivery_mechanism/delivery_mechanism.py 2016-08-23 12:54:03 +0000
+++ bin/addons/delivery_mechanism/delivery_mechanism.py 2016-11-09 08:29:21 +0000
@@ -783,6 +783,7 @@
783 'prodlot_id': line.prodlot_id and line.prodlot_id.id or False,783 'prodlot_id': line.prodlot_id and line.prodlot_id.id or False,
784 'asset_id': line.asset_id and line.asset_id.id or False,784 'asset_id': line.asset_id and line.asset_id.id or False,
785 'change_reason': line.change_reason,785 'change_reason': line.change_reason,
786 'comment': line.comment or move.comment,
786 # Values from incoming wizard787 # Values from incoming wizard
787 'direct_incoming': line.wizard_id.direct_incoming,788 'direct_incoming': line.wizard_id.direct_incoming,
788 # Values for Direct Purchase Order789 # Values for Direct Purchase Order
@@ -850,7 +851,7 @@
850851
851 if wizard.dest_type != 'to_cross_docking':852 if wizard.dest_type != 'to_cross_docking':
852 values['direct_incoming'] = wizard.direct_incoming853 values['direct_incoming'] = wizard.direct_incoming
853854
854 return values855 return values
855856
856 def update_processing_info(self, cr, uid, picking_id, prog_id=False, values=None, context=None):857 def update_processing_info(self, cr, uid, picking_id, prog_id=False, values=None, context=None):
@@ -1598,13 +1599,14 @@
1598 # give the purchase order line a link to corresponding procurement1599 # give the purchase order line a link to corresponding procurement
1599 procurement = kwargs['procurement']1600 procurement = kwargs['procurement']
1600 line.update({'procurement_id': procurement.id, })1601 line.update({'procurement_id': procurement.id, })
1602
1601 # for Internal Request (IR) on make_to_order we update PO line data according to the data of the IR (=sale_order)1603 # for Internal Request (IR) on make_to_order we update PO line data according to the data of the IR (=sale_order)
1602 sale_order_line_ids = sale_obj.search(cr, uid, [('procurement_id', '=', procurement.id)], context=context)1604 sale_order_line_ids = sale_obj.search(cr, uid, [('procurement_id', '=', procurement.id)], context=context)
1603 for sol in sale_obj.browse(cr, uid, sale_order_line_ids, context=context):1605 for sol in sale_obj.browse(cr, uid, sale_order_line_ids, context=context):
1604 if (sol.order_id.procurement_request or procurement.supplier.partner_type == 'esc') and not sol.product_id and sol.comment:1606 if (sol.order_id.procurement_request or procurement.supplier.partner_type == 'esc') and not sol.product_id and sol.comment:
1605 line.update({'product_id': False,1607 line.update({'product_id': False,
1606 'name': 'Description: %s' % sol.comment,1608 'name': 'Description: %s' % sol.comment,
1607 'comment': sol.comment,1609 'comment': procurement.tender_line_id and procurement.tender_line_id.comment or sol.comment,
1608 'product_qty': sol.product_uom_qty,1610 'product_qty': sol.product_uom_qty,
1609 'price_unit': sol.price_unit,1611 'price_unit': sol.price_unit,
1610 'date_planned': sol.date_planned,1612 'date_planned': sol.date_planned,
@@ -1619,6 +1621,10 @@
1619 'nomen_sub_3': sol.nomen_sub_3.id or False,1621 'nomen_sub_3': sol.nomen_sub_3.id or False,
1620 'nomen_sub_4': sol.nomen_sub_4.id or False,1622 'nomen_sub_4': sol.nomen_sub_4.id or False,
1621 'nomen_sub_5': sol.nomen_sub_5.id or False})1623 'nomen_sub_5': sol.nomen_sub_5.id or False})
1624
1625 if procurement.tender_line_id and procurement.tender_line_id.purchase_order_line_id and procurement.tender_line_id.purchase_order_line_id.comment:
1626 line['comment'] = procurement.tender_line_id.purchase_order_line_id.comment
1627
1622 return line1628 return line
16231629
1624procurement_order()1630procurement_order()
16251631
=== modified file 'bin/addons/msf_outgoing/msf_outgoing.py'
--- bin/addons/msf_outgoing/msf_outgoing.py 2016-10-25 07:49:35 +0000
+++ bin/addons/msf_outgoing/msf_outgoing.py 2016-11-09 08:29:21 +0000
@@ -4931,14 +4931,15 @@
4931 '_name'::varchar(5) as name,4931 '_name'::varchar(5) as name,
4932 min(pl.currency_id) as currency_id,4932 min(pl.currency_id) as currency_id,
4933 sum(sol.price_unit * m.product_qty) as total_amount,4933 sum(sol.price_unit * m.product_qty) as total_amount,
4934 bool_and(m.not_shipped) as not_shipped4934 bool_and(m.not_shipped) as not_shipped,
4935 m.comment as comment
4935 from stock_picking p4936 from stock_picking p
4936 inner join stock_move m on m.picking_id = p.id and m.state != 'cancel' and m.product_qty > 04937 inner join stock_move m on m.picking_id = p.id and m.state != 'cancel' and m.product_qty > 0
4937 left join sale_order so on so.id = p.sale_id4938 left join sale_order so on so.id = p.sale_id
4938 left join sale_order_line sol on sol.id = m.sale_line_id4939 left join sale_order_line sol on sol.id = m.sale_line_id
4939 left join product_pricelist pl on pl.id = so.pricelist_id4940 left join product_pricelist pl on pl.id = so.pricelist_id
4940 where p.shipment_id is not null4941 where p.shipment_id is not null
4941 group by p.shipment_id, p.description_ppl, to_pack, sale_id, p.subtype, p.id, p.previous_step_id4942 group by p.shipment_id, p.description_ppl, to_pack, sale_id, p.subtype, p.id, p.previous_step_id, m.comment
4942 )4943 )
4943 ''')4944 ''')
49444945
@@ -5033,6 +5034,7 @@
5033 'total_volume': fields.function(_vals_get, method=True, type='float', string=u'Total Volume[dm³]', multi='get_vals',),5034 'total_volume': fields.function(_vals_get, method=True, type='float', string=u'Total Volume[dm³]', multi='get_vals',),
5034 'description_ppl': fields.char('Description', size=256),5035 'description_ppl': fields.char('Description', size=256),
5035 'not_shipped': fields.boolean(string='Not shipped'),5036 'not_shipped': fields.boolean(string='Not shipped'),
5037 'comment': fields.char(string='Comment', size=1024)
5036 }5038 }
50375039
5038 _defaults = {5040 _defaults = {
50395041
=== modified file 'bin/addons/msf_outgoing/msf_outgoing_view.xml'
--- bin/addons/msf_outgoing/msf_outgoing_view.xml 2016-05-30 07:12:04 +0000
+++ bin/addons/msf_outgoing/msf_outgoing_view.xml 2016-11-09 08:29:21 +0000
@@ -227,6 +227,7 @@
227 <tree string="Stock Moves" noteditable="fake_state in ('assigned', 'cancel')" hide_new_button="context.get('from_wkf')" hide_delete_button="True"227 <tree string="Stock Moves" noteditable="fake_state in ('assigned', 'cancel')" hide_new_button="context.get('from_wkf')" hide_delete_button="True"
228 colors="red: inactive_product==True">228 colors="red: inactive_product==True">
229 <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/>229 <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/>
230 <field name="comment" />
230 <field name="composition_list_id" />231 <field name="composition_list_id" />
231 <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>232 <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
232 <field name="product_uom" string="UoM"/>233 <field name="product_uom" string="UoM"/>
@@ -279,6 +280,7 @@
279 domain="[('uom_by_product', '=', product_id)]"280 domain="[('uom_by_product', '=', product_id)]"
280 />281 />
281 <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />282 <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
283 <field name="comment" colspan="4" />
282 </group>284 </group>
283 <group colspan="2" col="2">285 <group colspan="2" col="2">
284 <separator string="Locations" colspan="2" />286 <separator string="Locations" colspan="2" />
@@ -612,6 +614,7 @@
612 <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines and [move_lines[-1]] or [], 'address_out_id': address_id}" attrs="{'readonly': [ ('from_wkf', '=', True),('state','in',['draft','confirmed','assigned']) ]}" >614 <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines and [move_lines[-1]] or [], 'address_out_id': address_id}" attrs="{'readonly': [ ('from_wkf', '=', True),('state','in',['draft','confirmed','assigned']) ]}" >
613 <tree string="Stock Moves" hide_new_button="True" colors="red: inactive_product==True">615 <tree string="Stock Moves" hide_new_button="True" colors="red: inactive_product==True">
614 <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}" />616 <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}" />
617 <field name="comment" />
615 <field name="composition_list_id" />618 <field name="composition_list_id" />
616 <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>619 <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
617 <field name="product_uom" string="UoM"/>620 <field name="product_uom" string="UoM"/>
@@ -649,9 +652,10 @@
649 <field name="composition_list_id" invisible="True" />652 <field name="composition_list_id" invisible="True" />
650 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />653 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
651 <field name="product_uom" string="Unit Of Measure" colspan="2" domain="[('uom_by_product', '=', product_id)]"/>654 <field name="product_uom" string="Unit Of Measure" colspan="2" domain="[('uom_by_product', '=', product_id)]"/>
652 <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />655 <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" />
653 <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />656 <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="2" />
654 <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />657 <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
658 <field name="comment" colspan="4" />
655 </group>659 </group>
656 <group colspan="2" col="2">660 <group colspan="2" col="2">
657 <separator string="Locations" colspan="2" />661 <separator string="Locations" colspan="2" />
@@ -1267,6 +1271,7 @@
1267 <field name="location_id" />1271 <field name="location_id" />
1268 <field name="location_dest_id" />1272 <field name="location_dest_id" />
1269 <field name="state" />1273 <field name="state" />
1274 <field name="comment" />
1270 <field name="move_lines" nolabel="True" colspan="4" mode="tree" readonly="True">1275 <field name="move_lines" nolabel="True" colspan="4" mode="tree" readonly="True">
1271 <tree colors="red: inactive_product==True">1276 <tree colors="red: inactive_product==True">
1272 <field name="name" />1277 <field name="name" />
12731278
=== modified file 'bin/addons/msf_outgoing/report/empty_picking_ticket.rml'
--- bin/addons/msf_outgoing/report/empty_picking_ticket.rml 2016-07-28 12:34:28 +0000
+++ bin/addons/msf_outgoing/report/empty_picking_ticket.rml 2016-11-09 08:29:21 +0000
@@ -58,6 +58,17 @@
58 <blockBackground colorName="#c0c0c0" start="0,1" stop="-1,-1" />58 <blockBackground colorName="#c0c0c0" start="0,1" stop="-1,-1" />
59 <lineStyle kind="OUTLINE" colorName="black" start="-5,0" stop="-1,0" />59 <lineStyle kind="OUTLINE" colorName="black" start="-5,0" stop="-1,0" />
60 <lineStyle kind="GRID" colorName="black" start="0,1" stop="-1,-1" />60 <lineStyle kind="GRID" colorName="black" start="0,1" stop="-1,-1" />
61 <blockSpan start="0,1" stop="0,-1" />
62 <blockSpan start="3,1" stop="3,-1" />
63 <blockSpan start="4,1" stop="4,-1" />
64 <blockSpan start="5,1" stop="5,-1" />
65 <blockSpan start="6,1" stop="6,-1" />
66 <blockSpan start="7,1" stop="7,-1" />
67 <blockSpan start="8,1" stop="8,-1" />
68 <blockSpan start="9,1" stop="9,-1" />
69 <blockSpan start="10,1" stop="10,-1" />
70 <blockSpan start="11,1" stop="11,-1" />
71 <blockSpan start="12,1" stop="12,-1" />
61 </blockTableStyle>72 </blockTableStyle>
6273
63 <blockTableStyle id="LinesValues">74 <blockTableStyle id="LinesValues">
@@ -251,6 +262,50 @@
251 <para style="LineHeader">(w x l x h) (cm)</para>262 <para style="LineHeader">(w x l x h) (cm)</para>
252 </td>263 </td>
253 </tr>264 </tr>
265 <tr>
266 <td>
267 <para style="LineHeader"></para>
268 </td>
269 <td>
270 <para style="LineHeaderLeft"></para>
271 </td>
272 <td>
273 <para style="LineHeaderLeft">Comment</para>
274 </td>
275 <td>
276 <para style="LineHeader"></para>
277 </td>
278 <td>
279 <para style="LineHeader"></para>
280 </td>
281 <td>
282 <para style="LineHeader"></para>
283 </td>
284 <td>
285 <para style="LineHeader"></para>
286 </td>
287 <td>
288 <para style="LineHeader"></para>
289 </td>
290 <td>
291 <para style="LineHeader"></para>
292 </td>
293 <td>
294 <para style="LineHeader"></para>
295 </td>
296 <td>
297 <para style="LineHeader"></para>
298 </td>
299 <td>
300 <para style="LineHeader"></para>
301 </td>
302 <td>
303 <para style="LineHeader"></para>
304 </td>
305 <td>
306 <para style="LineHeader"></para>
307 </td>
308 </tr>
254 </blockTable>309 </blockTable>
255310
256 <pto>311 <pto>
@@ -344,6 +399,50 @@
344 <para style="LineHeader">Size (w x l x h) (cm)</para>399 <para style="LineHeader">Size (w x l x h) (cm)</para>
345 </td>400 </td>
346 </tr>401 </tr>
402 <tr>
403 <td>
404 <para style="LineHeader"></para>
405 </td>
406 <td>
407 <para style="LineHeaderLeft"></para>
408 </td>
409 <td>
410 <para style="LineHeaderLeft">Comment</para>
411 </td>
412 <td>
413 <para style="LineHeader"></para>
414 </td>
415 <td>
416 <para style="LineHeader"></para>
417 </td>
418 <td>
419 <para style="LineHeader"></para>
420 </td>
421 <td>
422 <para style="LineHeader"></para>
423 </td>
424 <td>
425 <para style="LineHeader"></para>
426 </td>
427 <td>
428 <para style="LineHeader"></para>
429 </td>
430 <td>
431 <para style="LineHeader"></para>
432 </td>
433 <td>
434 <para style="LineHeader"></para>
435 </td>
436 <td>
437 <para style="LineHeader"></para>
438 </td>
439 <td>
440 <para style="LineHeader"></para>
441 </td>
442 <td>
443 <para style="LineHeader"></para>
444 </td>
445 </tr>
347 </blockTable>446 </blockTable>
348 </pto_header>447 </pto_header>
349448
@@ -409,7 +508,7 @@
409 <para style="LineValue"></para>508 <para style="LineValue"></para>
410 </td>509 </td>
411 <td>510 <td>
412 <para style="LineValue"></para>511 <para style="LineValueLeft">[[ m.comment ]]</para>
413 </td>512 </td>
414 <td>513 <td>
415 <para style="LineValue"></para>514 <para style="LineValue"></para>
416515
=== modified file 'bin/addons/msf_outgoing/report/packing_list.rml'
--- bin/addons/msf_outgoing/report/packing_list.rml 2016-03-22 08:24:13 +0000
+++ bin/addons/msf_outgoing/report/packing_list.rml 2016-11-09 08:29:21 +0000
@@ -252,7 +252,7 @@
252 <para style="ParcelLineValue">[[ m.product_id.name ]]</para>252 <para style="ParcelLineValue">[[ m.product_id.name ]]</para>
253 </td>253 </td>
254 <td>254 <td>
255 <para style="ParcelLineValue">[[ m.sale_line_id and m.sale_line_id.notes or '' ]]</para>255 <para style="ParcelLineValue">[[ m.comment or '' ]]</para>
256 </td>256 </td>
257 <td>257 <td>
258 <para style="ParcelLineValue">[[ formatLang(m.product_qty or 0.00) ]] [[ m.product_uom.name ]]</para>258 <para style="ParcelLineValue">[[ formatLang(m.product_qty or 0.00) ]] [[ m.product_uom.name ]]</para>
259259
=== modified file 'bin/addons/msf_outgoing/report/packing_list_xls.mako'
--- bin/addons/msf_outgoing/report/packing_list_xls.mako 2016-03-22 08:24:13 +0000
+++ bin/addons/msf_outgoing/report/packing_list_xls.mako 2016-11-09 08:29:21 +0000
@@ -441,7 +441,7 @@
441 <Cell ss:StyleID="s134"><Data ss:Type="Number">${(m.line_number)|x}</Data></Cell>441 <Cell ss:StyleID="s134"><Data ss:Type="Number">${(m.line_number)|x}</Data></Cell>
442 <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.product_id.default_code)|x}</Data></Cell>442 <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.product_id.default_code)|x}</Data></Cell>
443 <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.product_id.name)|x}</Data></Cell>443 <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.product_id.name)|x}</Data></Cell>
444 <Cell ss:StyleID="s134" ss:MergeAcross="2"><Data ss:Type="String">${(m.sale_line_id and m.sale_line_id.notes or '')|x}</Data></Cell>444 <Cell ss:StyleID="s134" ss:MergeAcross="2"><Data ss:Type="String">${(m.comment or '')|x}</Data></Cell>
445 <Cell ss:StyleID="s134"><Data ss:Type="String">${(formatLang(m.product_qty or 0.00))|x} ${(m.product_uom.name)|x}</Data></Cell>445 <Cell ss:StyleID="s134"><Data ss:Type="String">${(formatLang(m.product_qty or 0.00))|x} ${(m.product_uom.name)|x}</Data></Cell>
446 <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.prodlot_id.name or '')|x}</Data></Cell>446 <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.prodlot_id.name or '')|x}</Data></Cell>
447 % if m.prodlot_id.life_date and m.prodlot_id.life_date not in (False, 'False'):447 % if m.prodlot_id.life_date and m.prodlot_id.life_date not in (False, 'False'):
448448
=== modified file 'bin/addons/msf_outgoing/report/picking_ticket.py'
--- bin/addons/msf_outgoing/report/picking_ticket.py 2016-07-28 12:32:01 +0000
+++ bin/addons/msf_outgoing/report/picking_ticket.py 2016-11-09 08:29:21 +0000
@@ -36,6 +36,7 @@
36 self.sale_line_id = move.sale_line_id36 self.sale_line_id = move.sale_line_id
37 self.product_uom = move.product_id.uom_id37 self.product_uom = move.product_id.uom_id
38 self.state = move.state38 self.state = move.state
39 self.comment = move.comment
39 self.product_qty = 0.0040 self.product_qty = 0.00
40 self.prodlot_id = None41 self.prodlot_id = None
41 self.kc_check = False42 self.kc_check = False
4243
=== modified file 'bin/addons/msf_outgoing/report/picking_ticket.rml'
--- bin/addons/msf_outgoing/report/picking_ticket.rml 2016-07-28 12:32:01 +0000
+++ bin/addons/msf_outgoing/report/picking_ticket.rml 2016-11-09 08:29:21 +0000
@@ -414,7 +414,7 @@
414 <para style="LineValue"></para>414 <para style="LineValue"></para>
415 </td>415 </td>
416 <td>416 <td>
417 <para style="LineValueLeft">[[ m.sale_line_id and m.sale_line_id.notes or '' ]]</para>417 <para style="LineValueLeft">[[ m.comment or '' ]]</para>
418 </td>418 </td>
419 <td>419 <td>
420 <para style="LineValueLeft">[[ m.sale_line_id and m.sale_line_id.product_id != m.product_id and '[%s] %s' % (m.product_id.default_code, m.product_id.name) or '' ]]</para>420 <para style="LineValueLeft">[[ m.sale_line_id and m.sale_line_id.product_id != m.product_id and '[%s] %s' % (m.product_id.default_code, m.product_id.name) or '' ]]</para>
421421
=== modified file 'bin/addons/msf_outgoing/wizard/create_picking_processor.py'
--- bin/addons/msf_outgoing/wizard/create_picking_processor.py 2016-03-08 15:48:47 +0000
+++ bin/addons/msf_outgoing/wizard/create_picking_processor.py 2016-11-09 08:29:21 +0000
@@ -103,6 +103,18 @@
103 help="Expected product to receive",103 help="Expected product to receive",
104 multi='move_info',104 multi='move_info',
105 ),105 ),
106 'comment': fields.function(
107 _get_move_info,
108 method=True,
109 string='Comment',
110 type='text',
111 store={
112 'create.picking.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20),
113 },
114 readonly=True,
115 help="Comment of the move",
116 multi='move_info',
117 ),
106 'ordered_uom_id': fields.function(118 'ordered_uom_id': fields.function(
107 _get_move_info,119 _get_move_info,
108 method=True,120 method=True,
109121
=== modified file 'bin/addons/msf_outgoing/wizard/create_picking_processor_view.xml'
--- bin/addons/msf_outgoing/wizard/create_picking_processor_view.xml 2016-03-17 08:30:04 +0000
+++ bin/addons/msf_outgoing/wizard/create_picking_processor_view.xml 2016-11-09 08:29:21 +0000
@@ -46,6 +46,7 @@
46 <!-- Visible fields -->46 <!-- Visible fields -->
47 <field name="line_number" string="Line" />47 <field name="line_number" string="Line" />
48 <field name="product_id" string="Product" />48 <field name="product_id" string="Product" />
49 <field name="comment" readonly="1" />
49 <button name="open_change_product_wizard"50 <button name="open_change_product_wizard"
50 type="object"51 type="object"
51 icon="gtk-convert"52 icon="gtk-convert"
5253
=== modified file 'bin/addons/msf_outgoing/wizard/incoming_shipment_processor.py'
--- bin/addons/msf_outgoing/wizard/incoming_shipment_processor.py 2016-07-25 08:20:05 +0000
+++ bin/addons/msf_outgoing/wizard/incoming_shipment_processor.py 2016-11-09 08:29:21 +0000
@@ -488,6 +488,15 @@
488 res[id] = False488 res[id] = False
489 return res489 return res
490490
491 def _set_comment(self, cr, uid, ml_id, name=None, value=None, fnct_inv_arg=None, context=None):
492 """
493 Just used to not break default OpenERP behaviour
494 """
495 if name and value:
496 sql = "UPDATE "+ self._table + " SET " + name + " = %s WHERE id = %s"
497 cr.execute(sql, (value, ml_id))
498 return True
499
491 _columns = {500 _columns = {
492 # Parent wizard501 # Parent wizard
493 'wizard_id': fields.many2one(502 'wizard_id': fields.many2one(
@@ -512,6 +521,19 @@
512 help="Expected product to receive",521 help="Expected product to receive",
513 multi='move_info',522 multi='move_info',
514 ),523 ),
524 'comment': fields.function(
525 _get_move_info,
526 fnct_inv=_set_comment,
527 method=True,
528 string='Comment',
529 type='text',
530 store={
531 'stock.move.in.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20),
532 },
533 readonly=True,
534 help="Comment of the move",
535 multi='move_info',
536 ),
515 'ordered_uom_id': fields.function(537 'ordered_uom_id': fields.function(
516 _get_move_info,538 _get_move_info,
517 method=True,539 method=True,
518540
=== modified file 'bin/addons/msf_outgoing/wizard/incoming_shipment_processor_view.xml'
--- bin/addons/msf_outgoing/wizard/incoming_shipment_processor_view.xml 2016-03-17 08:30:04 +0000
+++ bin/addons/msf_outgoing/wizard/incoming_shipment_processor_view.xml 2016-11-09 08:29:21 +0000
@@ -111,6 +111,7 @@
111 <!-- Visible fields -->111 <!-- Visible fields -->
112 <field name="line_number" string="Line" />112 <field name="line_number" string="Line" />
113 <field name="product_id" string="Product" />113 <field name="product_id" string="Product" />
114 <field name="comment" readonly="1" />
114 <field name="batch_location_ids" invisible="1" />115 <field name="batch_location_ids" invisible="1" />
115 <button name="open_change_product_wizard"116 <button name="open_change_product_wizard"
116 type="object"117 type="object"
117118
=== modified file 'bin/addons/msf_outgoing/wizard/internal_move_processor.py'
--- bin/addons/msf_outgoing/wizard/internal_move_processor.py 2016-03-08 15:48:47 +0000
+++ bin/addons/msf_outgoing/wizard/internal_move_processor.py 2016-11-09 08:29:21 +0000
@@ -402,6 +402,18 @@
402 help="Expected product to receive",402 help="Expected product to receive",
403 multi='move_info',403 multi='move_info',
404 ),404 ),
405 'comment': fields.function(
406 _get_move_info,
407 method=True,
408 string='Comment',
409 type='text',
410 store={
411 'internal.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20),
412 },
413 readonly=True,
414 help="Comment of the move",
415 multi='move_info',
416 ),
405 'ordered_uom_id': fields.function(417 'ordered_uom_id': fields.function(
406 _get_move_info,418 _get_move_info,
407 method=True,419 method=True,
408420
=== modified file 'bin/addons/msf_outgoing/wizard/internal_move_processor_view.xml'
--- bin/addons/msf_outgoing/wizard/internal_move_processor_view.xml 2016-03-17 08:37:36 +0000
+++ bin/addons/msf_outgoing/wizard/internal_move_processor_view.xml 2016-11-09 08:29:21 +0000
@@ -66,6 +66,7 @@
66 <!-- Visible fields -->66 <!-- Visible fields -->
67 <field name="line_number" string="Line" />67 <field name="line_number" string="Line" />
68 <field name="product_id" string="Product" />68 <field name="product_id" string="Product" />
69 <field name="comment" readonly="1" />
69 <button name="open_change_product_wizard"70 <button name="open_change_product_wizard"
70 type="object"71 type="object"
71 icon="gtk-convert"72 icon="gtk-convert"
7273
=== modified file 'bin/addons/msf_outgoing/wizard/outgoing_delivery_processor.py'
--- bin/addons/msf_outgoing/wizard/outgoing_delivery_processor.py 2016-03-08 15:48:47 +0000
+++ bin/addons/msf_outgoing/wizard/outgoing_delivery_processor.py 2016-11-09 08:29:21 +0000
@@ -190,6 +190,18 @@
190 help="Expected product to receive",190 help="Expected product to receive",
191 multi='move_info',191 multi='move_info',
192 ),192 ),
193 'comment': fields.function(
194 _get_move_info,
195 method=True,
196 string='Comment',
197 type='text',
198 store={
199 'outgoing.delivery.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20),
200 },
201 readonly=True,
202 help="Comment of the move",
203 multi='move_info',
204 ),
193 'ordered_uom_id': fields.function(205 'ordered_uom_id': fields.function(
194 _get_move_info,206 _get_move_info,
195 method=True,207 method=True,
196208
=== modified file 'bin/addons/msf_outgoing/wizard/outgoing_delivery_processor_view.xml'
--- bin/addons/msf_outgoing/wizard/outgoing_delivery_processor_view.xml 2016-03-17 08:37:36 +0000
+++ bin/addons/msf_outgoing/wizard/outgoing_delivery_processor_view.xml 2016-11-09 08:29:21 +0000
@@ -46,6 +46,7 @@
46 <!-- Visible fields -->46 <!-- Visible fields -->
47 <field name="line_number" string="Line" />47 <field name="line_number" string="Line" />
48 <field name="product_id" string="Product" />48 <field name="product_id" string="Product" />
49 <field name="comment" readonly="1" />
49 <button name="open_change_product_wizard"50 <button name="open_change_product_wizard"
50 type="object"51 type="object"
51 icon="gtk-convert"52 icon="gtk-convert"
5253
=== modified file 'bin/addons/msf_outgoing/wizard/picking_processor.py'
--- bin/addons/msf_outgoing/wizard/picking_processor.py 2016-08-18 08:32:03 +0000
+++ bin/addons/msf_outgoing/wizard/picking_processor.py 2016-11-09 08:29:21 +0000
@@ -238,7 +238,7 @@
238238
239 for line in self.browse(cr, uid, ids, context=context):239 for line in self.browse(cr, uid, ids, context=context):
240 # Return an error if the move has no product defined240 # Return an error if the move has no product defined
241 if not line.move_id.product_id:241 if not line.move_id or not line.move_id.product_id:
242 raise osv.except_osv(242 raise osv.except_osv(
243 _('Data Error'),243 _('Data Error'),
244 _('The move you are trying to process has no product defined - Please set a product on it before process it.')244 _('The move you are trying to process has no product defined - Please set a product on it before process it.')
@@ -268,6 +268,7 @@
268 'location_id': location_id,268 'location_id': location_id,
269 'location_supplier_customer_mem_out': loc_supplier or loc_cust or valid_pt,269 'location_supplier_customer_mem_out': loc_supplier or loc_cust or valid_pt,
270 'type_check': line.move_id.picking_id.type,270 'type_check': line.move_id.picking_id.type,
271 'comment': line.move_id.comment,
271 }272 }
272273
273 return res274 return res
@@ -452,6 +453,18 @@
452 help="Expected product to receive",453 help="Expected product to receive",
453 multi='move_info',454 multi='move_info',
454 ),455 ),
456 'comment': fields.function(
457 _get_move_info,
458 method=True,
459 string='Comment',
460 type='text',
461 store={
462 'stock.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20),
463 },
464 readonly=True,
465 help="Comment of the move",
466 multi='move_info',
467 ),
455 'quantity': fields.float(468 'quantity': fields.float(
456 string='Quantity',469 string='Quantity',
457 digits_compute=dp.get_precision('Product UoM'),470 digits_compute=dp.get_precision('Product UoM'),
458471
=== modified file 'bin/addons/msf_outgoing/wizard/picking_processor_view.xml'
--- bin/addons/msf_outgoing/wizard/picking_processor_view.xml 2016-03-17 08:37:36 +0000
+++ bin/addons/msf_outgoing/wizard/picking_processor_view.xml 2016-11-09 08:29:21 +0000
@@ -46,6 +46,7 @@
46 <!-- Visible fields -->46 <!-- Visible fields -->
47 <field name="line_number" string="Line" />47 <field name="line_number" string="Line" />
48 <field name="product_id" string="Product" />48 <field name="product_id" string="Product" />
49 <field name="comment" readonly="1" />
49 <button name="open_change_product_wizard"50 <button name="open_change_product_wizard"
50 type="object"51 type="object"
51 icon="gtk-convert"52 icon="gtk-convert"
5253
=== modified file 'bin/addons/msf_outgoing/wizard/ppl_processor.py'
--- bin/addons/msf_outgoing/wizard/ppl_processor.py 2016-08-18 08:32:03 +0000
+++ bin/addons/msf_outgoing/wizard/ppl_processor.py 2016-11-09 08:29:21 +0000
@@ -440,6 +440,18 @@
440 help="Expected product to receive",440 help="Expected product to receive",
441 multi='move_info',441 multi='move_info',
442 ),442 ),
443 'comment': fields.function(
444 _get_move_info,
445 method=True,
446 string='Comment',
447 type='text',
448 store={
449 'ppl.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20),
450 },
451 readonly=True,
452 help="Comment of the move",
453 multi='move_info',
454 ),
443 'ordered_uom_id': fields.function(455 'ordered_uom_id': fields.function(
444 _get_move_info,456 _get_move_info,
445 method=True,457 method=True,
446458
=== modified file 'bin/addons/msf_outgoing/wizard/ppl_processor_view.xml'
--- bin/addons/msf_outgoing/wizard/ppl_processor_view.xml 2016-03-17 08:37:36 +0000
+++ bin/addons/msf_outgoing/wizard/ppl_processor_view.xml 2016-11-09 08:29:21 +0000
@@ -66,6 +66,7 @@
66 string="Product"66 string="Product"
67 readonly="1"67 readonly="1"
68 />68 />
69 <field name="comment" readonly="1" />
69 <field name="asset_id" readonly="1" />70 <field name="asset_id" readonly="1" />
70 <field name="composition_list_id" readonly="1" />71 <field name="composition_list_id" readonly="1" />
71 <field name="quantity"72 <field name="quantity"
7273
=== modified file 'bin/addons/msf_outgoing/wizard/return_ppl_processor.py'
--- bin/addons/msf_outgoing/wizard/return_ppl_processor.py 2016-03-08 15:48:47 +0000
+++ bin/addons/msf_outgoing/wizard/return_ppl_processor.py 2016-11-09 08:29:21 +0000
@@ -142,6 +142,18 @@
142 help="Expected product to receive",142 help="Expected product to receive",
143 multi='move_info',143 multi='move_info',
144 ),144 ),
145 'comment': fields.function(
146 _get_move_info,
147 method=True,
148 string='Comment',
149 type='text',
150 store={
151 'return.ppl.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20),
152 },
153 readonly=True,
154 help="Comment of the move",
155 multi='move_info',
156 ),
145 'ordered_uom_id': fields.function(157 'ordered_uom_id': fields.function(
146 _get_move_info,158 _get_move_info,
147 method=True,159 method=True,
148160
=== modified file 'bin/addons/msf_outgoing/wizard/return_ppl_processor_view.xml'
--- bin/addons/msf_outgoing/wizard/return_ppl_processor_view.xml 2016-03-17 08:37:36 +0000
+++ bin/addons/msf_outgoing/wizard/return_ppl_processor_view.xml 2016-11-09 08:29:21 +0000
@@ -47,6 +47,7 @@
47 string="Product"47 string="Product"
48 readonly="1"48 readonly="1"
49 />49 />
50 <field name="comment" readonly="1" />
50 <field name="asset_id" readonly="1" />51 <field name="asset_id" readonly="1" />
51 <field name="composition_list_id" readonly="1" />52 <field name="composition_list_id" readonly="1" />
52 <field name="ordered_quantity" readonly="1" />53 <field name="ordered_quantity" readonly="1" />
5354
=== modified file 'bin/addons/msf_outgoing/wizard/validate_picking_processor.py'
--- bin/addons/msf_outgoing/wizard/validate_picking_processor.py 2016-03-08 15:48:47 +0000
+++ bin/addons/msf_outgoing/wizard/validate_picking_processor.py 2016-11-09 08:29:21 +0000
@@ -197,6 +197,18 @@
197 help="Expected product to receive",197 help="Expected product to receive",
198 multi='move_info',198 multi='move_info',
199 ),199 ),
200 'comment': fields.function(
201 _get_move_info,
202 method=True,
203 string='Comment',
204 type='text',
205 store={
206 'validate.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20),
207 },
208 readonly=True,
209 help="Comment of the move",
210 multi='move_info',
211 ),
200 'ordered_uom_id': fields.function(212 'ordered_uom_id': fields.function(
201 _get_move_info,213 _get_move_info,
202 method=True,214 method=True,
203215
=== modified file 'bin/addons/msf_outgoing/wizard/validate_picking_processor_view.xml'
--- bin/addons/msf_outgoing/wizard/validate_picking_processor_view.xml 2016-03-17 08:37:36 +0000
+++ bin/addons/msf_outgoing/wizard/validate_picking_processor_view.xml 2016-11-09 08:29:21 +0000
@@ -52,6 +52,7 @@
52 string="Change Product"52 string="Change Product"
53 attrs="{'invisible': [('type_check', '!=', 'in')]}"53 attrs="{'invisible': [('type_check', '!=', 'in')]}"
54 />54 />
55 <field name="comment" readonly="1" />
55 <field name="asset_id"56 <field name="asset_id"
56 domain="[('product_id', '=', product_id)]"57 domain="[('product_id', '=', product_id)]"
57 attrs="{'readonly': [('asset_check', '=', False)], 'required': [('location_supplier_customer_mem_out', '=', True), ('asset_check', '=', True)]}"58 attrs="{'readonly': [('asset_check', '=', False)], 'required': [('location_supplier_customer_mem_out', '=', True), ('asset_check', '=', True)]}"
5859
=== modified file 'bin/addons/msf_printed_documents/report/report_reception.rml'
--- bin/addons/msf_printed_documents/report/report_reception.rml 2016-03-22 08:24:13 +0000
+++ bin/addons/msf_printed_documents/report/report_reception.rml 2016-11-09 08:29:21 +0000
@@ -575,7 +575,7 @@
575 </tr>575 </tr>
576 <tr>576 <tr>
577 <td>577 <td>
578 <para style="TextInformationN" alignment="LEFT">-</para>578 <para style="TextInformation" alignment="LEFT">[[ line.comment or '-' ]]</para>
579 </td>579 </td>
580 <td>580 <td>
581 <para style="TextInformationN" alignment="LEFT">-</para>581 <para style="TextInformationN" alignment="LEFT">-</para>
582582
=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2016-10-25 09:13:52 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2016-11-09 08:29:21 +0000
@@ -18099,6 +18099,7 @@
18099#: report:addons/msf_supply_doc_export/report/report_purchase_order_xls.mako:7718099#: report:addons/msf_supply_doc_export/report/report_purchase_order_xls.mako:77
18100#: report:addons/msf_supply_doc_export/report/report_request_for_quotation_xls.mako:7618100#: report:addons/msf_supply_doc_export/report/report_request_for_quotation_xls.mako:76
18101#: report:addons/msf_supply_doc_export/report/report_sale_order_xls.mako:7718101#: report:addons/msf_supply_doc_export/report/report_sale_order_xls.mako:77
18102#: report:addons/msf_supply_doc_export/report/report_internal_move_xls.mako:70
18102#: field:purchase.order.line,comment:018103#: field:purchase.order.line,comment:0
18103#: field:purchase.order.merged.line,comment:018104#: field:purchase.order.merged.line,comment:0
18104#: field:sale.order.line,comment:018105#: field:sale.order.line,comment:0
@@ -74689,3 +74690,14 @@
74689msgid "You can't search on this object without using at least one exact search term (precede your search with the character '=')."74690msgid "You can't search on this object without using at least one exact search term (precede your search with the character '=')."
74690msgstr "Vous ne pouvez pas exécuter de recherche sur cet objet sans utiliser au moins une recherche exacte (ajoutez le caractère = devant votre filtre)."74691msgstr "Vous ne pouvez pas exécuter de recherche sur cet objet sans utiliser au moins une recherche exacte (ajoutez le caractère = devant votre filtre)."
7469174692
74693#. module: msf_instance
74694#: code:addons/msf_instance/analytic.py:45
74695#, python-format
74696msgid "Domain %s not suported"
74697msgstr "Domaine %s non supporté"
74698
74699#. module: msf_instance
74700#: code:addons/msf_instance/analytic.py:48
74701#, python-format
74702msgid "Operator '%s' not suported"
74703msgstr "Opérateur '%s' non supporté"
7469274704
=== modified file 'bin/addons/msf_supply_doc_export/report/report_internal_move_xls.mako'
--- bin/addons/msf_supply_doc_export/report/report_internal_move_xls.mako 2013-06-26 09:00:06 +0000
+++ bin/addons/msf_supply_doc_export/report/report_internal_move_xls.mako 2016-11-09 08:29:21 +0000
@@ -67,6 +67,7 @@
67 <Row>67 <Row>
68 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Code')}</Data></Cell>68 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Code')}</Data></Cell>
69 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Description')}</Data></Cell>69 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Description')}</Data></Cell>
70 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Comment')}</Data></Cell>
70 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell>71 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell>
71 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell>72 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell>
72 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Kit')}</Data></Cell>73 <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Kit')}</Data></Cell>
@@ -80,6 +81,7 @@
80 <Row>81 <Row>
81 <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_id.default_code or '')|x}</Data></Cell>82 <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_id.default_code or '')|x}</Data></Cell>
82 <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_id.name or '')|x}</Data></Cell>83 <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_id.name or '')|x}</Data></Cell>
84 <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.comment or '')|x}</Data></Cell>
83 <Cell ss:StyleID="line" ><Data ss:Type="Number">${(move.product_qty or '')|x}</Data></Cell>85 <Cell ss:StyleID="line" ><Data ss:Type="Number">${(move.product_qty or '')|x}</Data></Cell>
84 <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_uom.name or '')|x}</Data></Cell>86 <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_uom.name or '')|x}</Data></Cell>
85 <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.composition_list_id.composition_reference or '')|x}</Data></Cell>87 <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.composition_list_id.composition_reference or '')|x}</Data></Cell>
8688
=== modified file 'bin/addons/msf_sync_data_server/data/sync_server.message_rule.csv'
--- bin/addons/msf_sync_data_server/data/sync_server.message_rule.csv 2016-10-25 08:35:46 +0000
+++ bin/addons/msf_sync_data_server/data/sync_server.message_rule.csv 2016-11-09 08:29:21 +0000
@@ -10,9 +10,9 @@
10fo_updates_po_ref,TRUE,TRUE,"['name','state','client_order_ref']","['&','&','&',('partner_type','!=','external'),('client_order_ref','!=',False),('split_type_sale_order','=','original_sale_order'),'!',('client_order_ref', 'like', 'invalid_by_recovery')]",partner_id,MISSION,purchase.order.update_fo_ref,sale.order,FO updates PO ref,9,Valid10fo_updates_po_ref,TRUE,TRUE,"['name','state','client_order_ref']","['&','&','&',('partner_type','!=','external'),('client_order_ref','!=',False),('split_type_sale_order','=','original_sale_order'),'!',('client_order_ref', 'like', 'invalid_by_recovery')]",partner_id,MISSION,purchase.order.update_fo_ref,sale.order,FO updates PO ref,9,Valid
11update_in_ref,TRUE,TRUE,"['name','shipment_ref']","['&',('shipment_ref','!=',False),'!',('shipment_ref', 'like', 'invalid_by_recovery')]",partner_id,MISSION,stock.picking.update_in_ref,stock.picking,IN updates ref to OUT SHIP,10,Valid11update_in_ref,TRUE,TRUE,"['name','shipment_ref']","['&',('shipment_ref','!=',False),'!',('shipment_ref', 'like', 'invalid_by_recovery')]",partner_id,MISSION,stock.picking.update_in_ref,stock.picking,IN updates ref to OUT SHIP,10,Valid
12canceled_fo_cancels_po,TRUE,TRUE,"['name','state', 'client_order_ref']","[('state', '=', 'cancel'), ('client_order_ref', '!=', '')]",partner_id,MISSION,purchase.order.canceled_fo_cancel_po,sale.order,Canceled FO cancels PO,18,Valid12canceled_fo_cancels_po,TRUE,TRUE,"['name','state', 'client_order_ref']","[('state', '=', 'cancel'), ('client_order_ref', '!=', '')]",partner_id,MISSION,purchase.order.canceled_fo_cancel_po,sale.order,Canceled FO cancels PO,18,Valid
13partial_shipped_coordo_updates_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'partner_type_stock_picking', 'shipment_id/name', 'min_date', 'note', 'move_lines/processed_stock_move', 'move_lines/id', 'move_lines/state','move_lines/original_qty_partial', 'move_lines/line_number', 'move_lines/name', 'move_lines/change_reason', 'move_lines/product_id/id', 'move_lines/product_id/name', 'move_lines/product_qty', 'move_lines/prodlot_id/id','move_lines/prodlot_id/name','move_lines/prodlot_id/life_date', 'move_lines/expired_date', 'move_lines/asset_id/id','move_lines/product_uom/id', 'move_lines/product_uom/name', 'move_lines/date', 'move_lines/date_expected', 'move_lines/note', 'move_lines/location_dest_id/usage']","['&','&','&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'), ('subtype', 'in', ['standard', 'packing']), ('state', '=', 'done'), ('already_shipped', '=', True), ('do_not_sync', '=', False), ('claim', '=', False)]",partner_id,MISSION,stock.picking.partial_shipped_fo_updates_in_po,stock.picking,Partial shipped at Coordo updates IN at Project,19,Valid13partial_shipped_coordo_updates_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'partner_type_stock_picking', 'shipment_id/name', 'min_date', 'note', 'move_lines/processed_stock_move', 'move_lines/id', 'move_lines/state','move_lines/original_qty_partial', 'move_lines/line_number', 'move_lines/name', 'move_lines/change_reason', 'move_lines/product_id/id', 'move_lines/product_id/name', 'move_lines/product_qty', 'move_lines/prodlot_id/id','move_lines/prodlot_id/name','move_lines/prodlot_id/life_date', 'move_lines/expired_date', 'move_lines/asset_id/id','move_lines/product_uom/id', 'move_lines/product_uom/name', 'move_lines/date', 'move_lines/date_expected', 'move_lines/note', 'move_lines/location_dest_id/usage', 'move_lines/comment']","['&','&','&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'), ('subtype', 'in', ['standard', 'packing']), ('state', '=', 'done'), ('already_shipped', '=', True), ('do_not_sync', '=', False), ('claim', '=', False)]",partner_id,MISSION,stock.picking.partial_shipped_fo_updates_in_po,stock.picking,Partial shipped at Coordo updates IN at Project,19,Valid
14moves_from_dpo_closed_coordo_updates_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'subtype', 'partner_type_stock_picking', 'shipment_id/name', 'min_date', 'note', 'move_lines/processed_stock_move', 'move_lines/id', 'move_lines/state','move_lines/original_qty_partial', 'move_lines/line_number', 'move_lines/name', 'move_lines/change_reason', 'move_lines/product_id/id', 'move_lines/product_id/name', 'move_lines/product_qty', 'move_lines/prodlot_id/id','move_lines/prodlot_id/name','move_lines/prodlot_id/life_date', 'move_lines/expired_date', 'move_lines/asset_id/id','move_lines/product_uom/id', 'move_lines/product_uom/name', 'move_lines/date', 'move_lines/date_expected', 'move_lines/note', 'move_lines/dpo_line_id']","['&', '&', '&', ('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'), ('subtype', 'in', ['picking', 'standard']), ('dpo_out', '=', True)]",partner_id,MISSION,stock.picking.partial_shippped_dpo_updates_in_po,stock.picking,Moves from DPO closed at Coordo updates IN at Project,20,Valid14moves_from_dpo_closed_coordo_updates_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'subtype', 'partner_type_stock_picking', 'shipment_id/name', 'min_date', 'note', 'move_lines/processed_stock_move', 'move_lines/id', 'move_lines/state','move_lines/original_qty_partial', 'move_lines/line_number', 'move_lines/name', 'move_lines/change_reason', 'move_lines/product_id/id', 'move_lines/product_id/name', 'move_lines/product_qty', 'move_lines/prodlot_id/id','move_lines/prodlot_id/name','move_lines/prodlot_id/life_date', 'move_lines/expired_date', 'move_lines/asset_id/id','move_lines/product_uom/id', 'move_lines/product_uom/name', 'move_lines/date', 'move_lines/date_expected', 'move_lines/note', 'move_lines/dpo_line_id', 'move_lines/comment']","['&', '&', '&', ('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'), ('subtype', 'in', ['picking', 'standard']), ('dpo_out', '=', True)]",partner_id,MISSION,stock.picking.partial_shippped_dpo_updates_in_po,stock.picking,Moves from DPO closed at Coordo updates IN at Project,20,Valid
15dpo_service_lines_update_in_at_project,FALSE,TRUE,"['order_id/name', 'order_id/delivery_confirmed_date', 'fake_id', 'origin', 'confirmed_delivery_date', 'name', 'product_uom/id', 'product_uom/name', 'link_sol_id/line_number', 'notes', 'product_qty', 'product_id/name', 'product_id/id']","[('dest_partner_id.partner_type', '=', 'internal'), ('order_id.order_type', '=', 'direct'), ('order_id.state', 'in', ['approved', 'done']), ('product_id.type', 'in', ['service', 'service_recep'])]",dest_partner_id,MISSION,purchase.order.line.confirmed_dpo_service_lines_update_in_po,purchase.order.line,DPO service lines update IN at Project,21,Valid15dpo_service_lines_update_in_at_project,FALSE,TRUE,"['order_id/name', 'order_id/delivery_confirmed_date', 'fake_id', 'origin', 'confirmed_delivery_date', 'name', 'product_uom/id', 'product_uom/name', 'link_sol_id/line_number', 'notes', 'product_qty', 'product_id/name', 'product_id/id', 'comment']","[('dest_partner_id.partner_type', '=', 'internal'), ('order_id.order_type', '=', 'direct'), ('order_id.state', 'in', ['approved', 'done']), ('product_id.type', 'in', ['service', 'service_recep'])]",dest_partner_id,MISSION,purchase.order.line.confirmed_dpo_service_lines_update_in_po,purchase.order.line,DPO service lines update IN at Project,21,Valid
16cancel_out_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin']","['&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('subtype', '=', 'standard'),('do_not_sync', '=', False)]",partner_id,MISSION,stock.picking.cancel_out_pick_cancel_in,stock.picking,Canceled OUT at Coordo cancels IN at Project,22,Valid16cancel_out_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin']","['&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('subtype', '=', 'standard'),('do_not_sync', '=', False)]",partner_id,MISSION,stock.picking.cancel_out_pick_cancel_in,stock.picking,Canceled OUT at Coordo cancels IN at Project,22,Valid
17cancel_pick_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin']","['&','&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('subtype', '=', 'picking'),('backorder_id', '=', False),('do_not_sync', '=', False)]",partner_id,MISSION,stock.picking.cancel_out_pick_cancel_in,stock.picking,Canceled PICK at Coordo cancels IN at Project,23,Valid17cancel_pick_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin']","['&','&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('subtype', '=', 'picking'),('backorder_id', '=', False),('do_not_sync', '=', False)]",partner_id,MISSION,stock.picking.cancel_out_pick_cancel_in,stock.picking,Canceled PICK at Coordo cancels IN at Project,23,Valid
18cancel_stock_move_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'date_cancel']","['&','&','&','&','&','&',('picking_id.partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('picking_id.state', '=', 'done'),('picking_id.do_not_sync', '=', False),('to_be_sent', '=', True), '&', '|', ('picking_id.subtype', '=', 'picking'), ('picking_id.subtype', '=', 'standard'), ('picking_id.already_shipped', '=', False)]",partner_id,MISSION,stock.picking.cancel_stock_move_of_pick_cancel_in,stock.move,Canceled stock move cancels IN,24,Valid18cancel_stock_move_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'date_cancel']","['&','&','&','&','&','&',('picking_id.partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('picking_id.state', '=', 'done'),('picking_id.do_not_sync', '=', False),('to_be_sent', '=', True), '&', '|', ('picking_id.subtype', '=', 'picking'), ('picking_id.subtype', '=', 'standard'), ('picking_id.already_shipped', '=', False)]",partner_id,MISSION,stock.picking.cancel_stock_move_of_pick_cancel_in,stock.move,Canceled stock move cancels IN,24,Valid
1919
=== modified file 'bin/addons/purchase_compare_rfq/wizard/compare_rfq.py'
--- bin/addons/purchase_compare_rfq/wizard/compare_rfq.py 2016-07-21 10:12:49 +0000
+++ bin/addons/purchase_compare_rfq/wizard/compare_rfq.py 2016-11-09 08:29:21 +0000
@@ -343,6 +343,7 @@
343 pol_id = wl_brw.rfq_line_id and wl_brw.rfq_line_id.id or False343 pol_id = wl_brw.rfq_line_id and wl_brw.rfq_line_id.id or False
344 tl_obj.write(cr, uid, [wl_brw.tender_line_id.id], {344 tl_obj.write(cr, uid, [wl_brw.tender_line_id.id], {
345 'purchase_order_line_id': pol_id,345 'purchase_order_line_id': pol_id,
346 'comment': wl_brw.rfq_line_id.comment or '',
346 }, context=context)347 }, context=context)
347348
348 # UF-733: if all tender lines have been compared (have PO Line id),349 # UF-733: if all tender lines have been compared (have PO Line id),
349350
=== modified file 'bin/addons/purchase_override/purchase.py'
--- bin/addons/purchase_override/purchase.py 2016-10-26 07:22:24 +0000
+++ bin/addons/purchase_override/purchase.py 2016-11-09 08:29:21 +0000
@@ -2148,7 +2148,7 @@
2148 pick_obj = self.pool.get('stock.picking')2148 pick_obj = self.pool.get('stock.picking')
2149 if pick_obj.search_exist(cr, uid, [('purchase_id', 'in', [order.id])], context=context):2149 if pick_obj.search_exist(cr, uid, [('purchase_id', 'in', [order.id])], context=context):
2150 return2150 return
21512151
2152 picking_id = self.pool.get('stock.picking').create(cr, uid, picking_values, context=context)2152 picking_id = self.pool.get('stock.picking').create(cr, uid, picking_values, context=context)
2153 todo_moves = []2153 todo_moves = []
2154 for order_line in order.order_line:2154 for order_line in order.order_line:
@@ -2196,6 +2196,7 @@
2196 'date': order_line.confirmed_delivery_date,2196 'date': order_line.confirmed_delivery_date,
2197 'date_expected': order_line.confirmed_delivery_date,2197 'date_expected': order_line.confirmed_delivery_date,
2198 'line_number': order_line.line_number,2198 'line_number': order_line.line_number,
2199 'comment': order_line.comment,
2199 }2200 }
22002201
2201 if reason_type_id:2202 if reason_type_id:
@@ -3066,7 +3067,7 @@
30663067
3067 # utp-518:we write the comment from the sale.order.line on the PO line through the procurement (only for the create!!)3068 # utp-518:we write the comment from the sale.order.line on the PO line through the procurement (only for the create!!)
3068 po_procurement_id = vals.get('procurement_id', False)3069 po_procurement_id = vals.get('procurement_id', False)
3069 if po_procurement_id:3070 if po_procurement_id and not vals.get('comment'):
3070 sale_id = sol_obj.search(cr, uid, [('procurement_id', '=', po_procurement_id)], context=context)3071 sale_id = sol_obj.search(cr, uid, [('procurement_id', '=', po_procurement_id)], context=context)
3071 if sale_id:3072 if sale_id:
3072 comment_so = sol_obj.read(cr, uid, sale_id, ['comment'], context=context)[0]['comment']3073 comment_so = sol_obj.read(cr, uid, sale_id, ['comment'], context=context)[0]['comment']
30733074
=== modified file 'bin/addons/sale_override/sale.py'
--- bin/addons/sale_override/sale.py 2016-08-22 13:55:25 +0000
+++ bin/addons/sale_override/sale.py 2016-11-09 08:29:21 +0000
@@ -1911,6 +1911,7 @@
1911 'price_currency_id': order.procurement_request and order.functional_currency_id.id or order.pricelist_id.currency_id.id,1911 'price_currency_id': order.procurement_request and order.functional_currency_id.id or order.pricelist_id.currency_id.id,
1912 'price_unit': order.procurement_request and line.cost_price or line.price_unit,1912 'price_unit': order.procurement_request and line.cost_price or line.price_unit,
1913 'line_number': line.line_number,1913 'line_number': line.line_number,
1914 'comment': line.comment,
1914 }1915 }
19151916
1916 if line.order_id.procurement_request and line.order_id.location_requestor_id.usage == 'customer' and not line.product_id and line.comment:1917 if line.order_id.procurement_request and line.order_id.location_requestor_id.usage == 'customer' and not line.product_id and line.comment:
19171918
=== modified file 'bin/addons/sourcing/procurement_order.py'
--- bin/addons/sourcing/procurement_order.py 2016-08-22 13:55:25 +0000
+++ bin/addons/sourcing/procurement_order.py 2016-11-09 08:29:21 +0000
@@ -124,6 +124,9 @@
124 if procurement.po_cft in ('cft', 'rfq') and procurement.price_unit:124 if procurement.po_cft in ('cft', 'rfq') and procurement.price_unit:
125 line.update({'price_unit': procurement.price_unit})125 line.update({'price_unit': procurement.price_unit})
126126
127 if procurement.tender_line_id and procurement.tender_line_id.comment:
128 line['comment'] = procurement.tender_line_id
129
127 if not line.get('price_unit', False):130 if not line.get('price_unit', False):
128 cur_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.currency_id.id131 cur_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.currency_id.id
129 if 'pricelist' in kwargs:132 if 'pricelist' in kwargs:
130133
=== modified file 'bin/addons/stock_override/report/delivery_order.rml'
--- bin/addons/stock_override/report/delivery_order.rml 2016-07-28 12:21:46 +0000
+++ bin/addons/stock_override/report/delivery_order.rml 2016-11-09 08:29:21 +0000
@@ -177,7 +177,7 @@
177177
178178
179 <section>179 <section>
180 <blockTable colWidths="25.0,70.0,120.0,60.0,45.0,40.0,70.0,70.0,70.0,80.0,80.0,80.0" style="LineHeader" repeatRows="1">180 <blockTable colWidths="20.0,70.0,120.0,50.0,60.0,45.0,40.0,70.0,70.0,70.0,65.0,65.0,65.0" style="LineHeader" repeatRows="1">
181 <tr>181 <tr>
182 <td>182 <td>
183 <para style="LHeader">Line</para>183 <para style="LHeader">Line</para>
@@ -189,6 +189,9 @@
189 <para style="LHeader">Product Name</para>189 <para style="LHeader">Product Name</para>
190 </td>190 </td>
191 <td>191 <td>
192 <para style="LHeader">CommentS</para>
193 </td>
194 <td>
192 <para style="LHeader">Kit</para>195 <para style="LHeader">Kit</para>
193 </td>196 </td>
194 <td>197 <td>
@@ -229,6 +232,9 @@
229 <para style="Line">[[ line.product_id.name ]]</para>232 <para style="Line">[[ line.product_id.name ]]</para>
230 </td>233 </td>
231 <td>234 <td>
235 <para style="Line">[[ line.comment ]]</para>
236 </td>
237 <td>
232 <para style="Line">[[ line.composition_list_id.name ]]</para>238 <para style="Line">[[ line.composition_list_id.name ]]</para>
233 </td>239 </td>
234 <td>240 <td>
@@ -253,7 +259,7 @@
253 <para style="Line">[[ line.location_dest_id.name ]]</para>259 <para style="Line">[[ line.location_dest_id.name ]]</para>
254 </td>260 </td>
255 <td>261 <td>
256 <para style="Line">[[ formatLang(line.date, date_time=True) ]]</para>262 <para style="Line">[[ formatLang(line.date[:10], date=True) ]]</para>
257 </td>263 </td>
258 </tr>264 </tr>
259 </blockTable>265 </blockTable>
260266
=== modified file 'bin/addons/stock_override/report/internal_move.rml'
--- bin/addons/stock_override/report/internal_move.rml 2015-03-02 17:03:58 +0000
+++ bin/addons/stock_override/report/internal_move.rml 2016-11-09 08:29:21 +0000
@@ -180,7 +180,7 @@
180 <setNextTemplate name="second" />180 <setNextTemplate name="second" />
181181
182 <section>182 <section>
183 <blockTable colWidths="25.0,70.0,120.0,60.0,45.0,40.0,70.0,70.0,70.0,80.0,80.0,80.0" style="LineHeader" repeatRows="1">183 <blockTable colWidths="20.0,70.0,120.0,50.0,60.0,45.0,40.0,70.0,70.0,70.0,65.0,65.0,65.0" style="LineHeader" repeatRows="1">
184 <tr>184 <tr>
185 <td>185 <td>
186 <para style="LHeader">Line</para>186 <para style="LHeader">Line</para>
@@ -192,6 +192,9 @@
192 <para style="LHeader">Product Name</para>192 <para style="LHeader">Product Name</para>
193 </td>193 </td>
194 <td>194 <td>
195 <para style="LHeader">Comment</para>
196 </td>
197 <td>
195 <para style="LHeader">Kit</para>198 <para style="LHeader">Kit</para>
196 </td>199 </td>
197 <td>200 <td>
@@ -231,6 +234,9 @@
231 <para style="Line">[[ line.product_id.name ]]</para>234 <para style="Line">[[ line.product_id.name ]]</para>
232 </td>235 </td>
233 <td>236 <td>
237 <para style="Line">[[ line.comment ]]</para>
238 </td>
239 <td>
234 <para style="Line">[[ line.composition_list_id.name ]]</para>240 <para style="Line">[[ line.composition_list_id.name ]]</para>
235 </td>241 </td>
236 <td>242 <td>
@@ -255,7 +261,7 @@
255 <para style="Line">[[ line.location_dest_id.name ]]</para>261 <para style="Line">[[ line.location_dest_id.name ]]</para>
256 </td>262 </td>
257 <td>263 <td>
258 <para style="Line">[[ formatLang(line.date, date_time=True) ]]</para>264 <para style="Line">[[ formatLang(line.date[:10], date=True) ]]</para>
259 </td>265 </td>
260 </tr>266 </tr>
261 </blockTable>267 </blockTable>
262268
=== modified file 'bin/addons/stock_override/stock_view.xml'
--- bin/addons/stock_override/stock_view.xml 2016-08-03 12:08:12 +0000
+++ bin/addons/stock_override/stock_view.xml 2016-11-09 08:29:21 +0000
@@ -335,6 +335,7 @@
335 <tree colors="grey:scrapped == True; red: inactive_product or to_correct_ok or expired_lot" string="Stock Moves" noteditable="fake_state=='assigned'" hide_new_button="context.get('from_wkf')" hide_delete_button="context.get('from_wkf')">335 <tree colors="grey:scrapped == True; red: inactive_product or to_correct_ok or expired_lot" string="Stock Moves" noteditable="fake_state=='assigned'" hide_new_button="context.get('from_wkf')" hide_delete_button="context.get('from_wkf')">
336 <field name="line_number"/>336 <field name="line_number"/>
337 <field name="product_id" />337 <field name="product_id" />
338 <field name="comment" />
338 <field name="composition_list_id"/>339 <field name="composition_list_id"/>
339 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>340 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
340 <field name="product_uom" string="UoM"/>341 <field name="product_uom" string="UoM"/>
@@ -405,6 +406,7 @@
405 invisible="1"406 invisible="1"
406 />407 />
407 <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1"/>408 <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1"/>
409 <field name="comment" colspan="4" />
408 </group>410 </group>
409411
410 <group colspan="2" col="2">412 <group colspan="2" col="2">
@@ -594,6 +596,7 @@
594 <field name="line_number"/>596 <field name="line_number"/>
595 <field name="product_id" context="{'available_for_restriction': 'consumption', 'search_default_not_restricted': 1}" />597 <field name="product_id" context="{'available_for_restriction': 'consumption', 'search_default_not_restricted': 1}" />
596 <field name="inactive_product" invisible="1" />598 <field name="inactive_product" invisible="1" />
599 <field name="comment" />
597 <field name="product_qty"/>600 <field name="product_qty"/>
598 <field name="product_uom" string="UoM"/>601 <field name="product_uom" string="UoM"/>
599 <field name="scrapped" invisible="1"/>602 <field name="scrapped" invisible="1"/>
@@ -644,6 +647,7 @@
644 attrs="{'readonly': [('from_wkf_line', '=', True)]}"647 attrs="{'readonly': [('from_wkf_line', '=', True)]}"
645 colspan="2"648 colspan="2"
646 domain="[('uom_by_product', '=', product_id)]"/>649 domain="[('uom_by_product', '=', product_id)]"/>
650 <field name="comment" colspan="4" />
647 <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" invisible="1"/>651 <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" invisible="1"/>
648 <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" invisible="1"/>652 <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" invisible="1"/>
649 <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />653 <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" />
@@ -879,6 +883,7 @@
879 <tree colors="grey:scrapped==True; red: inactive_product == True or product_tbd == True" string="Stock Moves" noteditable="fake_state in ('assigned', 'cancel')" hide_new_button="context.get('from_wkf')" hide_delete_button="True">883 <tree colors="grey:scrapped==True; red: inactive_product == True or product_tbd == True" string="Stock Moves" noteditable="fake_state in ('assigned', 'cancel')" hide_new_button="context.get('from_wkf')" hide_delete_button="True">
880 <field name="line_number"/>884 <field name="line_number"/>
881 <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/>885 <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/>
886 <field name="comment" />
882 <field name="composition_list_id"/>887 <field name="composition_list_id"/>
883 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>888 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
884 <field name="product_uom" string="UoM"/>889 <field name="product_uom" string="UoM"/>
885890
=== modified file 'bin/addons/sync_so/picking.py'
--- bin/addons/sync_so/picking.py 2016-08-23 12:54:03 +0000
+++ bin/addons/sync_so/picking.py 2016-11-09 08:29:21 +0000
@@ -201,6 +201,7 @@
201 'name': data['name'],201 'name': data['name'],
202 'quantity': data['product_qty'] or 0.0,202 'quantity': data['product_qty'] or 0.0,
203 'note': data['note'],203 'note': data['note'],
204 'comment': data.get('comment'),
204 }205 }
205 return result206 return result
206207
@@ -337,6 +338,7 @@
337 ln = data.get('line_number')338 ln = data.get('line_number')
338 # UF-2148: if the line contains 0 qty, just ignore it!339 # UF-2148: if the line contains 0 qty, just ignore it!
339 qty = data.get('quantity', 0)340 qty = data.get('quantity', 0)
341 comment = data.get('comment', False)
340 if qty == 0:342 if qty == 0:
341 message = "Line number " + str(ln) + " with quantity 0 is ignored!"343 message = "Line number " + str(ln) + " with quantity 0 is ignored!"
342 self._logger.info(message)344 self._logger.info(message)
@@ -453,10 +455,16 @@
453 (line.prodlot_id and line.prodlot_id.id == data.get('prodlot_id')) or (not line.prodlot_id and not data.get('prodlot_id')) and \455 (line.prodlot_id and line.prodlot_id.id == data.get('prodlot_id')) or (not line.prodlot_id and not data.get('prodlot_id')) and \
454 (line.asset_id and line.asset_id.id == data.get('asset_id')) or (not line.asset_id and not data.get('asset_id')):456 (line.asset_id and line.asset_id.id == data.get('asset_id')) or (not line.asset_id and not data.get('asset_id')):
455 move_proc.write(cr, uid, [line.id], data, context=context)457 move_proc.write(cr, uid, [line.id], data, context=context)
458 if data.get('comment'):
459 move_proc.write(cr, uid, line.id, {
460 'comment': data['comment']
461 }, context=context)
456 break462 break
457 else:463 else:
458 data['ordered_quantity'] = data['quantity']464 data['ordered_quantity'] = data['quantity']
459 move_proc.create(cr, uid, data, context=context)465 move_proc_id = move_proc.create(cr, uid, data, context=context)
466 if data.get('comment'):
467 move_proc.write(cr, uid, move_proc_id, {'comment': data['comment']}, context=context)
460 #US-1294: Add this move and quantity as already shipped, since it's added to the wizard for processing468 #US-1294: Add this move and quantity as already shipped, since it's added to the wizard for processing
461 self._add_to_shipped_moves(already_shipped_moves, move_id, data['quantity'])469 self._add_to_shipped_moves(already_shipped_moves, move_id, data['quantity'])
462470
463471
=== modified file 'bin/addons/sync_so/purchase.py'
--- bin/addons/sync_so/purchase.py 2016-10-24 15:41:52 +0000
+++ bin/addons/sync_so/purchase.py 2016-11-09 08:29:21 +0000
@@ -74,6 +74,7 @@
74 'date': line_dict.get('confirmed_delivery_date', time.strftime('%Y-%m-%d %H:%M:%S')),74 'date': line_dict.get('confirmed_delivery_date', time.strftime('%Y-%m-%d %H:%M:%S')),
75 'change_reason': False,75 'change_reason': False,
76 'product_id': line_dict.get('product_id'),76 'product_id': line_dict.get('product_id'),
77 'comment': line_dict.get('comment'),
77 }],78 }],
78 }79 }
7980
8081
=== modified file 'bin/addons/tender_flow/tender_flow.py'
--- bin/addons/tender_flow/tender_flow.py 2016-08-18 08:32:03 +0000
+++ bin/addons/tender_flow/tender_flow.py 2016-11-09 08:29:21 +0000
@@ -375,6 +375,7 @@
375 'notes': line.product_id.description_purchase,375 'notes': line.product_id.description_purchase,
376 'order_id': po_id,376 'order_id': po_id,
377 'tender_line_id': line.id,377 'tender_line_id': line.id,
378 'comment': line.comment,
378 }379 }
379 # create purchase order line380 # create purchase order line
380 pol_id = pol_obj.create(cr, uid, values, context=context)381 pol_id = pol_obj.create(cr, uid, values, context=context)
@@ -651,6 +652,7 @@
651 'date_planned': line.date_planned,652 'date_planned': line.date_planned,
652 'move_dest_id': False,653 'move_dest_id': False,
653 'notes': line.product_id.description_purchase,654 'notes': line.product_id.description_purchase,
655 'comment': line.comment,
654 }))656 }))
655 657
656 # fill data corresponding to po creation658 # fill data corresponding to po creation

Subscribers

People subscribed via source and target branches

to all changes: