You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.6 KiB
36 lines
1.6 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!--Form View of Damage Invoice-->
|
|
<record id="damage_invoice_view_form" model="ir.ui.view">
|
|
<field name="name">damage.invoice.view.form</field>
|
|
<field name="model">damage.invoice</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Damage Invoice">
|
|
<sheet>
|
|
<group>
|
|
<field name="is_damage" string="Any Damage"/>
|
|
<field name="contract_id" invisible="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="damage_amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"
|
|
invisible="is_damage == False"/>
|
|
</group>
|
|
<group string="Descriptions"
|
|
invisible="is_damage == False">
|
|
<field colspan="2" name="description" nolabel="1"
|
|
placeholder="This note is only for internal purposes."/>
|
|
</group>
|
|
</sheet>
|
|
<footer>
|
|
<button string="Create Invoice"
|
|
name="action_create_damage_invoice" type="object"
|
|
class="btn-primary"
|
|
invisible="is_damage == False"/>
|
|
<button string="Cancel" class="btn-secondary"
|
|
special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|