mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 06:32:02 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="event_configurator_view_form" model="ir.ui.view">
|
||||
<field name="name">event.configurator.view.form</field>
|
||||
<field name="model">event.event.configurator</field>
|
||||
<field name="arch" type="xml">
|
||||
<form js_class="event_configurator_form">
|
||||
<group>
|
||||
<field
|
||||
name="event_id"
|
||||
domain="[
|
||||
('event_ticket_ids.product_id','=', product_id),
|
||||
('date_end','>=',time.strftime('%Y-%m-%d 00:00:00'))
|
||||
]"
|
||||
required="1"
|
||||
context="{'name_with_seats_availability': True}"
|
||||
options="{'no_open': True, 'no_create': True}"
|
||||
/>
|
||||
<field
|
||||
name="event_ticket_id"
|
||||
domain="[('event_id', '=', event_id), ('product_id', '=', product_id)]"
|
||||
attrs="{
|
||||
'invisible': [('event_id', '=', False)],
|
||||
'required': [('event_id', '!=', False)],
|
||||
}"
|
||||
context="{'name_with_seats_availability': True}"
|
||||
options="{'no_open': True, 'no_create': True}"
|
||||
/>
|
||||
<field name="product_id" invisible="1"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button string="Ok" class="btn-primary o_event_sale_js_event_configurator_ok" special="save" data-hotkey="v"/>
|
||||
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="event_configurator_action" model="ir.actions.act_window">
|
||||
<field name="name">Configure an event</field>
|
||||
<field name="res_model">event.event.configurator</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field name="context">{'name_with_seats_availability': True}</field>
|
||||
<field name="view_id" ref="event_configurator_view_form"/>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue