Amit Parik (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1028540-amp into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1028540 in OpenERP Addons: "6.1 POS Backend Order with no customer 
doesn't require LOTNO."
  https://bugs.launchpad.net/openobject-addons/+bug/1028540

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1028540-amp/+merge/116592

Hello,

POS order doesn't check tracking when customer is not defined even the outgoing 
production lot true because it will create a picking for stock move stock to 
output. So I will add one more condition which will check check_tracking for 
pos order with no customer.

Thank you!
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1028540-amp/+merge/116592
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1028540-amp.
=== modified file 'stock/stock.py'
--- stock/stock.py	2012-06-22 06:48:54 +0000
+++ stock/stock.py	2012-07-25 07:33:21 +0000
@@ -1590,7 +1590,8 @@
                    (move.product_id.track_production and move.location_id.usage == 'production') or \
                    (move.product_id.track_production and move.location_dest_id.usage == 'production') or \
                    (move.product_id.track_incoming and move.location_id.usage == 'supplier') or \
-                   (move.product_id.track_outgoing and move.location_dest_id.usage == 'customer') \
+                   (move.product_id.track_outgoing and move.location_dest_id.usage == 'customer') or \
+                   (move.product_id.track_outgoing and move.location_dest_id.usage == 'internal' and move.picking_id.type == 'out') \
                )):
                 return False
         return True

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to