Skip to content

Commit

Permalink
move employee_id
Browse files Browse the repository at this point in the history
  • Loading branch information
kanda999 committed Aug 29, 2023
1 parent 0c114e0 commit 085d937
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 0 additions & 9 deletions purchase_ext_sst/views/purchase_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
class="oe_read_only"
/>
</xpath>
<xpath expr="//sheet/group" position="inside">
<group>
<field name="employee_id" />
</group>
</xpath>
<xpath expr="//notebook" position="before">
<group>
<field name="remark" />
Expand Down Expand Up @@ -70,9 +65,6 @@
<field name="remark" />
<field name="sale_prediction_amount" />
</xpath>
<xpath expr="//field[@name='date_planned']" position="after">
<field name="employee_id" />
</xpath>
<xpath expr="//field[@name='amount_untaxed']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
Expand All @@ -90,7 +82,6 @@
<field name="inherit_id" ref="purchase.view_purchase_order_filter" />
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="employee_id" />
<field name="remark" />
</xpath>
<xpath expr="//filter[@name='to_approve']" position="after">
Expand Down
12 changes: 12 additions & 0 deletions purchase_shop/views/purchase_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
<field name="name">purchase.order.form.inherit</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="priority" eval="21" />
<field name="arch" type="xml">
<field name="partner_ref" position="after">
<field name="shop_id"/>
</field>
<xpath expr="//field[@name='incoterm_id']" position="after">
<field name="purchased_by_id" />
</xpath>
<xpath expr="//sheet/group" position="inside">
<group>
<field name="employee_id" />
</group>
</xpath>
</field>
</record>
<record id="purchase_order_tree" model="ir.ui.view">
Expand All @@ -21,6 +27,9 @@
<xpath expr="//field[@name='name']" position="after">
<field name="shop_id" />
</xpath>
<xpath expr="//field[@name='date_planned']" position="after">
<field name="employee_id" />
</xpath>
</field>
</record>
<record id="view_purchase_order_filter" model="ir.ui.view">
Expand All @@ -31,6 +40,9 @@
<xpath expr="//field[@name='product_id']" position="before">
<field name="shop_id" />
</xpath>
<xpath expr="//field[@name='product_id']" position="after">
<field name="employee_id" />
</xpath>
</field>
</record>
</odoo>

0 comments on commit 085d937

Please sign in to comment.