Merge lp:~unifield-team/unifield-server/us-402-1056-842-1159 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 3882
Proposed branch: lp:~unifield-team/unifield-server/us-402-1056-842-1159
Merge into: lp:unifield-server
Diff against target: 187 lines (+34/-17)
9 files modified
bin/addons/procurement_request/procurement_request_view.xml (+7/-0)
bin/addons/purchase_override/purchase_view.xml (+1/-1)
bin/addons/specific_rules/stock.py (+1/-1)
bin/addons/specific_rules/stock_view.xml (+4/-4)
bin/addons/stock/stock.py (+1/-1)
bin/addons/stock_forecast/wizard/stock_forecast.py (+15/-5)
bin/addons/stock_override/stock_view.xml (+2/-2)
bin/addons/tender_flow/report/purchase_report_view.xml (+2/-2)
bin/addons/tender_flow/tender_flow_view.xml (+1/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-402-1056-842-1159
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+300707@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/procurement_request/procurement_request_view.xml'
--- bin/addons/procurement_request/procurement_request_view.xml 2016-05-31 08:51:54 +0000
+++ bin/addons/procurement_request/procurement_request_view.xml 2016-07-21 08:20:41 +0000
@@ -38,6 +38,13 @@
38 <field name="priority" eval="250" />38 <field name="priority" eval="250" />
39 <field name="arch" type="xml">39 <field name="arch" type="xml">
40 <form string="Internal Request">40 <form string="Internal Request">
41 <group colspan="6" attrs="{'invisible': [('state', '!=', 'validated')]}">
42 <html>
43 <p style="text-align:center; color: red; font-weight: bold; font-size: 1.2em;">
44 WARNING: This document has already been validated, are you sure you wish to modify after validation?
45 </p>
46 </html>
47 </group>
41 <group col="6" colspan="4" name="header">48 <group col="6" colspan="4" name="header">
42 <field name="name" />49 <field name="name" />
43 <field name="date_order" attrs="{'readonly': [('state', 'not in', ['draft', 'validated'])]}" />50 <field name="date_order" attrs="{'readonly': [('state', 'not in', ['draft', 'validated'])]}" />
4451
=== modified file 'bin/addons/purchase_override/purchase_view.xml'
--- bin/addons/purchase_override/purchase_view.xml 2016-04-18 13:09:03 +0000
+++ bin/addons/purchase_override/purchase_view.xml 2016-07-21 08:20:41 +0000
@@ -186,7 +186,7 @@
186 <field name="dest_partner_names" />186 <field name="dest_partner_names" />
187 <field name="shipped_rate" widget="progressbar" />187 <field name="shipped_rate" widget="progressbar" />
188 <field name="invoiced_rate" widget="progressbar" />188 <field name="invoiced_rate" widget="progressbar" />
189 <field name="amount_total" sum="Total amount" />189 <field name="amount_total" />
190 <field name="pricelist_id" string="Currency" />190 <field name="pricelist_id" string="Currency" />
191 <field name="state" />191 <field name="state" />
192 </tree>192 </tree>
193193
=== modified file 'bin/addons/specific_rules/stock.py'
--- bin/addons/specific_rules/stock.py 2016-04-25 10:27:20 +0000
+++ bin/addons/specific_rules/stock.py 2016-07-21 08:20:41 +0000
@@ -518,7 +518,7 @@
518 'date': fields.date(string='Creation date', required=True, readonly=True, states={'draft': [('readonly', False)]}),518 'date': fields.date(string='Creation date', required=True, readonly=True, states={'draft': [('readonly', False)]}),
519 'reevaluation_line_ids': fields.one2many('stock.cost.reevaluation.line', 'reevaluation_id', string='Lines',519 'reevaluation_line_ids': fields.one2many('stock.cost.reevaluation.line', 'reevaluation_id', string='Lines',
520 readonly=True, states={'draft': [('readonly', False)]}),520 readonly=True, states={'draft': [('readonly', False)]}),
521 'state': fields.selection([('draft', 'Draft'), ('confirm', 'Confirmed'), ('done', 'Done'), ('cancel', 'Cancel')],521 'state': fields.selection([('draft', 'Draft'), ('confirm', 'Validated'), ('done', 'Done'), ('cancel', 'Cancel')],
522 string='State', readonly=True, required=True),522 string='State', readonly=True, required=True),
523 'sublist_id': fields.many2one('product.list', string='List/Sublist', ondelete='set null'),523 'sublist_id': fields.many2one('product.list', string='List/Sublist', ondelete='set null'),
524 'nomen_manda_0': fields.many2one('product.nomenclature', 'Main Type', ondelete='set null'),524 'nomen_manda_0': fields.many2one('product.nomenclature', 'Main Type', ondelete='set null'),
525525
=== modified file 'bin/addons/specific_rules/stock_view.xml'
--- bin/addons/specific_rules/stock_view.xml 2016-02-05 09:13:42 +0000
+++ bin/addons/specific_rules/stock_view.xml 2016-07-21 08:20:41 +0000
@@ -70,8 +70,8 @@
70 <group colspan="4" col="6">70 <group colspan="4" col="6">
71 <field name="state" />71 <field name="state" />
72 <button name="action_cancel_inventary" states="draft,confirm" string="Cancel Inventory" type="object" icon="gtk-cancel" />72 <button name="action_cancel_inventary" states="draft,confirm" string="Cancel Inventory" type="object" icon="gtk-cancel" />
73 <button name="action_confirm" states="draft" string="Confirm Inventory" type="object" icon="gtk-apply" />73 <button name="action_confirm" states="draft" string="Validate Inventory" type="object" icon="gtk-apply" />
74 <button name="action_done" states="confirm" string="Validate Inventory" type="object" icon="gtk-jump-to" />74 <button name="action_done" states="confirm" string="Confirm Inventory" type="object" icon="gtk-jump-to" />
75 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert" />75 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert" />
76 </group>76 </group>
77 </form>77 </form>
@@ -169,8 +169,8 @@
169 <group colspan="4" col="6">169 <group colspan="4" col="6">
170 <field name="state" />170 <field name="state" />
171 <button name="action_cancel" type="object" string="Cancel" icon="gtk-cancel" states="draft,confirm" />171 <button name="action_cancel" type="object" string="Cancel" icon="gtk-cancel" states="draft,confirm" />
172 <button name="action_confirm" type="object" string="Confirm" icon="gtk-apply" states="draft" />172 <button name="action_confirm" type="object" string="Validate" icon="gtk-apply" states="draft" />
173 <button name="action_done" type="object" string="Validate" icon="gtk-jump-to" states="confirm" />173 <button name="action_done" type="object" string="Confirm" icon="gtk-jump-to" states="confirm" />
174 <button name="action_cancel_draft" type="object" string="Set to Draft" icon="gtk-convert" states="cancel" />174 <button name="action_cancel_draft" type="object" string="Set to Draft" icon="gtk-convert" states="cancel" />
175 </group>175 </group>
176 </form>176 </form>
177177
=== modified file 'bin/addons/stock/stock.py'
--- bin/addons/stock/stock.py 2016-05-24 08:44:23 +0000
+++ bin/addons/stock/stock.py 2016-07-21 08:20:41 +0000
@@ -2789,7 +2789,7 @@
2789 'date_done': fields.datetime('Date done'),2789 'date_done': fields.datetime('Date done'),
2790 'inventory_line_id': fields.one2many('stock.inventory.line', 'inventory_id', 'Inventories', states={'done': [('readonly', True)]}),2790 'inventory_line_id': fields.one2many('stock.inventory.line', 'inventory_id', 'Inventories', states={'done': [('readonly', True)]}),
2791 'move_ids': fields.many2many('stock.move', 'stock_inventory_move_rel', 'inventory_id', 'move_id', 'Created Moves'),2791 'move_ids': fields.many2many('stock.move', 'stock_inventory_move_rel', 'inventory_id', 'move_id', 'Created Moves'),
2792 'state': fields.selection( (('draft', 'Draft'), ('done', 'Done'), ('confirm','Confirmed'),('cancel','Cancelled')), 'State', readonly=True, select=True),2792 'state': fields.selection( (('draft', 'Draft'), ('done', 'Done'), ('confirm','Validated'),('cancel','Cancelled')), 'State', readonly=True, select=True),
2793 'company_id': fields.many2one('res.company', 'Company', required=True, select=True, readonly=True, states={'draft':[('readonly',False)]}),2793 'company_id': fields.many2one('res.company', 'Company', required=True, select=True, readonly=True, states={'draft':[('readonly',False)]}),
27942794
2795 }2795 }
27962796
=== modified file 'bin/addons/stock_forecast/wizard/stock_forecast.py'
--- bin/addons/stock_forecast/wizard/stock_forecast.py 2016-03-08 15:48:47 +0000
+++ bin/addons/stock_forecast/wizard/stock_forecast.py 2016-07-21 08:20:41 +0000
@@ -88,7 +88,7 @@
88 'first': lambda *a: 'z',88 'first': lambda *a: 'z',
89 }89 }
9090
91 _order = 'date asc, first asc'91 _order = 'date asc, first asc, id asc'
9292
93stock_forecast_line()93stock_forecast_line()
9494
@@ -376,7 +376,8 @@
376 move_obj = self.pool.get('stock.move')376 move_obj = self.pool.get('stock.move')
377 product_obj = self.pool.get('product.product')377 product_obj = self.pool.get('product.product')
378 uom_obj = self.pool.get('product.uom')378 uom_obj = self.pool.get('product.uom')
379379 data_obj = self.pool.get('ir.model.data')
380
380 # clear existing lines381 # clear existing lines
381 line_ids = line_obj.search(cr, uid, [('wizard_id', 'in', ids)], context=context)382 line_ids = line_obj.search(cr, uid, [('wizard_id', 'in', ids)], context=context)
382 line_obj.unlink(cr, uid, line_ids, context=context)383 line_obj.unlink(cr, uid, line_ids, context=context)
@@ -408,10 +409,19 @@
408 # qty of all products409 # qty of all products
409 c = context.copy()410 c = context.copy()
410 # if you remove the coma after done, it will no longer work properly411 # if you remove the coma after done, it will no longer work properly
412 cross_docking_id = data_obj.get_object_reference(cr, uid, 'msf_cross_docking', 'stock_location_cross_docking')[1]
413 location_ids = [cross_docking_id]
414 if wizard.warehouse_id:
415 location_ids.append(wizard.warehouse_id.lot_stock_id.id)
416 else:
417 wids = self.pool.get('stock.warehouse').search(cr, uid, [], context=context)
418 for w in self.pool.get('stock.warehouse').browse(cr, uid, wids, context=context):
419 location_ids.append(w.lot_stock_id.id)
420
411 c.update({'states': ('done',),421 c.update({'states': ('done',),
412 'what': ('in', 'out'),422 'what': ('in', 'out'),
413 'to_date': time.strftime('%Y-%m-%d %H:%M:%S'),423 'to_date': time.strftime('%Y-%m-%d %H:%M:%S'),
414 'warehouse': warehouse_id,424 'location': location_ids,
415 'uom': product_uom_id})425 'uom': product_uom_id})
416 qty = product_obj.get_product_available(cr, uid, product_list, context=c)426 qty = product_obj.get_product_available(cr, uid, product_list, context=c)
417 overall_qty = sum(qty.values())427 overall_qty = sum(qty.values())
@@ -425,7 +435,7 @@
425 # SALE ORDERS - negative435 # SALE ORDERS - negative
426 # list all sale order lines corresponding to selected product436 # list all sale order lines corresponding to selected product
427 #so_list = so_obj.search(cr, uid, [()], context=context)437 #so_list = so_obj.search(cr, uid, [()], context=context)
428 sol_list = sol_obj.search(cr, uid, [('state', 'in', ('procurement', 'progress', 'draft')),438 sol_list = sol_obj.search(cr, uid, [('state', 'in', ('procurement', 'progress', 'draft', 'sourced')),
429 ('product_id', '=', product.id)], order='date_planned', context=context)439 ('product_id', '=', product.id)], order='date_planned', context=context)
430440
431 for sol in sol_obj.browse(cr, uid, sol_list, context=context):441 for sol in sol_obj.browse(cr, uid, sol_list, context=context):
@@ -440,7 +450,7 @@
440 'stock_situation': False,450 'stock_situation': False,
441 'wizard_id': wizard.id,}451 'wizard_id': wizard.id,}
442 if sol.procurement_request:452 if sol.procurement_request:
443 values.update(doc='ISR')453 values.update(doc='IR')
444454
445 line_to_create.append(values)455 line_to_create.append(values)
446456
447457
=== modified file 'bin/addons/stock_override/stock_view.xml'
--- bin/addons/stock_override/stock_view.xml 2016-05-24 08:44:23 +0000
+++ bin/addons/stock_override/stock_view.xml 2016-07-21 08:20:41 +0000
@@ -1154,8 +1154,8 @@
1154 </group>1154 </group>
1155 <group col="3" colspan="2">1155 <group col="3" colspan="2">
1156 <button name="action_cancel_inventary" states="draft,confirm,done" string="Cancel Inventory" type="object" icon="gtk-cancel"/>1156 <button name="action_cancel_inventary" states="draft,confirm,done" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
1157 <button name="action_confirm" states="draft" string="Confirm Inventory" type="object" icon="gtk-apply"/>1157 <button name="action_confirm" states="draft" string="Validate Inventory" type="object" icon="gtk-apply"/>
1158 <button name="action_done" states="confirm" string="Validate Inventory" type="object" icon="gtk-jump-to"/>1158 <button name="action_done" states="confirm" string="Confirm Inventory" type="object" icon="gtk-jump-to"/>
1159 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>1159 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
1160 </group>1160 </group>
1161 </form>1161 </form>
11621162
=== modified file 'bin/addons/tender_flow/report/purchase_report_view.xml'
--- bin/addons/tender_flow/report/purchase_report_view.xml 2013-09-03 08:10:46 +0000
+++ bin/addons/tender_flow/report/purchase_report_view.xml 2016-07-21 08:20:41 +0000
@@ -26,8 +26,8 @@
26 <field name="nbr" sum="# of Lines"/>26 <field name="nbr" sum="# of Lines"/>
27 <field name="quantity" />27 <field name="quantity" />
28 <field name="product_uom" />28 <field name="product_uom" />
29 <field name="price_average" sum="Average Price" invisible="1" />29 <field name="price_average" invisible="1" />
30 <field name="price_total" sum="Subtotal" string="Subtotal"/>30 <field name="price_total" string="Subtotal"/>
31 <field name="currency_id" />31 <field name="currency_id" />
32 <!-- <field name="price_standard" sum="Products Value" invisible="0"/>32 <!-- <field name="price_standard" sum="Products Value" invisible="0"/>
33 <field name="negociation" widget="progressbar"/> -->33 <field name="negociation" widget="progressbar"/> -->
3434
=== modified file 'bin/addons/tender_flow/tender_flow_view.xml'
--- bin/addons/tender_flow/tender_flow_view.xml 2016-03-04 10:44:48 +0000
+++ bin/addons/tender_flow/tender_flow_view.xml 2016-07-21 08:20:41 +0000
@@ -400,7 +400,7 @@
400 <field name="partner_id" />400 <field name="partner_id" />
401 <field name="delivery_requested_date" />401 <field name="delivery_requested_date" />
402 <field name="origin" />402 <field name="origin" />
403 <field name="amount_total" sum="Total amount" />403 <field name="amount_total" />
404 <field name="state" />404 <field name="state" />
405 </tree>405 </tree>
406 </field>406 </field>

Subscribers

People subscribed via source and target branches

to all changes: