mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
51 lines
1.9 KiB
XML
51 lines
1.9 KiB
XML
<?xml version="1.0" ?>
|
|
<odoo>
|
|
<record id="move_form" model="ir.ui.view">
|
|
<field name="model">account.move</field>
|
|
<field name="inherit_id" ref="account.view_move_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='invoice_date']" position="after">
|
|
<field name="folio_ids" widget="many2many_tags" />
|
|
<field name="from_reservation" invisible="1" />
|
|
<field name="pms_property_id" invisible="1" />
|
|
</xpath>
|
|
<xpath
|
|
expr="//field[@name='invoice_line_ids']/tree/field[@name='name']"
|
|
position="after"
|
|
>
|
|
<button
|
|
name="invoice_filter_days"
|
|
type="object"
|
|
icon="fa-calendar"
|
|
string="Filter-days"
|
|
aria-label="Change Period"
|
|
class="float-right"
|
|
attrs="{
|
|
'column_invisible': ['|',('parent.from_reservation', '=', False),('parent.state', '!=', 'draft')],
|
|
'invisible': [('reservation_line_ids', '=', [])]
|
|
}"
|
|
/>
|
|
<field name="reservation_line_ids" invisible="1" />
|
|
</xpath>
|
|
<!-- <xpath
|
|
expr="//field[@name='invoice_line_ids']/tree/field[@name='quantity']"
|
|
position="attributes"
|
|
>
|
|
<attribute name="attrs">
|
|
{
|
|
'readonly': [('reservation_line_ids', '!=', False)],
|
|
}
|
|
</attribute>
|
|
</xpath> -->
|
|
</field>
|
|
</record>
|
|
|
|
<menuitem
|
|
name="Invoices"
|
|
id="pms_invoice_menu"
|
|
action="account.action_move_out_invoice_type"
|
|
sequence="15"
|
|
parent="pms.pms_sales_menu"
|
|
/>
|
|
</odoo>
|