[IMP] account: usability improvements
closes odoo/odoo#58826 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
@@ -446,6 +446,22 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_in_invoice_tree" model="ir.ui.view">
|
||||
<field name="name">account.out.invoice.tree</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_invoice_tree"/>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='ref']" position="attributes">
|
||||
<attribute name="optional">show</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='payment_state']" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_move_kanban" model="ir.ui.view">
|
||||
<field name="name">account.move.kanban</field>
|
||||
<field name="model">account.move</field>
|
||||
@@ -1342,7 +1358,7 @@
|
||||
<field name="name">Bills</field>
|
||||
<field name="res_model">account.move</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="view_id" ref="view_invoice_tree"/>
|
||||
<field name="view_id" ref="view_in_invoice_tree"/>
|
||||
<field name="search_view_id" ref="view_account_invoice_filter"/>
|
||||
<field name="domain">[('move_type', '=', 'in_invoice')]</field>
|
||||
<field name="context">{'default_move_type': 'in_invoice'}</field>
|
||||
@@ -1359,7 +1375,7 @@
|
||||
<field name="name">Refunds</field>
|
||||
<field name="res_model">account.move</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="view_id" ref="view_invoice_tree"/>
|
||||
<field name="view_id" ref="view_in_invoice_tree"/>
|
||||
<field name="search_view_id" ref="view_account_invoice_filter"/>
|
||||
<field name="domain">[('move_type', '=', 'in_refund')]</field>
|
||||
<field name="context">{'default_move_type': 'in_refund'}</field>
|
||||
@@ -1394,7 +1410,7 @@
|
||||
<field name="name">Receipts</field>
|
||||
<field name="res_model">account.move</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="view_id" ref="view_invoice_tree"/>
|
||||
<field name="view_id" ref="view_in_invoice_tree"/>
|
||||
<field name="search_view_id" ref="view_account_invoice_filter"/>
|
||||
<field name="domain">[('move_type', '=', 'in_receipt')]</field>
|
||||
<field name="context">{'default_move_type': 'in_receipt'}</field>
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="move_ids" invisible="1"/>
|
||||
<field name="move_type" invisible="1"/>
|
||||
<span class="text-muted" attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'in_invoice', 'some_invoice'))]}">Invoices/>Bills won't be reversed but credit notes will be created instead: the tax tags will be adapted accordingly.</span>
|
||||
<group>
|
||||
<group attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'in_invoice'))]}">
|
||||
<field name="refund_method" widget="radio" attrs="{'readonly': [('residual', '=', 0)]}"/>
|
||||
|
||||
Reference in New Issue
Block a user