mirror of
https://github.com/bringout/oca-mrp.git
synced 2026-04-26 14:32:05 +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,63 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2017-20 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="mrp_bom_form_view" model="ir.ui.view">
|
||||
<field name="name">mrp.bom.form - mrp_bom_location</field>
|
||||
<field name="model">mrp.bom</field>
|
||||
<field name="inherit_id" ref="mrp.mrp_bom_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="product_id" position="after">
|
||||
<field name="location_id" />
|
||||
</field>
|
||||
<xpath
|
||||
expr="//field[@name='bom_line_ids']/tree/field[@name='product_qty']"
|
||||
position="after"
|
||||
>
|
||||
<field name="location_id" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="mrp_bom_tree_view" model="ir.ui.view">
|
||||
<field name="name">mrp.bom.tree - mrp_bom_location</field>
|
||||
<field name="model">mrp.bom</field>
|
||||
<field name="inherit_id" ref="mrp.mrp_bom_tree_view" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="product_id" position="after">
|
||||
<field name="location_id" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_mrp_bom_filter" model="ir.ui.view">
|
||||
<field name="name">mrp.bom.select - mrp_bom_location</field>
|
||||
<field name="model">mrp.bom</field>
|
||||
<field name="inherit_id" ref="mrp.view_mrp_bom_filter" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="product_tmpl_id" position="after">
|
||||
<field name="location_id" string="Location" />
|
||||
</field>
|
||||
<group expand="0" position="inside">
|
||||
<filter
|
||||
name="location_id"
|
||||
string="Location"
|
||||
context="{'group_by':'location_id'}"
|
||||
/>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="mrp_bom_line_view_form" model="ir.ui.view">
|
||||
<field name="name">mrp.bom.line.view.form - mrp_bom_location</field>
|
||||
<field name="model">mrp.bom.line</field>
|
||||
<field name="inherit_id" ref="mrp.mrp_bom_line_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="product_id" position="before">
|
||||
<field name="location_id" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template id="report_mrpbomstructure_location" inherit_id="mrp.report_mrp_bom">
|
||||
<xpath expr="//thead/tr/th[last()-1]" position="after">
|
||||
<th
|
||||
t-if="data['bom'].location_id"
|
||||
class="o_mrp_bom_cost text-right"
|
||||
title="Location of the product"
|
||||
>Location</th>
|
||||
</xpath>
|
||||
<xpath expr="//tbody/tr/td[last()-1]" position="after">
|
||||
<td class="text-end" t-esc="data['bom'].location_id.complete_name" />
|
||||
</xpath>
|
||||
<xpath expr="//tbody/tr[last()]/td[last()-1]" position="after">
|
||||
<td t-if="data['bom'].location_id" />
|
||||
</xpath>
|
||||
<xpath expr="//tbody/t[last()]/tr/td[last()-1]" position="after">
|
||||
<td t-if="data['bom'].location_id" />
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="report_mrp_bom_pdf_line" inherit_id="mrp.report_mrp_bom_pdf_line">
|
||||
<xpath expr="//td[last()-1]" position="after">
|
||||
<td t-if="data['bom'].location_id" class="text-right">
|
||||
<span t-esc="l['location_name']" />
|
||||
</td>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue