Skip to content

Commit

Permalink
[UPD] ssi_rma_account
Browse files Browse the repository at this point in the history
* Journal Items editable for Administration/Setting
  • Loading branch information
andhit-r committed Feb 3, 2024
1 parent 3feb987 commit 05f6caa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
17 changes: 16 additions & 1 deletion ssi_rma_account/views/rma_customer_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
position="after"
>
<page name="aml" string="Journal Items">
<field name="account_move_line_ids" />
<field name="account_move_line_ids" readonly="1" />
</page>
</xpath>
<xpath
Expand Down Expand Up @@ -100,4 +100,19 @@
</data>
</field>
</record>

<record id="rma_customer_view_form1" model="ir.ui.view">
<field name="name">RMA Customers - Form - Editable Journal Items</field>
<field name="model">rma_customer</field>
<field name="inherit_id" ref="ssi_rma_account.rma_customer_view_form" />
<field name="groups_id" eval="[(4, ref('base.group_system'))]" />
<field name="arch" type="xml">
<xpath
expr="//page[@name='aml']/field[@name='account_move_line_ids']"
position="attributes"
>
<attribute name="readonly">0</attribute>
</xpath>
</field>
</record>
</odoo>
15 changes: 15 additions & 0 deletions ssi_rma_account/views/rma_supplier_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,19 @@
</data>
</field>
</record>

<record id="rma_supplier_view_form1" model="ir.ui.view">
<field name="name">RMA Supplier - Form - Editable Journal Items</field>
<field name="model">rma_supplier</field>
<field name="inherit_id" ref="ssi_rma_account.rma_supplier_view_form" />
<field name="groups_id" eval="[(4, ref('base.group_system'))]" />
<field name="arch" type="xml">
<xpath
expr="//page[@name='aml']/field[@name='account_move_line_ids']"
position="attributes"
>
<attribute name="readonly">0</attribute>
</xpath>
</field>
</record>
</odoo>

0 comments on commit 05f6caa

Please sign in to comment.