Raimon Esteve (Zikzakmedia) avatar Raimon Esteve (Zikzakmedia) committed e91b13b

Remove discount field and move to group stock_price

Comments (0)

Files changed (2)

     'xml': [
+        'move.xml',
     'translation': [
+<?xml version="1.0"?>
+<!-- This file is part stock_valued module for Tryton.
+The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
+    <data>
+        <record model="ir.ui.view" id="move_view_form">
+            <field name="model">stock.move</field>
+            <field name="inherit" ref="stock.move_view_form"/>
+            <field name="arch" type="xml">
+                <![CDATA[
+                <data>
+                    <xpath expr="/form/field[@name='discount']"
+                            position="replace">
+                    </xpath>
+                    <xpath expr="/form/label[@name='discount']"
+                            position="replace">
+                    </xpath>
+                    <xpath
+                        expr="/form/group[@id=&quot;stock_price&quot;]/field[@name=&quot;unit_price&quot;]"
+                        position="after">
+                            <label name="discount"/>
+                            <field name="discount"/>
+                    </xpath>
+                </data>
+                ]]>
+            </field>
+        </record>
+    </data>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.