mirror of
https://github.com/bringout/oca-mrp.git
synced 2026-04-26 06:52:06 +02:00
Initial commit: OCA Mrp packages (117 packages)
This commit is contained in:
commit
277e84fd7a
4403 changed files with 395154 additions and 0 deletions
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
Copyright 2017-19 Tecnativa - David Vidal
|
||||
Copyright 2021 Moka Tourisme (https://www.mokatourisme.fr)
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="view_event_session_form" model="ir.ui.view">
|
||||
<field name="model">event.session</field>
|
||||
<field name="inherit_id" ref="event_session.view_event_session_form" />
|
||||
<field name="priority">20</field>
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<field name="currency_id" invisible="1" />
|
||||
<button
|
||||
name="action_view_linked_orders"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-dollar"
|
||||
groups="sales_team.group_sale_salesman"
|
||||
help="Total sales for this session"
|
||||
attrs="{'invisible': ['|', ('sale_price_subtotal', '=', 0), ('sale_price_subtotal', '=', False)]}"
|
||||
>
|
||||
<field
|
||||
string="Sales"
|
||||
name="sale_price_subtotal"
|
||||
widget="statinfo"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2017-19 Tecnativa - David Vidal
|
||||
Copyright 2021 Moka Tourisme (https://www.mokatourisme.fr)
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="sale_order_view_form" model="ir.ui.view">
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="event_sale.sale_order_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='order_line']//form//field[@name='event_id']"
|
||||
position="after"
|
||||
>
|
||||
<field name="event_use_sessions" invisible="1" />
|
||||
<field
|
||||
name="event_session_id"
|
||||
domain="[
|
||||
('event_id', '=', event_id),
|
||||
('date_end', '>=', time.strftime('%Y-%m-%d 00:00:00')),
|
||||
]"
|
||||
attrs="{
|
||||
'invisible': [('event_use_sessions', '=', False)],
|
||||
'required': [('event_use_sessions', '=', True)],
|
||||
}"
|
||||
options="{'no_open': True, 'no_create': True}"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//field[@name='order_line']//tree//field[@name='event_id']"
|
||||
position="after"
|
||||
>
|
||||
<field name="event_use_sessions" invisible="1" />
|
||||
<field
|
||||
name="event_session_id"
|
||||
domain="[
|
||||
('event_id', '=', event_id),
|
||||
('date_end', '>=', time.strftime('%Y-%m-%d 00:00:00')),
|
||||
]"
|
||||
attrs="{
|
||||
'invisible': [('event_use_sessions', '=', False)],
|
||||
'required': [('event_use_sessions', '=', True)],
|
||||
}"
|
||||
options="{'no_open': True, 'no_create': True}"
|
||||
optional="hide"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue