changeset ad12cb48ded3 in modules/purchase_secondary_unit:default
details:
https://hg.tryton.org/modules/purchase_secondary_unit?cmd=changeset;node=ad12cb48ded3
description:
Update xpath of stock move and load stock XML
PurchaseSecondaryUnitTestCase did not test with extra dependencies and
neither
load the XML for stock.
issue9715
review306711002
diffstat:
tests/test_purchase_secondary_unit.py | 1 +
tryton.cfg | 1 +
view/stock_move_list.xml | 2 +-
3 files changed, 3 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r 7782d8428f26 -r ad12cb48ded3 tests/test_purchase_secondary_unit.py
--- a/tests/test_purchase_secondary_unit.py Tue Oct 13 18:24:44 2020 +0200
+++ b/tests/test_purchase_secondary_unit.py Wed Oct 14 14:42:00 2020 +0200
@@ -14,6 +14,7 @@
class PurchaseSecondaryUnitTestCase(ModuleTestCase):
'Test Purchase Secondary Unit module'
module = 'purchase_secondary_unit'
+ extras = ['account_invoice_secondary_unit', 'stock_secondary_unit']
def suite():
diff -r 7782d8428f26 -r ad12cb48ded3 tryton.cfg
--- a/tryton.cfg Tue Oct 13 18:24:44 2020 +0200
+++ b/tryton.cfg Wed Oct 14 14:42:00 2020 +0200
@@ -13,4 +13,5 @@
xml:
product.xml
purchase.xml
+ stock.xml
message.xml
diff -r 7782d8428f26 -r ad12cb48ded3 view/stock_move_list.xml
--- a/view/stock_move_list.xml Tue Oct 13 18:24:44 2020 +0200
+++ b/view/stock_move_list.xml Wed Oct 14 14:42:00 2020 +0200
@@ -2,7 +2,7 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
- <xpath expr="//field[@name='uom']" position="after">
+ <xpath expr="//field[@name='quantity']" position="after">
<field name="secondary_quantity" symbol="secondary_unit"/>
</xpath>
</data>