[FIX] stock_usability: stop adding a field in stock_usability which is defined in mrp !

This commit is contained in:
Alexis de Lattre
2024-02-13 17:00:08 +01:00
parent fcf67f4fd9
commit 97d57e40eb
3 changed files with 22 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
'data': [
'views/mrp_production.xml',
'views/product_template.xml',
'views/stock_move_line.xml',
# 'report/mrp_report.xml' # TODO
],
'installable': True,

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2024 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_move_line_form" model="ir.ui.view">
<field name="name">mrp_usability.stock.move.line.form</field>
<field name="model">stock.move.line</field>
<field name="inherit_id" ref="stock.view_move_line_form" />
<field name="arch" type="xml">
<field name="reference" position="before">
<field name="production_id" attrs="{'invisible': [('production_id', '=', False)]}"/>
</field>
</field>
</record>
</odoo>

View File

@@ -80,7 +80,6 @@
<field name="arch" type="xml">
<field name="reference" position="before">
<field name="picking_id" attrs="{'invisible': [('picking_id', '=', False)]}"/>
<field name="production_id" attrs="{'invisible': [('production_id', '=', False)]}"/>
</field>
</field>
</record>