Skip to content

Commit

Permalink
[Karthi] | BAH-3610 | Refactor. Sale order and Invoice screen tree vi…
Browse files Browse the repository at this point in the history
…ew custom fields added (#55)
  • Loading branch information
karthikeyansp91 authored Feb 20, 2024
1 parent e1e806d commit da7a757
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
12 changes: 12 additions & 0 deletions bahmni_account/views/account_invoice_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@
</field>
</record>


<record id="inherit_view_invoice_tree_bahmni" model="ir.ui.view">
<field name="name">Invoice View Changes</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_invoice_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="partner_id"/>
</xpath>
</field>
</record>


<record id="account.action_move_out_invoice_type" model="ir.actions.act_window">
<field name="name">Customer Invoices</field>
Expand Down
22 changes: 21 additions & 1 deletion bahmni_sale/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,27 @@ as discount fields are readonly in case of chargable amount is editable-->
<xpath expr="//field[@name='amount_total']" position="after">
<field name="total_outstanding_balance"/>
<field name="provider_name"/>
<field name="care_setting"/>
<field name="disc_acc_id"/>
<field name="care_setting"/>
</xpath>
</field>
</record>


<record id="inherit_view_order_tree_bahmni" model="ir.ui.view">
<field name="name">Sale Order View Changes</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="shop_id"/>
<field name="partner_village"/>
</xpath>
<xpath expr="//field[@name='amount_total']" position="after">
<field name="total_outstanding_balance"/>
<field name="provider_name"/>
<field name="disc_acc_id"/>
<field name="care_setting"/>
</xpath>
</field>
</record>
Expand Down

0 comments on commit da7a757

Please sign in to comment.