Merge PR #531 into 12.0

Signed-off-by guewen
This commit is contained in:
OCA-git-bot
2020-09-23 05:42:46 +00:00
5 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# Copyright 2020 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Production Show Post Inventory',
'version': '12.0.1.0.0',
'category': 'MRP',
'author': 'Camptocamp, '
'Odoo Community Association (OCA)',
'website': 'https://github.com/oca/manufacture',
'license': 'AGPL-3',
'depends': [
'mrp',
],
'data': [
'views/mrp_production.xml',
],
'installable': True,
}

View File

@@ -0,0 +1 @@
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com>

View File

@@ -0,0 +1,2 @@
This module allows to always show the "post inventory" button on manufacturing
order form view. Normally this button is only available in debug mode.

View File

@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!--
Copyright 2020 Camptocamp
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="mrp_production_form_view" model="ir.ui.view">
<field name="name">mrp.production.form.with.post_inventory</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='post_inventory']" position="attributes">
<attribute name="groups">mrp.group_mrp_user</attribute>
</xpath>
</field>
</record>
</odoo>