mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
@@ -55,6 +55,7 @@ class TestProductRouteProfile(SavepointCase):
|
|||||||
self.product.with_company(
|
self.product.with_company(
|
||||||
self.env.company
|
self.env.company
|
||||||
).force_route_profile_id = self.route_profile_2.id
|
).force_route_profile_id = self.route_profile_2.id
|
||||||
|
self.assertEqual(self.product.route_profile_id, self.route_profile_1)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.product.with_company(self.env.company).route_ids,
|
self.product.with_company(self.env.company).route_ids,
|
||||||
self.route_profile_2.route_ids,
|
self.route_profile_2.route_ids,
|
||||||
|
|||||||
@@ -11,6 +11,12 @@
|
|||||||
<xpath expr="//field[@name='route_ids']/parent::div" position="attributes">
|
<xpath expr="//field[@name='route_ids']/parent::div" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': True}</attribute>
|
<attribute name="attrs">{'invisible': True}</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
<xpath expr="//field[@name='route_ids']" position="attributes">
|
||||||
|
<attribute name="readonly">1</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//label[@for='route_ids']" position="attributes">
|
||||||
|
<attribute name="invisible">1</attribute>
|
||||||
|
</xpath>
|
||||||
<xpath expr="//group[@name='operations']" position="inside">
|
<xpath expr="//group[@name='operations']" position="inside">
|
||||||
<field
|
<field
|
||||||
name="route_profile_id"
|
name="route_profile_id"
|
||||||
|
|||||||
Reference in New Issue
Block a user