[MIG] stock_request_direction: Migration to 13.0

This commit is contained in:
ps-tubtim
2020-10-16 18:13:23 +07:00
committed by Freni Patel
parent d6c008f8ad
commit b196f634cc
7 changed files with 36 additions and 34 deletions

View File

@@ -14,13 +14,13 @@ Stock Requests Direction
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3 :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github .. |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_request_direction :target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_request_direction
:alt: OCA/stock-logistics-warehouse :alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |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_request_direction :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_request_direction
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/153/12.0 :target: https://runbot.odoo-community.org/runbot/153/13.0
:alt: Try me on Runbot :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -63,7 +63,7 @@ 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. 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 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_request_direction%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_request_direction%0Aversion:%2013.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. Do not contact contributors directly about support or help with technical issues.
@@ -83,6 +83,10 @@ Contributors
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com> * Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
* Steve Campbell <scampbell@opensourceintegrators.com> * Steve Campbell <scampbell@opensourceintegrators.com>
* `Ecosoft <http://ecosoft.co.th>`__:
* Pimolnat Suntian <pimolnats@ecosoft.co.th>
Maintainers Maintainers
~~~~~~~~~~~ ~~~~~~~~~~~
@@ -104,6 +108,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-max3903| |maintainer-max3903|
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_request_direction>`_ project on GitHub. This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_request_direction>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -7,7 +7,7 @@
"version": "13.0.1.0.0", "version": "13.0.1.0.0",
"license": "LGPL-3", "license": "LGPL-3",
"website": "https://github.com/OCA/stock-logistics-warehouse", "website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Open Source Integrators, " "Odoo Community Association (OCA)", "author": "Open Source Integrators, Odoo Community Association (OCA)",
"category": "Warehouse Management", "category": "Warehouse Management",
"depends": ["stock_request"], "depends": ["stock_request"],
"data": [ "data": [

View File

@@ -2,3 +2,7 @@
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com> * Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
* Steve Campbell <scampbell@opensourceintegrators.com> * Steve Campbell <scampbell@opensourceintegrators.com>
* `Ecosoft <http://ecosoft.co.th>`__:
* Pimolnat Suntian <pimolnats@ecosoft.co.th>

View File

@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !! !! 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/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_request_direction"><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_request_direction"><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><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/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_request_direction"><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-13-0/stock-logistics-warehouse-13-0-stock_request_direction"><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/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module was written to allow users to request products to be transferred <p>This module was written to allow users to request products to be transferred
from or to your warehouses. They can specify the direction and dont have to from or to your warehouses. They can specify the direction and dont have to
bother selecting the inventory location.</p> bother selecting the inventory location.</p>
@@ -414,7 +414,7 @@ also cancelled.</p>
<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. 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 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_request_direction%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_request_direction%0Aversion:%2013.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> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@@ -433,6 +433,10 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<li>Steve Campbell &lt;<a class="reference external" href="mailto:scampbell&#64;opensourceintegrators.com">scampbell&#64;opensourceintegrators.com</a>&gt;</li> <li>Steve Campbell &lt;<a class="reference external" href="mailto:scampbell&#64;opensourceintegrators.com">scampbell&#64;opensourceintegrators.com</a>&gt;</li>
</ul> </ul>
</li> </li>
<li><a class="reference external" href="http://ecosoft.co.th">Ecosoft</a>:<ul>
<li>Pimolnat Suntian &lt;<a class="reference external" href="mailto:pimolnats&#64;ecosoft.co.th">pimolnats&#64;ecosoft.co.th</a>&gt;</li>
</ul>
</li>
</ul> </ul>
</div> </div>
<div class="section" id="maintainers"> <div class="section" id="maintainers">
@@ -444,7 +448,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.png?size=40px" /></a></p> <p><a class="reference external" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.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_request_direction">OCA/stock-logistics-warehouse</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_request_direction">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> <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> </div>

View File

@@ -1,15 +1,13 @@
<odoo> <odoo>
<!-- Copyright (c) 2019 Open Source Integrators <!-- Copyright (c) 2019 Open Source Integrators
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). --> License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). -->
<record model="res.config.settings" id="res_config_settings_direction"> <record model="res.config.settings" id="res_config_settings_direction">
<field name="stock_request_allow_virtual_loc" eval="1"/> <field name="stock_request_allow_virtual_loc" eval="1" />
</record> </record>
<function model="res.config.settings" name="execute"> <function model="res.config.settings" name="execute">
<!-- ids = --> <value eval="[ref('stock_request_direction.res_config_settings_direction')]"/> <value
<!-- context = --> <value eval="{}"/> model="res.config.settings"
search="[('id', '=', ref('stock_request_direction.res_config_settings_direction'))]"
/>
</function> </function>
</odoo> </odoo>

View File

@@ -1,26 +1,23 @@
<odoo> <odoo>
<!-- Copyright (c) 2019 Open Source Integrators <!-- Copyright (c) 2019 Open Source Integrators
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). --> License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). -->
<record id="stock_request_order_tree" model="ir.ui.view"> <record id="stock_request_order_tree" model="ir.ui.view">
<field name="name">stock.request.order.tree</field> <field name="name">stock.request.order.tree</field>
<field name="model">stock.request.order</field> <field name="model">stock.request.order</field>
<field name="inherit_id" ref="stock_request.stock_request_order_tree"/> <field name="inherit_id" ref="stock_request.stock_request_order_tree" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="warehouse_id" position="after"> <field name="warehouse_id" position="after">
<field name="direction"/> <field name="direction" />
</field> </field>
</field> </field>
</record> </record>
<record id="stock_request_order_form" model="ir.ui.view"> <record id="stock_request_order_form" model="ir.ui.view">
<field name="name">stock.request.order.form</field> <field name="name">stock.request.order.form</field>
<field name="model">stock.request.order</field> <field name="model">stock.request.order</field>
<field name="inherit_id" ref="stock_request.stock_request_order_form"/> <field name="inherit_id" ref="stock_request.stock_request_order_form" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='warehouse_id']" position="after"> <xpath expr="//field[@name='warehouse_id']" position="after">
<field name="direction" required="1"/> <field name="direction" required="1" />
</xpath> </xpath>
<xpath expr="//field[@name='stock_request_ids']" position="attributes"> <xpath expr="//field[@name='stock_request_ids']" position="attributes">
<attribute name="context">{ <attribute name="context">{
@@ -35,9 +32,8 @@
}</attribute> }</attribute>
</xpath> </xpath>
<xpath expr="//tree/field[@name='warehouse_id']" position="after"> <xpath expr="//tree/field[@name='warehouse_id']" position="after">
<field name="direction" invisible="1"/> <field name="direction" invisible="1" />
</xpath> </xpath>
</field> </field>
</record> </record>
</odoo> </odoo>

View File

@@ -1,28 +1,24 @@
<odoo> <odoo>
<!-- Copyright (c) 2019 Open Source Integrators <!-- Copyright (c) 2019 Open Source Integrators
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). --> License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). -->
<record id="view_stock_request_tree" model="ir.ui.view"> <record id="view_stock_request_tree" model="ir.ui.view">
<field name="name">stock.request.tree</field> <field name="name">stock.request.tree</field>
<field name="model">stock.request</field> <field name="model">stock.request</field>
<field name="inherit_id" ref="stock_request.view_stock_request_tree"/> <field name="inherit_id" ref="stock_request.view_stock_request_tree" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='warehouse_id']" position="after"> <xpath expr="//field[@name='warehouse_id']" position="after">
<field name="direction"/> <field name="direction" />
</xpath> </xpath>
</field> </field>
</record> </record>
<record id="view_stock_request_form" model="ir.ui.view"> <record id="view_stock_request_form" model="ir.ui.view">
<field name="name">stock.request.form</field> <field name="name">stock.request.form</field>
<field name="model">stock.request</field> <field name="model">stock.request</field>
<field name="inherit_id" ref="stock_request.view_stock_request_form"/> <field name="inherit_id" ref="stock_request.view_stock_request_form" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='warehouse_id']" position="after"> <xpath expr="//field[@name='warehouse_id']" position="after">
<field name="direction"/> <field name="direction" />
</xpath> </xpath>
</field> </field>
</record> </record>
</odoo> </odoo>