Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
410c2a7a by Maxime Richez at 2023-07-07T16:20:56+02:00
Always compute product quantities for sales with children

with_childs is set to True by default only when one location is in the context.
But for the product list in sales, we want to have the quantities with children
also if more than one warehouse is selected.

Closes #12377
- - - - -


1 changed file:

- modules/sale/product.xml


Changes:

=====================================
modules/sale/product.xml
=====================================
@@ -26,7 +26,10 @@
             <field name="res_model">product.product</field>
             <field name="domain" eval="[('salable', '=', True)]" pyson="1"/>
             <field name="context_model">product.sale.context</field>
-            <field name="context" eval="{'stock_skip_warehouse': True}" 
pyson="1"/>
+            <field
+                name="context"
+                eval="{'stock_skip_warehouse': True, 'with_childs': True}"
+                pyson="1"/>
         </record>
         <record model="ir.action.act_window.view" id="act_product_view1">
             <field name="sequence" eval="10"/>



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/410c2a7a2bf4152fcf9b9453cffaaf6b75f919cb

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/410c2a7a2bf4152fcf9b9453cffaaf6b75f919cb
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to