File tree Expand file tree Collapse file tree 5 files changed +16
-5
lines changed
Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ Contributors
6262 - Sergio Teruel
6363 - Carlos Roca
6464
65+ - `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io >`__
66+
67+ - Bhavesh Heliconia
68+
6569Maintainers
6670-----------
6771
Original file line number Diff line number Diff line change 33{
44 "name" : "Sale margin sync" ,
55 "summary" : "Recompute sale margin when stock move cost price is changed" ,
6- "version" : "16 .0.1.0.1 " ,
6+ "version" : "17 .0.1.0.0 " ,
77 "category" : "Sales" ,
88 "website" : "https://github.com/OCA/margin-analysis" ,
99 "author" : "Tecnativa, Odoo Community Association (OCA)" ,
Original file line number Diff line number Diff line change 33 > - Carlos Dauden
44 > - Sergio Teruel
55 > - Carlos Roca
6+ - [ Heliconia Solutions Pvt. Ltd.] ( https://www.heliconia.io )
7+ - Bhavesh Heliconia
Original file line number Diff line number Diff line change @@ -411,6 +411,11 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
411411</ ul >
412412</ blockquote >
413413</ li >
414+ < li > < p class ="first "> < a class ="reference external " href ="https://www.heliconia.io "> Heliconia Solutions Pvt. Ltd.</ a > </ p >
415+ < ul class ="simple ">
416+ < li > Bhavesh Heliconia</ li >
417+ </ ul >
418+ </ li >
414419</ ul >
415420</ div >
416421< div class ="section " id ="maintainers ">
Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ def test_sale_margin_sync(self):
5959 self .order .action_confirm ()
6060 so_line1 = self .order .order_line [:1 ]
6161 move1 = so_line1 .move_ids [:1 ]
62- move1 .quantity_done = 10
62+ move1 .quantity = 10
6363 so_line2 = self .order .order_line [1 :2 ]
6464 move2 = so_line2 .move_ids [:1 ]
65- move2 .quantity_done = 2
65+ move2 .quantity = 2
6666 self .order .picking_ids [:1 ]._action_done ()
6767 move1 .stock_valuation_layer_ids [:1 ].unit_cost = 80.0
6868 move2 .stock_valuation_layer_ids [:1 ].unit_cost = 80.0
@@ -75,11 +75,11 @@ def test_sale_margin_sync_unvalidated_move(self):
7575 self .order .action_confirm ()
7676 so_line1 = self .order .order_line [:1 ]
7777 move1 = so_line1 .move_ids [:1 ]
78- move1 .quantity_done = 10
78+ move1 .quantity = 10
7979 move1 .stock_valuation_layer_ids [:1 ].unit_cost = 80.0
8080 so_line2 = self .order .order_line [1 :2 ]
8181 move2 = so_line2 .move_ids [:1 ]
82- move2 .quantity_done = 2
82+ move2 .quantity = 2
8383 move2 .stock_valuation_layer_ids [:1 ].unit_cost = 80.0
8484 self .assertEqual (so_line1 .purchase_price , 70.0 )
8585 self .assertEqual (so_line1 .margin , 300.0 )
You can’t perform that action at this time.
0 commit comments