Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

I need to move  Weight (weight) and Cost (standard_price). I did not encounter an error when setting it as "invisible" or replacing it's position (position="replace), and calling it again to a different view. However, what i am encountering is that the field is still visible to its original state.


For example:

Weight field in Product can be found in Inventory tab.

What i did is:




<field name="weight" position="attributes">               
<attribute name="invisible">1</attribute>          
</field>


And then called it again, moved it to general tab:




<group name="group_general" position="inside">

     <field name="weight" />
</group>


Upon refreshing the view. "Weight" is still showing in the Inventory tab, as well as the General tab. This also apples to "Cost" (standard_price)


Awatar
Odrzuć
Najlepsza odpowiedź

Hi,


Try Using Xpath and giving the attribute.


<xpath expr="//field[@name='weight']" position="attributes">
       <attribute name="invisible">1</attribute>
</xpath>


And the same for standard_price as well.

Hope it helps

Awatar
Odrzuć
Najlepsza odpowiedź

Hello Dear

Here is the code to move weight from Inventory tab to General Information tab.


I have attached the file here:

https://drive.google.com/file/d/1bmqu6_Ho0DEIAo6XWarIxwnmK3O2N06H/view?usp=sharing


You can follow the same for the cost also.

Thank you

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
mar 15
11112
0
mar 24
1455
2
wrz 23
2406
1
gru 23
4506
1
sty 23
5224