chore: import enterprise addons 19.0 bulk snapshot

This commit is contained in:
1b-agent committed 2026-09-16 10:13:08 +00:00
commit ca4af030d3
39951 files changed
+15570005

No files matched your search

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="planning_slot_view_search_inherit_sale_project_forecast" model="ir.ui.view">
<field name="name">planning.slot.search.inherit.sale.project.forecast</field>
<field name="model">planning.slot</field>
<field name="inherit_id" ref="sale_planning.planning_slot_view_search_inherit_sale_planning"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='my_project']" position="after">
<xpath expr="//filter[@name='my_sale_orders']" position="move"/>
</xpath>
</field>
</record>
<!-- Override action contexts to allow group_expand to apply for project_id and task_id -->
<record id="planning.planning_action_my_calendar" model="ir.actions.act_window">
<field name="context">{
'search_default_my_shifts': 1, 'my_planning_action': 1, 'search_default_open_shifts': 1, 'search_default_unwanted_shifts': 1,
'planning_expand_employee': 1, 'planning_expand_role': 1, 'planning_expand_sale_line_id': 1,
'planning_expand_project': 1, 'planning_expand_resource': 1,
}</field>
</record>
<record id="planning.planning_action_schedule_by_resource" model="ir.actions.act_window">
<field name="context">{
'search_default_group_by_employee': 1, 'planning_expand_employee': 1, 'planning_expand_role': 1,
'planning_expand_sale_line_id': 1, 'planning_expand_project': 1, 'planning_expand_resource': 1,
}</field>
</record>
<record id="planning.planning_action_schedule_by_role" model="ir.actions.act_window">
<field name="context">{
'search_default_group_by_employee': 2, 'planning_groupby_role': True,
'planning_expand_sale_line_id': 1, 'planning_expand_project': 1, 'planning_expand_resource': 1,
}</field>
</record>
<record id="project_forecast.planning_action_schedule_by_project" model="ir.actions.act_window">
<field name="domain">[('start_datetime', '!=', False), ('end_datetime', '!=', False)]</field>
</record>
<record id="project_forecast.project_forecast_action_schedule_by_employee" model="ir.actions.act_window">
<field name="domain">[('start_datetime', '!=', False), ('end_datetime', '!=', False)]</field>
</record>
<record id="sale_planning.sale_planning_action_schedule_by_sale_order" model="ir.actions.act_window">
<field name="context">{
'planning_groupby_sale_order': True,
'planning_expand_employee': 1, 'planning_expand_role': 1, 'planning_expand_sale_line_id': 1,
'planning_expand_project': 1, 'planning_expand_resource': 1,
}</field>
</record>
</odoo>
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="period_report_template" inherit_id="planning.period_report_template">
<xpath expr="//dd[@id='project']" position="after">
<dt name="sale_order_item" position="move"/>
<dd id="sale_line" position="move"/>
</xpath>
</template>
<template id="open_slots_list_template" inherit_id="planning.open_slots_list_template">
<xpath expr="//th[@t-if='open_slot_has_project']" position="after">
<th name="sale_order_item" t-if="open_slot_has_sale_line" position="move"/>
</xpath>
<xpath expr="//td[@t-if='open_slot_has_project']" position="after">
<td name="sale_line_id" t-if="open_slot_has_sale_line" position="move"/>
</xpath>
</template>
<template id="unwanted_slots_list_template" inherit_id="planning.unwanted_slots_list_template">
<xpath expr="//th[@t-if='unwanted_slot_has_project']" position="after">
<th name="sale_order_item" t-if="unwanted_slot_has_sale_line" position="move"/>
</xpath>
<xpath expr="//td[@t-if='unwanted_slot_has_project']" position="after">
<td name="sale_line_id" t-if="unwanted_slot_has_sale_line" position="move"/>
</xpath>
</template>
</odoo>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="product_template_form_view_invoice_policy_inherit_sale_project_forecast" model="ir.ui.view">
<field name="name">product.template.inherit.sale.project.forecast.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="sale_planning.product_template_form_view_invoice_policy_inherit_sale_planning"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='service_policy_div']" position="attributes">
<attribute name="invisible">
type != 'service' or service_policy in ['delivered_manual', 'delivered_milestones'] or service_tracking not in ['no', 'task_global_project', 'task_in_project', 'project_only']
</attribute>
</xpath>
<xpath expr="//label[@for='planning_enabled']" position="attributes">
<attribute name="invisible">
type != 'service' or service_policy in ['delivered_manual', 'delivered_milestones'] or service_tracking not in ['no', 'task_global_project', 'task_in_project', 'project_only']
</attribute>
</xpath>
</field>
</record>
</odoo>