golem/golem_resource_account/wizard/golem_reservation_add_to_in...

49 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Youssef El Ouahby <youssef@yaltik.com>
Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<odoo>
<data>
<record id="golem_reservation_add_to_invoice_form" model="ir.ui.view">
<field name="name">GOLEM Reservation Add to invoice Form</field>
<field name="model">golem.reservation.add.to.invoice.wizard</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="reservation_id" readonly="1" />
<field name="invoice_ids" widget="many2many" readonly="1"
context="{'reservation_id': reservation_id}">
<tree>
<field name="partner_id" />
<field name="amount_total" />
<field name="state" />
<button name="add_to_invoice" type="object" icon="fa fa-plus-square" />
</tree>
</field>
</group>
</sheet>
<footer>
<button string="Close" special="cancel" />
</footer>
</form>
</field>
</record>
</data>
</odoo>