mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 11:52:00 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2017-20 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
|
||||
<odoo>
|
||||
<record id="view_ddmrp_adjustment_demand_tree" model="ir.ui.view">
|
||||
<field name="name">ddmrp.adjustment.demand.tree</field>
|
||||
<field name="model">ddmrp.adjustment.demand</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree create="0" delete="0">
|
||||
<field name="buffer_id" />
|
||||
<field name="product_id" />
|
||||
<field name="buffer_origin_id" />
|
||||
<field name="product_origin_id" />
|
||||
<field name="extra_demand" />
|
||||
<field name="product_uom_id" />
|
||||
<field name="date_start" />
|
||||
<field name="date_end" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="ddmrp_adjustment_demand_action" model="ir.actions.act_window">
|
||||
<field name="name">Buffer Adjustments Demand</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">ddmrp.adjustment.demand</field>
|
||||
<field name="view_mode">tree</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2017-24 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
|
||||
<odoo>
|
||||
<record id="view_ddmrp_adjustment_tree" model="ir.ui.view">
|
||||
<field name="name">ddmrp.adjustment.tree</field>
|
||||
<field name="model">ddmrp.adjustment</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree editable="top">
|
||||
<field name="buffer_id" />
|
||||
<field name="product_id" />
|
||||
<field name="location_id" />
|
||||
<field name="date_range_id" />
|
||||
<field name="adjustment_type" />
|
||||
<field name="value" />
|
||||
<field name="company_id" groups="base.group_multi_company" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_ddmrp_adjustment_search" model="ir.ui.view">
|
||||
<field name="name">ddmrp.adjustment.search</field>
|
||||
<field name="model">ddmrp.adjustment</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="buffer_id" />
|
||||
<field name="product_id" />
|
||||
<field name="location_id" />
|
||||
<field name="adjustment_type" />
|
||||
<field name="company_id" groups="base.group_multi_company" />
|
||||
<filter
|
||||
name="current"
|
||||
string="Affecting Currently"
|
||||
domain="[
|
||||
('date_end', '>=', context_today().strftime('%Y-%m-%d')),
|
||||
('date_start', '<=', context_today().strftime('%Y-%m-%d'))]"
|
||||
/>
|
||||
<filter
|
||||
name="not_expired"
|
||||
string="Not Expired"
|
||||
domain="['|', ('date_end', '=', False), ('date_end', '>', context_today().strftime('%Y-%m-%d'))]"
|
||||
/>
|
||||
<group expand="1" string="Group By">
|
||||
<filter
|
||||
string="Buffer"
|
||||
name="group_buffer"
|
||||
context="{'group_by':'buffer_id'}"
|
||||
/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_ddmrp_adjustment_graph" model="ir.ui.view">
|
||||
<field name="name">ddmrp.adjustment.graph</field>
|
||||
<field name="model">ddmrp.adjustment</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph>
|
||||
<field name="date_range_id" type="column" />
|
||||
<field name="value" type="measure" />
|
||||
</graph>
|
||||
</field>
|
||||
</record>
|
||||
<record id="ddmrp_adjustment_action" model="ir.actions.act_window">
|
||||
<field name="name">Buffer Adjustments</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">ddmrp.adjustment</field>
|
||||
<field name="view_mode">tree,graph,form</field>
|
||||
<field name="context">{"search_default_not_expired": 1}</field>
|
||||
</record>
|
||||
<menuitem
|
||||
id="menu_ddmrp_adjustment"
|
||||
parent="stock_demand_estimate.stock_demand_planning_menu"
|
||||
action="ddmrp_adjustment_action"
|
||||
sequence="50"
|
||||
/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2017-20 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
|
||||
<odoo>
|
||||
<record id="stock_buffer_view_form" model="ir.ui.view">
|
||||
<field name="name">stock.buffer.form</field>
|
||||
<field name="model">stock.buffer</field>
|
||||
<field name="inherit_id" ref="ddmrp.stock_buffer_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
<field name="count_ddmrp_adjustment_demand" invisible="1" />
|
||||
<button
|
||||
string="DAF Demand Allocation"
|
||||
name="action_view_demand_to_components"
|
||||
class="oe_stat_button"
|
||||
icon="fa-caret-square-o-down"
|
||||
type="object"
|
||||
attrs="{'invisible': [('count_ddmrp_adjustment_demand', '=', 0)]}"
|
||||
/>
|
||||
</xpath>
|
||||
<button name="action_view_future_adu_indirect_demand" position="after">
|
||||
<field name="daf_applied" invisible="1" />
|
||||
<field name="parent_daf_applied" invisible="1" />
|
||||
<button
|
||||
title="View DAFs Affecting Actual ADU"
|
||||
name="action_view_affecting_adu"
|
||||
type="object"
|
||||
attrs="{'invisible': [('daf_applied', '=', -1)]}"
|
||||
>
|
||||
<field name="daf_text" readonly="1" />
|
||||
</button>
|
||||
<button
|
||||
title="View Demand from parent DAFs Affecting Actual ADU"
|
||||
name="action_view_parent_affecting_adu"
|
||||
type="object"
|
||||
attrs="{'invisible': [('parent_daf_applied', '=', -1)]}"
|
||||
>
|
||||
<field name="parent_daf_text" readonly="1" />
|
||||
</button>
|
||||
</button>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue