Skip to content

Commit

Permalink
[MIG] stock_request_partner: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FernizaM22 committed Dec 1, 2024
1 parent 919d6c3 commit 139f1a8
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 55 deletions.
36 changes: 18 additions & 18 deletions stock_request_partner/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ Stock Request Partner
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-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/17.0/stock_request_partner
:target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_request_partner
: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-17-0/stock-logistics-warehouse-17-0-stock_request_partner
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_request_partner
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=17.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=14.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module was written to allow to define partner in stock request and
pass the partner to the related pickings.
This module was written to allow to define partner in stock request and pass the partner
to the related pickings.

**Table of contents**

Expand All @@ -41,41 +41,41 @@ Usage

## Creation

- Go to 'Stock Requests / Stock Requests' and create a new Request.
- Indicate a partner, product, quantity and location.
- Press 'Confirm'.
* Go to 'Stock Requests / Stock Requests' and create a new Request.
* Indicate a partner, product, quantity and location.
* Press 'Confirm'.

In case that transfers are created, if the partner is set, a procurement
group will be created automatically with the related partner and it will
be propagated to the related transfers.
In case that transfers are created, if the partner is set, a procurement group
will be created automatically with the related partner and it will be propagated
to the related transfers.

Bug Tracker
===========

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_request_partner%0Aversion:%2017.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_partner%0Aversion:%2014.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
-------
~~~~~~~

* Jarsa

Contributors
------------
~~~~~~~~~~~~

- `Jarsa <https://www.jarsa.com.mx>`__
* `Jarsa <https://www.jarsa.com.mx>`_

- Alan Ramos <alan.ramos@jarsa.com.mx>
* Alan Ramos <alan.ramos@jarsa.com.mx>

Maintainers
-----------
~~~~~~~~~~~

This module is maintained by the OCA.

Expand All @@ -87,6 +87,6 @@ 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.

This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_request_partner>`_ project on GitHub.
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_request_partner>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion stock_request_partner/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Stock Request Partner",
"summary": "Allow to define partner in Stock Request",
"version": "14.0.1.0.1",
"version": "17.0.1.0.0",
"license": "LGPL-3",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Jarsa, Odoo Community Association (OCA)",
Expand Down
2 changes: 1 addition & 1 deletion stock_request_partner/models/stock_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class StockRequest(models.Model):
_inherit = "stock.request"

partner_id = fields.Many2one(
"res.partner", states={"draft": [("readonly", False)]}, readonly=True
"res.partner",
)

def _prepare_procurement_values(self, group_id=False):
Expand Down
2 changes: 1 addition & 1 deletion stock_request_partner/models/stock_request_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class StockRequestOrder(models.Model):
_inherit = "stock.request.order"

partner_id = fields.Many2one(
"res.partner", states={"draft": [("readonly", False)]}, readonly=True
"res.partner",
)

@api.onchange("partner_id")
Expand Down
3 changes: 0 additions & 3 deletions stock_request_partner/pyproject.toml

This file was deleted.

2 changes: 0 additions & 2 deletions stock_request_partner/readme/CONTRIBUTORS.md

This file was deleted.

3 changes: 3 additions & 0 deletions stock_request_partner/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* `Jarsa <https://www.jarsa.com.mx>`_

* Alan Ramos <alan.ramos@jarsa.com.mx>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This module was written to allow to define partner in stock request and
pass the partner to the related pickings.
This module was written to allow to define partner in stock request and pass the partner
to the related pickings.
9 changes: 0 additions & 9 deletions stock_request_partner/readme/USAGE.md

This file was deleted.

9 changes: 9 additions & 0 deletions stock_request_partner/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Creation

* Go to 'Stock Requests / Stock Requests' and create a new Request.
* Indicate a partner, product, quantity and location.
* Press 'Confirm'.

In case that transfers are created, if the partner is set, a procurement group
will be created automatically with the related partner and it will be propagated
to the related transfers.
28 changes: 13 additions & 15 deletions stock_request_partner/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand All @@ -8,11 +9,10 @@

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -275,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: gray; } /* line numbers */
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -301,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic, pre.problematic {
span.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -369,9 +369,9 @@ <h1 class="title">Stock Request Partner</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:51e017104794b104478b2a18b530dca0521c38401a6f6e50a98c05dc29cdbe4a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_request_partner"><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 image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_request_partner"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module was written to allow to define partner in stock request and
pass the partner to the related pickings.</p>
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_request_partner"><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 image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_request_partner"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module was written to allow to define partner in stock request and pass the partner
to the related pickings.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -393,16 +393,16 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<li>Indicate a partner, product, quantity and location.</li>
<li>Press ‘Confirm’.</li>
</ul>
<p>In case that transfers are created, if the partner is set, a procurement
group will be created automatically with the related partner and it will
be propagated to the related transfers.</p>
<p>In case that transfers are created, if the partner is set, a procurement group
will be created automatically with the related partner and it will be propagated
to the related transfers.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">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>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash 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_partner%0Aversion:%2017.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_partner%0Aversion:%2014.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">
Expand All @@ -425,13 +425,11 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">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>
<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>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_request_partner">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/14.0/stock_request_partner">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>
Expand Down
2 changes: 1 addition & 1 deletion stock_request_partner/tests/test_stock_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class TestStockRequestPartner(TestStockRequest):
def setUp(self):
super(TestStockRequestPartner, self).setUp()
super().setUp()
self.partner = self.env.ref("base.res_partner_12")
self.partner2 = self.env.ref("base.res_partner_2")

Expand Down
2 changes: 1 addition & 1 deletion stock_request_partner/views/stock_request_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="inherit_id" ref="stock_request.stock_request_order_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='expected_date']" position="before">
<field name="partner_id" />
<field name="partner_id" invisible="state != 'draft'" />
</xpath>
<xpath expr="//field[@name='stock_request_ids']" position="attributes">
<attribute name="context">{
Expand Down
2 changes: 1 addition & 1 deletion stock_request_partner/views/stock_request_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="inherit_id" ref="stock_request.view_stock_request_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="before">
<field name="partner_id" />
<field name="partner_id" invisible="state != 'draft'" />
</xpath>
</field>
</record>
Expand Down

0 comments on commit 139f1a8

Please sign in to comment.