19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:12 +01:00
parent 79f83631d5
commit 73afc09215
6267 changed files with 1534193 additions and 1130106 deletions

View file

@ -10,7 +10,12 @@
<group name="main" position="inside">
<group string="Booth Details">
<field name="currency_id" invisible="1"/>
<field name="product_id" context="{'default_detailed_type': 'event_booth', 'default_detailed_type': 'service'}"/>
<field name="product_id"
context="{
'default_type': 'service',
'default_service_tracking': 'event_booth',
}"
/>
<field name="price" widget="monetary" options="{'currency_field': 'currency_id'}"/>
</group>
</group>
@ -18,13 +23,13 @@
</record>
<record id="event_booth_category_view_tree" model="ir.ui.view">
<field name="name">event.booth.category.view.tree.inherit.sale</field>
<field name="name">event.booth.category.view.list.inherit.sale</field>
<field name="model">event.booth.category</field>
<field name="inherit_id" ref="event_booth.event_booth_category_view_tree"/>
<field name="priority">3</field>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="currency_id" invisible="1"/>
<field name="currency_id" column_invisible="True"/>
<field name="product_id"/>
<field name="price" widget="monetary" options="{'currency_field': 'currency_id'}"/>
</field>

View file

@ -19,7 +19,6 @@
<field name="contact_name"/>
<field name="contact_email"/>
<field name="contact_phone"/>
<field name="contact_mobile"/>
</group>
</group>
</sheet>
@ -28,18 +27,17 @@
</record>
<record id="event_booth_registration_view_tree" model="ir.ui.view">
<field name="name">event.booth.registration.view.tree</field>
<field name="name">event.booth.registration.view.list</field>
<field name="model">event.booth.registration</field>
<field name="arch" type="xml">
<tree string="Booth Registration">
<list string="Booth Registration">
<field name="partner_id"/>
<field name="event_booth_id"/>
<field name="sale_order_line_id"/>
<field name="contact_name" optional="hide"/>
<field name="contact_email" optional="hide"/>
<field name="contact_phone" optional="hide"/>
<field name="contact_mobile" optional="hide"/>
</tree>
</list>
</field>
</record>

View file

@ -10,29 +10,33 @@
<div name="button_box" position="inside">
<button name="action_view_sale_order" type="object" class="oe_stat_button"
icon="fa-usd" groups="sales_team.group_sale_salesman"
string="Sale Order" attrs="{'invisible': [('sale_order_id', '=', False)]}">
invisible="not sale_order_id">
<div class="o_stat_info">
<span class="o_stat_text">Sale Order</span>
</div>
</button>
<field name="sale_order_id" invisible="1"/>
</div>
<div name="button_box" position="after">
<field name="is_paid" invisible="1"/>
<widget name="web_ribbon" title="Paid" attrs="{'invisible': [('is_paid', '=', False)]}"/>
<widget name="web_ribbon" title="Paid" invisible="not is_paid"/>
</div>
<field name="booth_category_id" position="after">
<field name="currency_id" invisible="1"/>
<field name="product_id" attrs="{'invisible': [('booth_category_id', '=', False)]}"/>
<field name="product_id" invisible="not booth_category_id"/>
<field name="price" widget="monetary" options="{'currency_field': 'currency_id'}"
attrs="{'invisible': [('booth_category_id', '=', False)]}"/>
invisible="not booth_category_id"/>
</field>
<group name="renter" position="after">
<group name="sales" groups="base.group_no_one"
attrs="{'invisible': [('sale_order_line_id', '=', False)]}">
<field name="sale_order_id"/>
<field name="sale_order_line_id"/>
<group name="sales" groups="sales_team.group_sale_salesman"
invisible="not sale_order_line_id">
<field name="sale_order_id" groups="base.group_no_one"/>
<field name="sale_order_line_id" groups="base.group_no_one" readonly="state != 'available'"/>
</group>
</group>
<xpath expr="//sheet" position="inside">
<notebook groups="base.group_no_one">
<page string="Registrations">
<page string="Registrations" name="page_registrations">
<field name="event_booth_registration_ids" readonly="1"/>
</page>
</notebook>
@ -41,12 +45,12 @@
</record>
<record id="event_booth_view_tree_from_event" model="ir.ui.view">
<field name="name">event.booth.view.tree.from.event.inherit.sale</field>
<field name="name">event.booth.view.list.from.event.inherit.sale</field>
<field name="model">event.booth</field>
<field name="inherit_id" ref="event_booth.event_booth_view_tree_from_event"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="currency_id" invisible="1"/>
<field name="currency_id" column_invisible="True"/>
<field name="price" widget="monetary" options="{'currency_field': 'currency_id'}" sum="Total"/>
</field>
</field>

View file

@ -7,7 +7,7 @@
<field name="inherit_id" ref="event_booth.event_type_booth_view_form_from_type"/>
<field name="arch" type="xml">
<field name="booth_category_id" position="after">
<field name="currency_id" invisible="1"/>
<field name="currency_id" column_invisible="True"/>
<field name="product_id"/>
<field name="price" widget="monetary" options="{'currency_field': 'currency_id'}"/>
</field>
@ -15,12 +15,12 @@
</record>
<record id="event_type_booth_view_tree_from_type" model="ir.ui.view">
<field name="name">event.booth.view.tree.from.type.inherit.sale</field>
<field name="name">event.booth.view.list.from.type.inherit.sale</field>
<field name="model">event.type.booth</field>
<field name="inherit_id" ref="event_booth.event_type_booth_view_tree_from_type"/>
<field name="arch" type="xml">
<field name="booth_category_id" position="after">
<field name="currency_id" invisible="1"/>
<field name="currency_id" column_invisible="True"/>
<field name="product_id"/>
<field name="price" widget="monetary" options="{'currency_field': 'currency_id'}"/>
</field>

View file

@ -1,27 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo><data>
<odoo>
<record id="sale_order_view_form" model="ir.ui.view">
<field name="name">sale.order.view.form.inherit.event.booth.sale</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="inherit_id" ref="event_sale.sale_order_view_form"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='action_view_attendee_list']" position="after">
<field name="event_booth_count" invisible="1"/>
<button name="action_view_booth_list" type="object" class="oe_stat_button" icon="fa-university"
attrs="{'invisible': [('event_booth_count', '=', 0)]}">
<button name="action_view_attendee_list" position="after">
<button
name="action_view_booth_list"
type="object"
class="oe_stat_button"
icon="fa-university"
invisible="event_booth_count == 0"
>
<field name="event_booth_count" widget="statinfo" string="Booths"/>
</button>
</button>
<xpath expr="//field[@name='order_line']//list//field[@name='event_ticket_id']" position="after">
<field name="event_booth_category_id" column_invisible="True"/>
<field name="event_booth_pending_ids" column_invisible="True"/>
</xpath>
<xpath expr="//field[@name='order_line']//tree//field[@name='event_ticket_id']" position="after">
<field name="is_event_booth" optional="hide"/>
<field name="event_booth_category_id" optional="hide"/>
<field name="event_booth_pending_ids" optional="hide"/>
</xpath>
<xpath expr="//field[@name='order_line']//tree//field[@name='product_uom_qty']" position="attributes">
<attribute name="attrs">{'readonly': [('is_event_booth', '=', True)]}</attribute>
<xpath expr="//field[@name='order_line']//list//field[@name='product_uom_qty']" position="attributes">
<attribute name="readonly" separator="or" add="service_tracking == 'event_booth'"/>
</xpath>
</field>
</record>
</data></odoo>
</odoo>