Skip to content

Commit

Permalink
[ADD] stock_ux: Restrict to modify reservations from planned
Browse files Browse the repository at this point in the history
  • Loading branch information
vib-adhoc committed Oct 18, 2022
1 parent cf48232 commit 2f66092
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stock_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Stock UX',
'version': "15.0.1.1.0",
'version': "15.0.1.2.0",
'category': 'Warehouse Management',
'sequence': 14,
'summary': '',
Expand Down Expand Up @@ -51,6 +51,7 @@
'wizards/stock_operation_wizard_views.xml',
'wizards/res_config_settings_views.xml',
'report/stock_ux_report.xml',
'report/report_stock_forecasted.xml',
],
'demo': [
],
Expand Down
5 changes: 5 additions & 0 deletions stock_ux/i18n/es.po
Expand Up @@ -748,3 +748,8 @@ msgstr "No puede transferir más de la demanda inicial!"
#, python-format
msgid "You can't transfer more quantity than reserved one!"
msgstr "No puede transferir más cantidad que la reservada!"

#. module: stock_ux
#: model:res.groups,name:stock_ux.group_restrict_to_modify_reservations_from_planned
msgid "Restrict to modify reservations from planned"
msgstr "No permitir modificar reservas desde previsto"
11 changes: 11 additions & 0 deletions stock_ux/report/report_stock_forecasted.xml
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_product_product_replenishment_ux" inherit_id="stock.report_product_product_replenishment">
<xpath expr="//button[@name='unreserve_link']" position="attributes">
<attribute name="groups">!stock_ux.group_restrict_to_modify_reservations_from_planned</attribute>
</xpath>
<xpath expr="//button[@name='reserve_link']" position="attributes">
<attribute name="groups">!stock_ux.group_restrict_to_modify_reservations_from_planned</attribute>
</xpath>
</template>
</odoo>
4 changes: 4 additions & 0 deletions stock_ux/security/stock_ux_security.xml
Expand Up @@ -14,4 +14,8 @@
<field name="name">Restrict Edit Blocked Pickings</field>
</record>

<record model="res.groups" id="group_restrict_to_modify_reservations_from_planned">
<field name="name">Restrict to modify reservations from planned</field>
</record>

</odoo>

0 comments on commit 2f66092

Please sign in to comment.