Skip to content

Commit

Permalink
[IMP] product_brand: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thaolt99 committed Nov 30, 2023
1 parent dc4eb7e commit ed322e3
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 92 deletions.
77 changes: 40 additions & 37 deletions product_brand/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Product Brand Manager
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbrand-lightgray.png?logo=github
:target: https://github.com/OCA/brand/tree/16.0/product_brand
:target: https://github.com/OCA/brand/tree/17.0/product_brand
:alt: OCA/brand
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-product_brand
:target: https://translation.odoo-community.org/projects/brand-17-0/brand-17-0-product_brand
: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/brand&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/brand&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand All @@ -40,49 +40,51 @@ Usage

To create a new brand:

#. Go to **Sales > Configuration > Products > Product Brands**.
#. You can set its logo, associate a partner and add a description.
1. Go to **Sales > Configuration > Products > Product Brands**.
2. You can set its logo, associate a partner and add a description.

*Note:* You must have the **Sales** addon installed.

To add a product to a brand:

#. Go to the product itself and edit.
#. Below the product's name there is a Brand field where you can pick the one
the product belongs to.
1. Go to the product itself and edit.
2. Below the product's name there is a Brand field where you can pick
the one the product belongs to.

To see the sales report based on brand dimension:

#. Go to **Sales > Reporting > Sales**.
#. There you can **Group by** brand or add it as a dimension in the pivot view.
1. Go to **Sales > Reporting > Sales**.
2. There you can **Group by** brand or add it as a dimension in the
pivot view.

To see the invoice report based on brand dimension:

#. Go to **Invoicing > Reporting > Management > Invoice Analysis**.
#. There you can **Group by** brand or add it as a dimension in the pivot view.
1. Go to **Invoicing > Reporting > Management > Invoice Analysis**.
2. There you can **Group by** brand or add it as a dimension in the
pivot view.

Known issues / Roadmap
======================

* Add a field with brands associated to a Customer or Supplier on
the Customers/Suppliers Form View.
* Fix smart button alignment in brand form view
- Add a field with brands associated to a Customer or Supplier on the
Customers/Suppliers Form View.
- Fix smart button alignment in brand form view

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/brand/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/brand/issues/new?body=module:%20product_brand%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/brand/issues/new?body=module:%20product_brand%0Aversion:%2017.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
~~~~~~~
-------

* NetAndCo
* Akretion
Expand All @@ -93,32 +95,33 @@ Authors
* Kaushal Prajapati

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

* Mathieu Lemercier <mathieu@netandco.net>
* Franck Bret <franck@netandco.net>
* Seraphine Lantible <s.lantible@gmail.com>
* Gunnar Wagner <vrms@netcologne.de>
* Leonardo Donelli <donelli@webmonks.it>
* Serpent Consulting Services Pvt. Ltd. <jay.vora@serpentcs.com>
* Marcelo Pickler <loxamir@gmail.com>
* Andrius Laukavičius <ala@boolit.eu> (Boolit)
* Daniel Campos <danielcampos@avanzosc.es>
* `Tecnativa <https://www.tecnativa.com>`_
- Mathieu Lemercier <mathieu@netandco.net>
- Franck Bret <franck@netandco.net>
- Seraphine Lantible <s.lantible@gmail.com>
- Gunnar Wagner <vrms@netcologne.de>
- Leonardo Donelli <donelli@webmonks.it>
- Serpent Consulting Services Pvt. Ltd. <jay.vora@serpentcs.com>
- Marcelo Pickler <loxamir@gmail.com>
- Andrius Laukavičius <ala@boolit.eu> (Boolit)
- Daniel Campos <danielcampos@avanzosc.es>
- `Tecnativa <https://www.tecnativa.com>`__

* David Vidal
* João Marques
- David Vidal
- João Marques

* Kaushal Prajapati <kbprajapati@live.com>
* `Jarsa <https://www.jarsa.com>`_
- Kaushal Prajapati <kbprajapati@live.com>
- `Jarsa <https://www.jarsa.com>`__

* Alan Ramos
* `NuoBiT Solutions <https://www.nuobit.com>`_
- Alan Ramos

* Eric Antones <eantones@nuobit.com>
- `NuoBiT Solutions <https://www.nuobit.com>`__

- Eric Antones <eantones@nuobit.com>

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

This module is maintained by the OCA.

Expand All @@ -130,6 +133,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/brand <https://github.com/OCA/brand/tree/16.0/product_brand>`_ project on GitHub.
This module is part of the `OCA/brand <https://github.com/OCA/brand/tree/17.0/product_brand>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions product_brand/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
17 changes: 17 additions & 0 deletions product_brand/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- Mathieu Lemercier \<<mathieu@netandco.net>\>
- Franck Bret \<<franck@netandco.net>\>
- Seraphine Lantible \<<s.lantible@gmail.com>\>
- Gunnar Wagner \<<vrms@netcologne.de>\>
- Leonardo Donelli \<<donelli@webmonks.it>\>
- Serpent Consulting Services Pvt. Ltd. \<<jay.vora@serpentcs.com>\>
- Marcelo Pickler \<<loxamir@gmail.com>\>
- Andrius Laukavičius \<<ala@boolit.eu>\> (Boolit)
- Daniel Campos \<<danielcampos@avanzosc.es>\>
- [Tecnativa](https://www.tecnativa.com)
- David Vidal
- João Marques
- Kaushal Prajapati \<<kbprajapati@live.com>\>
- [Jarsa](https://www.jarsa.com)
- Alan Ramos
- [NuoBiT Solutions](https://www.nuobit.com)
- Eric Antones \<<eantones@nuobit.com>\>
21 changes: 0 additions & 21 deletions product_brand/readme/CONTRIBUTORS.rst

This file was deleted.

File renamed without changes.
3 changes: 3 additions & 0 deletions product_brand/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Add a field with brands associated to a Customer or Supplier on the
Customers/Suppliers Form View.
- Fix smart button alignment in brand form view
3 changes: 0 additions & 3 deletions product_brand/readme/ROADMAP.rst

This file was deleted.

24 changes: 24 additions & 0 deletions product_brand/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
To create a new brand:

1. Go to **Sales \> Configuration \> Products \> Product Brands**.
2. You can set its logo, associate a partner and add a description.

*Note:* You must have the **Sales** addon installed.

To add a product to a brand:

1. Go to the product itself and edit.
2. Below the product's name there is a Brand field where you can pick
the one the product belongs to.

To see the sales report based on brand dimension:

1. Go to **Sales \> Reporting \> Sales**.
2. There you can **Group by** brand or add it as a dimension in the
pivot view.

To see the invoice report based on brand dimension:

1. Go to **Invoicing \> Reporting \> Management \> Invoice Analysis**.
2. There you can **Group by** brand or add it as a dimension in the
pivot view.
22 changes: 0 additions & 22 deletions product_brand/readme/USAGE.rst

This file was deleted.

20 changes: 11 additions & 9 deletions product_brand/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h1 class="title">Product Brand Manager</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:cc6c738f1a0965738f7b03f5df4de2ded7be5cd39e1185baa7822c484540cb16
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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/brand/tree/16.0/product_brand"><img alt="OCA/brand" src="https://img.shields.io/badge/github-OCA%2Fbrand-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-product_brand"><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/brand&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><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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/brand/tree/17.0/product_brand"><img alt="OCA/brand" src="https://img.shields.io/badge/github-OCA%2Fbrand-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/brand-17-0/brand-17-0-product_brand"><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/brand&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 allows odoo users to easily manage product brands.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand All @@ -396,25 +396,27 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>To add a product to a brand:</p>
<ol class="arabic simple">
<li>Go to the product itself and edit.</li>
<li>Below the product’s name there is a Brand field where you can pick the one
the product belongs to.</li>
<li>Below the product’s name there is a Brand field where you can pick
the one the product belongs to.</li>
</ol>
<p>To see the sales report based on brand dimension:</p>
<ol class="arabic simple">
<li>Go to <strong>Sales &gt; Reporting &gt; Sales</strong>.</li>
<li>There you can <strong>Group by</strong> brand or add it as a dimension in the pivot view.</li>
<li>There you can <strong>Group by</strong> brand or add it as a dimension in the
pivot view.</li>
</ol>
<p>To see the invoice report based on brand dimension:</p>
<ol class="arabic simple">
<li>Go to <strong>Invoicing &gt; Reporting &gt; Management &gt; Invoice Analysis</strong>.</li>
<li>There you can <strong>Group by</strong> brand or add it as a dimension in the pivot view.</li>
<li>There you can <strong>Group by</strong> brand or add it as a dimension in the
pivot view.</li>
</ol>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>Add a field with brands associated to a Customer or Supplier on
the Customers/Suppliers Form View.</li>
<li>Add a field with brands associated to a Customer or Supplier on the
Customers/Suppliers Form View.</li>
<li>Fix smart button alignment in brand form view</li>
</ul>
</div>
Expand All @@ -423,7 +425,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/brand/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/brand/issues/new?body=module:%20product_brand%0Aversion:%2016.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/brand/issues/new?body=module:%20product_brand%0Aversion:%2017.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 Down Expand Up @@ -475,7 +477,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">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>This module is part of the <a class="reference external" href="https://github.com/OCA/brand/tree/16.0/product_brand">OCA/brand</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/brand/tree/17.0/product_brand">OCA/brand</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

0 comments on commit ed322e3

Please sign in to comment.