2018-03-30 11:49:58 +02:00
|
|
|
<?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>
|
2018-04-16 19:16:53 +02:00
|
|
|
|
2018-03-30 17:27:40 +02:00
|
|
|
<!-- Tree -->
|
|
|
|
<record model="ir.ui.view" id="golem_resource_pack_inherit_account_tree">
|
|
|
|
<field name="name">GOLEM Resource Pack Account extention Tree</field>
|
|
|
|
<field name="model">golem.resource.pack</field>
|
|
|
|
<field name="inherit_id" ref="golem_resource_pack.golem_resource_pack_view_tree"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="reservation_count" position="after">
|
|
|
|
<field name="invoice_state" />
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-04-16 19:16:53 +02:00
|
|
|
|
2018-03-30 11:49:58 +02:00
|
|
|
<!-- Forms -->
|
|
|
|
<record model="ir.ui.view" id="golem_resource_pack_inherit_account_form">
|
2018-03-30 17:27:40 +02:00
|
|
|
<field name="name">GOLEM Resource Pack Account extention Form</field>
|
2018-03-30 11:49:58 +02:00
|
|
|
<field name="model">golem.resource.pack</field>
|
|
|
|
<field name="inherit_id" ref="golem_resource_pack.golem_resource_pack_view_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<button name="state_rejected" position="after">
|
|
|
|
<button name="create_invoice" type="object" string="Create Invoice" class="oe_highlight"
|
2018-04-16 19:16:53 +02:00
|
|
|
attrs="{'invisible': ['|', ('state', '!=', 'validated'), '|', ('invoice_id', '!=', False), ('are_products_set', '=', False)]}" />
|
2018-03-30 11:49:58 +02:00
|
|
|
<button name="show_invoice" type="object" string="Show invoice" class="oe_highlight"
|
|
|
|
attrs="{'invisible': [('invoice_id', '=', False)]}" />
|
|
|
|
</button>
|
|
|
|
<group name="general" position="after">
|
|
|
|
<group name="invoicing" string="Invoicing"
|
|
|
|
attrs="{'invisible': [('invoice_id', '=', False)]}">
|
2018-04-16 19:16:53 +02:00
|
|
|
<field name="are_products_set" invisible="1"/>
|
2018-03-30 11:49:58 +02:00
|
|
|
<field name="invoice_id" />
|
|
|
|
<field name="invoice_state" />
|
|
|
|
<field name="invoice_amount_total" />
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-04-16 19:16:53 +02:00
|
|
|
|
2018-03-30 11:49:58 +02:00
|
|
|
</data>
|
|
|
|
</odoo>
|