Merge lp:~camptocamp/product-kitting/7.0-fix_1293524-afe into lp:product-kitting

Proposed by Alexandre Fayolle - camptocamp
Status: Merged
Merged at revision: 9
Proposed branch: lp:~camptocamp/product-kitting/7.0-fix_1293524-afe
Merge into: lp:product-kitting
Diff against target: 34 lines (+4/-5)
2 files modified
sale_bom_split/__init__.py (+1/-1)
sale_bom_split/sale.py (+3/-4)
To merge this branch: bzr merge lp:~camptocamp/product-kitting/7.0-fix_1293524-afe
Reviewer Review Type Date Requested Status
Guewen Baconnier @ Camptocamp Approve
Pedro Manuel Baeza code review Approve
Yannick Vaucher @ Camptocamp code review, no tests Approve
Review via email: mp+211311@code.launchpad.net

Description of the change

[FIX] sale_bom_split: don't ignore picking_id in _create_pickings_and_procurements

To post a comment you must log in.
8. By Alexandre Fayolle - camptocamp

[FIX] sale_bom_split: import statements

9. By Alexandre Fayolle - camptocamp

[IMP] sale_bom_split: updated __openerp__.py to 7.0 standards

Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

I also updated the module to 7.0 standards

Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

LGTM

Thanks

review: Approve (code review, no tests)
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

LGTM.

I prefer do "from openerp.osv import orm" and then "class xxx(orm.Model)" to be more recognisable and avoid name collisions (very strange), but it's also good this way.

Regards.

review: Approve (code review)
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) :
review: Approve
10. By Guewen Baconnier @ Camptocamp

merge from master

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sale_bom_split/__init__.py'
2--- sale_bom_split/__init__.py 2012-07-24 12:27:35 +0000
3+++ sale_bom_split/__init__.py 2014-03-21 14:15:23 +0000
4@@ -19,5 +19,5 @@
5 #
6 ##############################################################################
7
8-import sale
9+from . import sale
10
11
12=== modified file 'sale_bom_split/sale.py'
13--- sale_bom_split/sale.py 2014-03-17 16:24:00 +0000
14+++ sale_bom_split/sale.py 2014-03-21 14:15:23 +0000
15@@ -19,8 +19,8 @@
16 #
17 ##############################################################################
18
19-import netsvc
20-from osv.orm import Model
21+from openerp import netsvc
22+from openerp.osv.orm import Model
23
24
25 class sale_order(Model):
26@@ -104,8 +104,7 @@
27 # if we have at least one line which have to be split
28 # we prepare the picking so we'll be able to bind it
29 # to the move lines
30- picking_id = False
31- if bom_order_lines:
32+ if bom_order_lines and not picking_id:
33 picking_id = picking_obj.create(
34 cr, uid, self._prepare_order_picking(cr, uid, order, context=context))
35

Subscribers

People subscribed via source and target branches