Skip to content

Commit

Permalink
Merge PR #1577 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Apr 16, 2024
2 parents 02097fb + 3c7b699 commit 9e373eb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
6 changes: 5 additions & 1 deletion product_pricelist_direct_print/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Product Pricelist Direct Print
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bbbf555a680110a067dd5c0c1ab882d2762a649195f8548a47118cec42144d8f
!! source digest: sha256:02b2fb653bde2ced42f189f9c21cdc2bc6df51c74a2fa1de9203c52e56922647
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down Expand Up @@ -119,6 +119,10 @@ Contributors

* Sylvain LE GAL <https://twitter.com/legalsylvain>

* `FactorLibre <https://factorlibre.com/>`_:

* Juan Carlos Bonilla

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

Expand Down
4 changes: 4 additions & 0 deletions product_pricelist_direct_print/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
* `GRAP <http://www.grap.coop/>`_:

* Sylvain LE GAL <https://twitter.com/legalsylvain>

* `FactorLibre <https://factorlibre.com/>`_:

* Juan Carlos Bonilla
6 changes: 5 additions & 1 deletion product_pricelist_direct_print/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Product Pricelist Direct Print</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bbbf555a680110a067dd5c0c1ab882d2762a649195f8548a47118cec42144d8f
!! source digest: sha256:02b2fb653bde2ced42f189f9c21cdc2bc6df51c74a2fa1de9203c52e56922647
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/product-attribute/tree/16.0/product_pricelist_direct_print"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_direct_print"><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/product-attribute&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Print price list from menu option, product templates, products variants or
Expand Down Expand Up @@ -483,6 +483,10 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<li>Sylvain LE GAL &lt;<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>&gt;</li>
</ul>
</li>
<li><a class="reference external" href="https://factorlibre.com/">FactorLibre</a>:<ul>
<li>Juan Carlos Bonilla</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ def _onchange_partner_ids(self):
if not self.partner_count:
self.last_ordered_products = False

@api.onchange("show_variants")
def _onchange_show_variants(self):
if not self.show_variants:
self.show_attribute_values = False

@api.model
def default_get(self, fields):
res = super().default_get(fields)
Expand Down

0 comments on commit 9e373eb

Please sign in to comment.