Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 175 additions & 0 deletions product_pricelist_brand_direct_print/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
====================================
Product Pricelist Brand Direct Print
====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dbb3a29e499c06d4760eb99e07f64182b28014250307febd35d1a1207d9a377a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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/18.0/product_pricelist_brand_direct_print
:alt: OCA/brand
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/brand-18-0/brand-18-0-product_pricelist_brand_direct_print
: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=18.0
:alt: Try me on Runboat

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

This module adds brand selection to the product_pricelist_direct_print
wizard. Allowing you to generate branded pricelist PDFs.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

This module was developed because (sub)contractors wanted to sent
branded pricelists to their clients.

It will be useful for you if your business provides (sub)contracted
services under different brands.

If you need this module for those reasons, these might interest you too:

- brand_report_qweb_pdf_watermark

Installation
============

To install this module, you need to:

1. Place the ``product_pricelist_brand_print`` module in your Odoo
addons path.
2. Install the ``product_pricelist_brand_print`` module in Odoo.

Usage
=====

To use this module, you need to:

1. **Access the Pricelist Printing Wizard:**

- Navigate to the area in Odoo where you typically generate product
pricelists (e.g., Sales > Products > Print Price List).
- Initiate the process to print a pricelist. This will usually open
a wizard or dialog provided by the
``product_pricelist_direct_print`` module.

2. **Select a Brand (Optional):**

- In the pricelist printing wizard, you will now see a new field
labeled "Brand".
- If you want to include brand information in the generated PDF,
select the desired brand from the dropdown menu.
- If you leave this field empty, the report will be generated using
the standard layout.

3. **Configure Other Print Options:**

- Set any other options available in the wizard, such as which
information to include (e.g., cost price, Sales Description),
which products to include, etc.

4. **Generate the PDF:**

- Click the "Print" button to create the pricelist report.

Output
------

- **With a Selected Brand:** If you selected a brand, the generated PDF
will include brand-specific information, such as the brand's logo,
name, and any other details configured in the
``brand_external_report_layout`` module.
- **Without a Selected Brand:** If you did not select a brand, the PDF
will be generated using the standard layout defined in the company
settings.

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

- Send branded e-mails from pricelist wizard.

Changelog
=========

18.0.1.0.0 (2025-04-02)
-----------------------

- [ADD] First Release of module.

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_pricelist_brand_direct_print%0Aversion:%2018.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
-------

* O.B.S. Solutions

Contributors
------------

- bosd <[email protected]>

Other credits
-------------

The development of this module has been financially supported by:

- OBS Solutions B.V.

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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-bosd| image:: https://github.com/bosd.png?size=40px
:target: https://github.com/bosd
:alt: bosd

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

|maintainer-bosd|

This module is part of the `OCA/brand <https://github.com/OCA/brand/tree/18.0/product_pricelist_brand_direct_print>`_ 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 product_pricelist_brand_direct_print/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import reports
from . import wizards
33 changes: 33 additions & 0 deletions product_pricelist_brand_direct_print/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2025 OBS Solutions B.V.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)

{
"name": "Product Pricelist Brand Direct Print",
"summary": "This module adds brand selection to the "
"product_pricelist_direct_print wizard."
"Allowing you to generate branded pricelist PDFs.",
"version": "18.0.1.0.0",
"development_status": "Alpha",
"category": "Sales",
"website": "https://github.com/OCA/brand",
"author": "O.B.S. Solutions, Odoo Community Association (OCA)",
"maintainers": ["bosd"],
"license": "AGPL-3",
"application": False,
"installable": True,
"preloadable": True,
"auto_install": False,
"external_dependencies": {
"python": [],
"bin": [],
},
"depends": [
"product_pricelist_direct_print",
"brand",
"brand_external_report_layout",
],
"data": [
"wizards/product_pricelist_print_view.xml",
"reports/report_product_pricelist.xml",
],
}
Empty file.
3 changes: 3 additions & 0 deletions product_pricelist_brand_direct_print/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
8 changes: 8 additions & 0 deletions product_pricelist_brand_direct_print/readme/CONTEXT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

This module was developed because (sub)contractors wanted to sent branded pricelists to their clients.

It will be useful for you if your business provides (sub)contracted services under different brands.

If you need this module for those reasons, these might interest you too:

- brand_report_qweb_pdf_watermark
2 changes: 2 additions & 0 deletions product_pricelist_brand_direct_print/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

- bosd \<[email protected]>
4 changes: 4 additions & 0 deletions product_pricelist_brand_direct_print/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

The development of this module has been financially supported by:

- OBS Solutions B.V.
2 changes: 2 additions & 0 deletions product_pricelist_brand_direct_print/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module adds brand selection to the product_pricelist_direct_print wizard. Allowing you to generate branded pricelist PDFs.

3 changes: 3 additions & 0 deletions product_pricelist_brand_direct_print/readme/HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 18.0.1.0.0 (2025-04-02)

- [ADD] First Release of module.
5 changes: 5 additions & 0 deletions product_pricelist_brand_direct_print/readme/INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

To install this module, you need to:

1. Place the `product_pricelist_brand_print` module in your Odoo addons path.
2. Install the `product_pricelist_brand_print` module in Odoo.
2 changes: 2 additions & 0 deletions product_pricelist_brand_direct_print/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

- Send branded e-mails from pricelist wizard.
22 changes: 22 additions & 0 deletions product_pricelist_brand_direct_print/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

To use this module, you need to:

1. **Access the Pricelist Printing Wizard:**
* Navigate to the area in Odoo where you typically generate product pricelists (e.g., Sales > Products > Print Price List).
* Initiate the process to print a pricelist. This will usually open a wizard or dialog provided by the `product_pricelist_direct_print` module.

2. **Select a Brand (Optional):**
* In the pricelist printing wizard, you will now see a new field labeled "Brand".
* If you want to include brand information in the generated PDF, select the desired brand from the dropdown menu.
* If you leave this field empty, the report will be generated using the standard layout.

3. **Configure Other Print Options:**
* Set any other options available in the wizard, such as which information to include (e.g., cost price, Sales Description), which products to include, etc.

4. **Generate the PDF:**
* Click the "Print" button to create the pricelist report.

## Output

* **With a Selected Brand:** If you selected a brand, the generated PDF will include brand-specific information, such as the brand's logo, name, and any other details configured in the `brand_external_report_layout` module.
* **Without a Selected Brand:** If you did not select a brand, the PDF will be generated using the standard layout defined in the company settings.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<odoo>
<record id="product_pricelist_print_brand_report" model="ir.ui.view">
<field name="name">product.pricelist.print.brand.report</field>
<field name="model">product.pricelist.print</field>
<field
name="inherit_id"
ref="product_pricelist_direct_print.report_product_pricelist_document"
/>
<field name="arch" type="xml">
<xpath expr="//span[@t-field='pricelist.currency_id']" position="after">
<field name="brand_id" />
</xpath>
</field>
</record>
</odoo>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading