[IMP] Add group permissions to views

[UPD] Update stock_putaway_product_form.pot

[UPD] README.rst
This commit is contained in:
Kevin Khao
2020-08-09 12:41:11 +02:00
committed by Carolina Fernandez
parent f83497ba9e
commit 7fe644d5d2
4 changed files with 153 additions and 23 deletions

View File

@@ -13,11 +13,17 @@ Putaway strategies on product form view
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-oca%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/oca/stock-logistics-warehouse/tree/12.0/stock_putaway_product_form
:alt: oca/stock-logistics-warehouse
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_putaway_product_form
:alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_putaway_product_form
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/153/12.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3|
|badge1| |badge2| |badge3| |badge4| |badge5|
This module adds an easy way to modify product-specific putaway strategies from the product view for a better UX.
@@ -36,26 +42,45 @@ Usage
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/oca/stock-logistics-warehouse/issues>`_.
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/oca/stock-logistics-warehouse/issues/new?body=module:%20stock_putaway_product_form%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_putaway_product_form%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
~~~~~~~
* Akretion
Contributors
~~~~~~~~~~~~
* Akretion <https://www.akretion.com>
* `Akretion <https://www.akretion.com>`_:
* Kevin Khao <kevin.khao@akretion.com>
* `Tecnativa <https://www.tecnativa.com>`_:
* Sergio Teruel
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
.. |maintainer-kevinkhao| image:: https://github.com/kevinkhao.png?size=40px
:target: https://github.com/kevinkhao
:alt: kevinkhao
@@ -63,10 +88,10 @@ Maintainers
:target: https://github.com/sebastienbeau
:alt: sebastienbeau
Current maintainers:
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-kevinkhao| |maintainer-sebastienbeau|
This module is part of the `oca/stock-logistics-warehouse <https://github.com/oca/stock-logistics-warehouse/tree/12.0/stock_putaway_product_form>`_ project on GitHub.
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_putaway_product_form>`_ project on GitHub.
You are welcome to contribute.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -0,0 +1,88 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_putaway_product_form
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: stock_putaway_product_form
#: model:ir.model.fields,field_description:stock_putaway_product_form.field_product_putaway__product_location_ids
msgid "Fixed Locations Per Product"
msgstr ""
#. module: stock_putaway_product_form
#: model:ir.model,name:stock_putaway_product_form.model_stock_fixed_putaway_strat
msgid "Fixed Putaway Strategy on Location"
msgstr ""
#. module: stock_putaway_product_form
#: model_terms:ir.ui.view,arch_db:stock_putaway_product_form.view_template_form_putaway
msgid "Keep empty product field to apply strategy to all variants."
msgstr ""
#. module: stock_putaway_product_form
#: model:ir.model,name:stock_putaway_product_form.model_product_product
msgid "Product"
msgstr ""
#. module: stock_putaway_product_form
#: model:ir.model,name:stock_putaway_product_form.model_product_template
msgid "Product Template"
msgstr ""
#. module: stock_putaway_product_form
#: model:ir.model.fields,field_description:stock_putaway_product_form.field_stock_fixed_putaway_strat__product_tmpl_id
msgid "Product Tmpl"
msgstr ""
#. module: stock_putaway_product_form
#: model:ir.model.fields,field_description:stock_putaway_product_form.field_product_product__product_putaway_categ_ids
#: model:ir.model.fields,field_description:stock_putaway_product_form.field_product_template__product_putaway_categ_ids
msgid "Product putaway strategies by category"
msgstr ""
#. module: stock_putaway_product_form
#: model:ir.model.fields,field_description:stock_putaway_product_form.field_product_product__product_tmpl_putaway_ids
#: model:ir.model.fields,field_description:stock_putaway_product_form.field_product_template__product_tmpl_putaway_ids
msgid "Product putaway strategies by product"
msgstr ""
#. module: stock_putaway_product_form
#: model:ir.model.fields,field_description:stock_putaway_product_form.field_product_product__product_product_putaway_ids
msgid "Product putaway strategies by product variant"
msgstr ""
#. module: stock_putaway_product_form
#: model_terms:ir.ui.view,arch_db:stock_putaway_product_form.view_template_form_putaway
msgid "Put Away Strategies by category"
msgstr ""
#. module: stock_putaway_product_form
#: model_terms:ir.ui.view,arch_db:stock_putaway_product_form.view_product_form_putaway
#: model_terms:ir.ui.view,arch_db:stock_putaway_product_form.view_template_form_putaway
msgid "Put Away Strategies by products"
msgstr ""
#. module: stock_putaway_product_form
#: model:ir.model,name:stock_putaway_product_form.model_product_putaway
msgid "Put Away Strategy"
msgstr ""
#. module: stock_putaway_product_form
#: model_terms:ir.ui.view,arch_db:stock_putaway_product_form.view_template_form_putaway
msgid "Putaway strategies"
msgstr ""
#. module: stock_putaway_product_form
#: model_terms:ir.ui.view,arch_db:stock_putaway_product_form.view_template_form_putaway
msgid "The rules defined per product will be applied before the rules defined per product category."
msgstr ""

View File

@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/oca/stock-logistics-warehouse/tree/12.0/stock_putaway_product_form"><img alt="oca/stock-logistics-warehouse" src="https://img.shields.io/badge/github-oca%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_putaway_product_form"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_putaway_product_form"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/153/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module adds an easy way to modify product-specific putaway strategies from the product view for a better UX.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
@@ -375,8 +375,9 @@ ul.auto-toc {
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
<li><a class="reference internal" href="#contributors" id="id4">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id5">Maintainers</a></li>
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
</ul>
</li>
</ul>
@@ -391,29 +392,44 @@ ul.auto-toc {
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/oca/stock-logistics-warehouse/issues">GitHub Issues</a>.
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/oca/stock-logistics-warehouse/issues/new?body=module:%20stock_putaway_product_form%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_putaway_product_form%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id3">Credits</a></h1>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id4">Contributors</a></h2>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
<ul class="simple">
<li>Akretion &lt;<a class="reference external" href="https://www.akretion.com">https://www.akretion.com</a>&gt;<ul>
<li>Akretion</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
<ul class="simple">
<li><a class="reference external" href="https://www.akretion.com">Akretion</a>:<ul>
<li>Kevin Khao &lt;<a class="reference external" href="mailto:kevin.khao&#64;akretion.com">kevin.khao&#64;akretion.com</a>&gt;</li>
</ul>
</li>
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Sergio Teruel</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id5">Maintainers</a></h2>
<p>Current maintainers:</p>
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external" href="https://github.com/kevinkhao"><img alt="kevinkhao" src="https://github.com/kevinkhao.png?size=40px" /></a> <a class="reference external" href="https://github.com/sebastienbeau"><img alt="sebastienbeau" src="https://github.com/sebastienbeau.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/oca/stock-logistics-warehouse/tree/12.0/stock_putaway_product_form">oca/stock-logistics-warehouse</a> project on GitHub.</p>
<p>You are welcome to contribute.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_putaway_product_form">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>

View File

@@ -5,6 +5,7 @@
<field name="name">product.template.product.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="groups_id" eval="[(4,ref('stock.group_stock_manager'))]"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='inventory']" position="inside">
<div name="putaway" groups="stock.group_adv_location" string="Putaway strategies">
@@ -45,6 +46,7 @@
<field name="name">product.product.form.putaway</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="groups_id" eval="[(4,ref('stock.group_stock_manager'))]"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='putaway_categ']" position="before">
<group name="putaway_products" string="Put Away Strategies by products"
@@ -59,5 +61,4 @@
</xpath>
</field>
</record>
</odoo>