2017-06-14 23:50:35 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!--
|
2018-07-17 11:32:00 +02:00
|
|
|
Copyright 2017-2018 Fabien Bourgeois <fabien@yaltik.com>
|
2017-06-14 23:50:35 +02:00
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
<!-- Form -->
|
|
|
|
<record id="invoicing_form" model="ir.ui.view">
|
|
|
|
<field name="name">GOLEM Activity Registration Invoicing Form</field>
|
|
|
|
<field name="model">golem.activity.registration.invoicing</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Registration invoicing">
|
2018-07-17 11:32:00 +02:00
|
|
|
<field name="state" invisible="1" />
|
|
|
|
<p states="init" class="oe_grey">
|
|
|
|
Please confirm activity prices and choose a payment schedule if needed.
|
|
|
|
</p>
|
|
|
|
<group states="init">
|
2017-06-14 23:50:35 +02:00
|
|
|
<field name="season_id" readonly="1" />
|
|
|
|
<field name="member_id" readonly="1" />
|
|
|
|
<field name="line_ids" string="Activities and Prices">
|
|
|
|
<tree delete="false" create="false" edit="true" editable="bottom">
|
|
|
|
<field name="activity_id" readonly="1" />
|
|
|
|
<field name="price" sum="Total" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
<field name="schedule_id" />
|
2017-06-15 01:14:20 +02:00
|
|
|
<field name="journal_id"
|
|
|
|
attrs="{'invisible': [('schedule_id', '=', False)],
|
|
|
|
'required': [('schedule_id', '!=', False)]}" />
|
2017-06-14 23:50:35 +02:00
|
|
|
</group>
|
2018-07-17 11:32:00 +02:00
|
|
|
<p states="final">
|
|
|
|
Congratulations, activities had been confirmed and invoiced.
|
|
|
|
</p>
|
|
|
|
<group states="final">
|
|
|
|
<field name="invoice_id" readonly="1" />
|
|
|
|
<field name="payment_ids" readonly="1" />
|
|
|
|
</group>
|
2017-06-14 23:50:35 +02:00
|
|
|
<footer>
|
|
|
|
<button name="validate" string="Validate" type="object"
|
2018-07-17 11:32:00 +02:00
|
|
|
states="init" class="oe_highlight" />
|
|
|
|
<button name="go_invoice" string="Display invoice" type="object"
|
|
|
|
states="final" class="oe_highlight" />
|
|
|
|
<button name="go_payments" string="Display payments" type="object"
|
|
|
|
states="final" />
|
2017-06-14 23:50:35 +02:00
|
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
|
|
</footer>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</odoo>
|