Skip to content

Commit

Permalink
Merge PR OCA#2112 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 7, 2023
2 parents 0d3d71b + ca4c980 commit 490579d
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 13 deletions.
27 changes: 23 additions & 4 deletions purchase_order_partner_manual_rank/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Purchase Order Partner Manual Rank
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ea9c74850d37126c620c9e642df5d1846d1afacd8063f54d1ed612013b5dcef7
!! source digest: sha256:983a0526a1d8ea88caa40e390c1d04a86d2275c598bc53b02b38cec1229f1cd2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand All @@ -28,8 +28,10 @@ Purchase Order Partner Manual Rank

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

This module adds a filter on purchase order vendor
to show only partners that are suppliers as per module partner_manual_rank behavior.
This module adds a filter on the "Vendor" field of the Purchase Order
to show only partners marked as suppliers, as per module partner_manual_rank behavior.

The same filter is also applied to the Vendor field in Vendor Pricelists.

**Table of contents**

Expand All @@ -41,7 +43,8 @@ Usage

Mark a partner as a supplier using the "Is a supplier" boolean.

In POs, only partners with this field enabled are selectable as Vendors.
In Purchase Orders and Vendor Pricelists,
only partners with this field enabled are selectable as Vendors.

Bug Tracker
===========
Expand All @@ -66,8 +69,13 @@ Contributors
~~~~~~~~~~~~

* PyTech SRL <[email protected]>

* Alessandro Uffreduzzi <[email protected]>

* Ooops404 <[email protected]>

* Francesco Foresti [email protected]

Maintainers
~~~~~~~~~~~

Expand All @@ -81,6 +89,17 @@ 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-aleuffre| image:: https://github.com/aleuffre.png?size=40px
:target: https://github.com/aleuffre
:alt: aleuffre
.. |maintainer-renda-dev| image:: https://github.com/renda-dev.png?size=40px
:target: https://github.com/renda-dev
:alt: renda-dev

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-aleuffre| |maintainer-renda-dev|

This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/14.0/purchase_order_partner_manual_rank>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions purchase_order_partner_manual_rank/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
"partner_manual_rank",
"purchase",
],
"maintainers": ["aleuffre", "renda-dev"],
"author": "PyTech SRL, Ooops404, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/purchase-workflow",
"category": "Purchase Management",
"license": "AGPL-3",
"data": [
"views/product_supplierinfo_views.xml",
"views/purchase_order_views.xml",
],
"demo": [],
Expand Down
5 changes: 5 additions & 0 deletions purchase_order_partner_manual_rank/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
* PyTech SRL <[email protected]>

* Alessandro Uffreduzzi <[email protected]>

* Ooops404 <[email protected]>

* Francesco Foresti [email protected]
6 changes: 4 additions & 2 deletions purchase_order_partner_manual_rank/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
This module adds a filter on purchase order vendor
to show only partners that are suppliers as per module partner_manual_rank behavior.
This module adds a filter on the "Vendor" field of the Purchase Order
to show only partners marked as suppliers, as per module partner_manual_rank behavior.

The same filter is also applied to the Vendor field in Vendor Pricelists.
3 changes: 2 additions & 1 deletion purchase_order_partner_manual_rank/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Mark a partner as a supplier using the "Is a supplier" boolean.

In POs, only partners with this field enabled are selectable as Vendors.
In Purchase Orders and Vendor Pricelists,
only partners with this field enabled are selectable as Vendors.
22 changes: 16 additions & 6 deletions purchase_order_partner_manual_rank/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,12 @@ <h1 class="title">Purchase Order Partner Manual Rank</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ea9c74850d37126c620c9e642df5d1846d1afacd8063f54d1ed612013b5dcef7
!! source digest: sha256:983a0526a1d8ea88caa40e390c1d04a86d2275c598bc53b02b38cec1229f1cd2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/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 image-reference" href="https://github.com/OCA/purchase-workflow/tree/14.0/purchase_order_partner_manual_rank"><img alt="OCA/purchase-workflow" src="https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_order_partner_manual_rank"><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/purchase-workflow&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 adds a filter on purchase order vendor
to show only partners that are suppliers as per module partner_manual_rank behavior.</p>
<p>This module adds a filter on the “Vendor” field of the Purchase Order
to show only partners marked as suppliers, as per module partner_manual_rank behavior.</p>
<p>The same filter is also applied to the Vendor field in Vendor Pricelists.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -388,7 +389,8 @@ <h1 class="title">Purchase Order Partner Manual Rank</h1>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>Mark a partner as a supplier using the “Is a supplier” boolean.</p>
<p>In POs, only partners with this field enabled are selectable as Vendors.</p>
<p>In Purchase Orders and Vendor Pricelists,
only partners with this field enabled are selectable as Vendors.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
Expand All @@ -410,8 +412,14 @@ <h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<ul class="simple">
<li>PyTech SRL &lt;<a class="reference external" href="mailto:info&#64;pytech.it">info&#64;pytech.it</a>&gt;</li>
<li>Ooops404 &lt;<a class="reference external" href="mailto:info&#64;ooops404.com">info&#64;ooops404.com</a>&gt;</li>
<li>PyTech SRL &lt;<a class="reference external" href="mailto:info&#64;pytech.it">info&#64;pytech.it</a>&gt;<ul>
<li>Alessandro Uffreduzzi &lt;<a class="reference external" href="mailto:alessandro.uffreduzzi&#64;pytech.it">alessandro.uffreduzzi&#64;pytech.it</a>&gt;</li>
</ul>
</li>
<li>Ooops404 &lt;<a class="reference external" href="mailto:info&#64;ooops404.com">info&#64;ooops404.com</a>&gt;<ul>
<li>Francesco Foresti <a class="reference external" href="mailto:francesco.foresti&#64;ooops404.com">francesco.foresti&#64;ooops404.com</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand All @@ -421,6 +429,8 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<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 image-reference" href="https://github.com/aleuffre"><img alt="aleuffre" src="https://github.com/aleuffre.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/renda-dev"><img alt="renda-dev" src="https://github.com/renda-dev.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/purchase-workflow/tree/14.0/purchase_order_partner_manual_rank">OCA/purchase-workflow</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>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="product_supplierinfo_form_view" model="ir.ui.view">
<field name="name">product.supplierinfo.form.view</field>
<field name="model">product.supplierinfo</field>
<field name="inherit_id" ref="product.product_supplierinfo_form_view" />
<field name="arch" type="xml">
<field name="name" position="attributes">
<attribute name="domain">[('is_supplier', '=', True)]</attribute>
</field>
</field>
</record>
<record id="product_supplierinfo_tree_view" model="ir.ui.view">
<field name="name">product.supplierinfo.tree.view</field>
<field name="model">product.supplierinfo</field>
<field name="inherit_id" ref="product.product_supplierinfo_tree_view" />
<field name="arch" type="xml">
<field name="name" position="attributes">
<attribute name="domain">[('is_supplier', '=', True)]</attribute>
</field>
</field>
</record>
</odoo>

0 comments on commit 490579d

Please sign in to comment.