Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] product_pricelist_direct print #1860

Open
wants to merge 82 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
f7347a8
[9.0][ADD] product_pricelist_direct_print (#223)
carlosdauden Mar 8, 2017
a8673c6
[IMP] product_pricelist_direct_print: Add order option + change widge…
carlosdauden Feb 23, 2018
c729200
[MIG] product_pricelist_direct_print: Migration to 11.0
chienandalu Jul 18, 2018
449096c
[11.0][FIX] product_pricelist_direct_print: Remove duplicate default …
sergio-teruel Nov 22, 2018
43aa6df
product_pricelist_direct_print: extend module
ernestotejeda Oct 20, 2018
11e7c71
[MIG] product_pricelist_direct_print: Migration to 12.0
alexey-pelykh Dec 4, 2018
2486a30
[IMP] product_pricelist_direct_print: black, isort
sergio-teruel Feb 1, 2020
5910286
[MIG] product_pricelist_direct_print: Migration to v13.0
sergio-teruel Feb 1, 2020
73a570c
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 8, 2020
dae1e35
[MIG] product_pricelist_direct_print: Migration to 14.0
joao-p-marques Dec 9, 2020
83710a1
[IMP] product_pricelist_direct_print: Improve inheritance on get_last…
CarlosRoca13 Feb 25, 2022
f8faa74
[IMP] product_pricelist_direct_print: Improve inheritability
sergio-teruel Jan 11, 2021
bc1c7b5
[IMP] product_pricelist_direct_print: Add summary on report and wizard.
sergio-teruel Jan 11, 2021
03479f0
[IMP] product_pricelist_direct_print: forward port of xlsx and just d…
CarlosRoca13 Feb 4, 2021
dd76d03
[IMP] product_pricelist_direct_print: Date adjusted to the selected l…
CarlosRoca13 Mar 18, 2021
daaafca
[FIX] product_pricelist_direct_print: Error when date is not defined
CarlosRoca13 May 27, 2021
1e696b9
[IMP] product_pricelist_direct_print: Possibility of break by parent …
CarlosRoca13 Jul 15, 2021
2a19f71
[FIX] product_pricelist_direct_print: Revert last changes
carlosdauden Jul 19, 2021
6602de1
[IMP] product_pricelist_direct_print: Add max category level to group…
carlosdauden Jul 28, 2021
b4e6cbe
[FIX] product_pricelist_direct_print: company in report
chienandalu Oct 20, 2021
c713ea8
[FIX] product_pricelist_direct_print: fix date context
chienandalu Oct 28, 2021
c41d6a2
[IMP] product_pricelist_direct_print: Improve inheritance at excel + …
CarlosRoca13 Jan 21, 2022
dec348f
[IMP] product_pricelist_direct_print: Adjust cherry-picks to v14
CarlosRoca13 May 9, 2022
1d15aaf
[IMP] product_pricelist_direct_print: Give formats to add_extra_info …
CarlosRoca13 Jun 21, 2022
79b3ac6
[MIG] product_pricelist_direct_print: Migration to 15.0
CarlosRoca13 Jul 14, 2022
df7550a
[UPD] Update product_pricelist_direct_print.pot
Oct 23, 2022
bb7c0a4
[UPD] README.rst
OCA-git-bot Oct 23, 2022
6fcc215
[IMP] product_pricelist_direct_print: Allow select the language when …
CarlosRoca13 Jun 5, 2023
2c2d76a
[UPD] Update product_pricelist_direct_print.pot
Jun 12, 2023
83e1614
product_pricelist_direct_print 15.0.1.1.0
OCA-git-bot Jun 12, 2023
4c2d4dc
Update translation files
weblate Jun 12, 2023
690bd89
[MIG] product_pricelist_direct_print 16.0 (from 15.0)
legalsylvain Jun 21, 2023
b7cfe0a
[IMP] product_pricelist_direct_print : Possibility to display product…
legalsylvain Jun 22, 2023
b549ddd
[IMP] product_pricelist_direct_print : Possibility to display priceli…
legalsylvain Jun 22, 2023
edbf19b
[IMP] product_pricelist_direct_print : Possibility to group by any pr…
legalsylvain Jun 22, 2023
9dcdb9f
[REF] product_pricelist_direct_print : improve wizard display, groupi…
legalsylvain Jun 22, 2023
3cfea7d
[REF] product_pricelist_direct_print : harmonize fields names : Use o…
legalsylvain Jun 22, 2023
58b770d
[REF] product_pricelist_direct_print : set date as required, simplify…
legalsylvain Jun 22, 2023
da0eb65
[REF] split product_pricelist_direct_print into product_pricelist_dir…
legalsylvain Jun 22, 2023
07722c5
[REF] Add GRAP to credits ; Add legalsylvain as maintainers of produc…
legalsylvain Jun 22, 2023
b2461af
[UPD] Update product_pricelist_direct_print.pot
Jun 23, 2023
07585de
[UPD] README.rst
OCA-git-bot Jun 23, 2023
53572c4
Update translation files
weblate Jun 23, 2023
bf90bc2
Added translation using Weblate (Italian)
dcorio Aug 29, 2023
1e1546e
Translated using Weblate (Spanish)
Ivorra78 Aug 22, 2023
e2ad058
Translated using Weblate (Italian)
dcorio Aug 29, 2023
92fbda1
[UPD] README.rst
OCA-git-bot Sep 3, 2023
a075847
Translated using Weblate (Italian)
francesco-ooops Sep 4, 2023
b639fab
Translated using Weblate (Italian)
mymage Sep 20, 2023
fd81022
[16.0] [FIX] product_pricelist_direct_print: add missing dependency i…
pasculorente Sep 26, 2023
a3fe7af
[BOT] post-merge updates
OCA-git-bot Sep 27, 2023
24e0726
Translated using Weblate (Italian)
dcorio Oct 5, 2023
48fc7de
Update translation files
weblate Oct 9, 2023
eac5536
Translated using Weblate (Italian)
mymage Oct 29, 2023
0d4495a
Translated using Weblate (Italian)
mymage Oct 29, 2023
eccc496
[IMP] product_pricelist_direct_print: test performance improvement
josep-tecnativa Oct 23, 2023
dc35e21
[BOT] post-merge updates
OCA-git-bot Oct 30, 2023
15af4d8
Translated using Weblate (Italian)
mymage Oct 31, 2023
a6db6e4
Added translation using Weblate (Turkish)
Mar 11, 2024
1eed6d9
[FIX] product_pricelist_direct_print: bugfix
suker Apr 11, 2024
96f102c
[BOT] post-merge updates
OCA-git-bot Apr 16, 2024
b7f3433
[FIX] product_pricelist_direct_print: fix bug 'product.pricelist.prin…
trisdoan May 14, 2024
5d4a63f
[BOT] post-merge updates
OCA-git-bot May 14, 2024
889196d
[FIX] product_pricelist_direct_print: Error when display wizard witho…
CarlosRoca13 Jun 14, 2024
d662b4a
[BOT] post-merge updates
OCA-git-bot Jun 14, 2024
d8439bb
[FIX] product_pricelist_direct_print : Prevent access error if a user…
legalsylvain Jun 14, 2024
dcdbe69
[UPD] Update product_pricelist_direct_print.pot
Jun 14, 2024
34dfc2c
[BOT] post-merge updates
OCA-git-bot Jun 14, 2024
23cd812
Update translation files
weblate Jun 14, 2024
7af4a1e
[IMP] product_pricelist_direct_print: printing a pricelist and select…
chaule97 Jul 4, 2024
0e716e2
[UPD] Update product_pricelist_direct_print.pot
Jul 8, 2024
5b0073d
[BOT] post-merge updates
OCA-git-bot Jul 8, 2024
4d02dec
Update translation files
weblate Jul 8, 2024
e7b08ea
Translated using Weblate (Italian)
mymage Jul 9, 2024
14cd194
[MIG] product_pricelist_direct_print: Migration to 17.0
therbin200 Nov 26, 2024
5793a41
[IMP] product_pricelist_direct_print: pre-commit auto fixes
bosd Jan 23, 2025
2e5c03b
[IMP] product_pricelist_direct_print: pre-commit execution
bosd Jan 23, 2025
d16661b
[MIG] product_pricelist_direct_print: Migration to 18.0
bosd Jan 23, 2025
828c6b5
[IMP] product_pricelist_direct_print: Add advanced print button
bosd Feb 2, 2025
a28fc24
product_pricelist_direct_print: Add test dep. product_assortment
bosd Feb 2, 2025
57b3eaa
[IMP] product_pricelist_direct_print: Add option to show Sales Descri…
bosd Feb 2, 2025
7c8dd2d
[FIX] product_pricelist_direct_print: typo product_pricelist_print_view
bosd Feb 2, 2025
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
164 changes: 164 additions & 0 deletions product_pricelist_direct_print/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
==============================
Product Pricelist Direct Print
==============================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/18.0/product_pricelist_direct_print
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_pricelist_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/product-attribute&target_branch=18.0
:alt: Try me on Runboat

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

Print price list from menu option, product templates, products variants
or price lists

**Note:**

- Odoo provides a similar feature, but with limited functionality.
- If you want to have Price List exported in XLSX format, install the
``product_pricelist_direct_print_xlsx`` OCA module present in the
same repository.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

1. Go to *Apps* and install *Sales*
2. Go to *Sales > Configuration > Settings*
3. Scroll to *Pricing*
4. Enable 'Pricelists'.

Users will need *Advanced Pricelists* to access the menus:

1. Enable developer mode
2. Go to *Settings > Users & Companies > Users*
3. Create or Edit a record
4. Scroll to *Technical Settings*
5. Enable *Advanced Pricelists*

Usage
=====

To use this module, you have several options:

1. Go to *Sales > Products > Print Price List*

2. Go to *Sales > Products > Products*

- Select products in list view
- Press *Action > Price List*

3. Go to *Sales > Products > Product Variants*

- Select products in list view
- Press *Action > Price List*

4. Go to *Sales > Orders > Customers*

- Select customers in list view
- Press *Action > Send customer pricelist by EMail*

|image1|

.. |image1| image:: https://raw.githubusercontent.com/OCA/product-attribute/18.0/product_pricelist_direct_print/static/description/wizard_form.png

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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/product-attribute/issues/new?body=module:%20product_pricelist_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
-------

* Tecnativa
* GRAP

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

- `Tecnativa <https://www.tecnativa.com>`__:

- Carlos Dauden
- David Vidal
- Sergio Teruel
- João Marques
- Carlos Roca

- `CorporateHub <https://corporatehub.eu/>`__:

- Alexey Pelykh <[email protected]>

- `GRAP <http://www.grap.coop/>`__:

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

- `FactorLibre <https://factorlibre.com/>`__:

- Juan Carlos Bonilla

- `Trobz <https://trobz.com/>`__:

- Tris Doan
- Chau Le

- `Apik <https://apik.cloud/>`__:

- Thomas Herbin

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

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

|maintainer-legalsylvain|

This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/18.0/product_pricelist_direct_print>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_pricelist_direct_print/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizards
21 changes: 21 additions & 0 deletions product_pricelist_direct_print/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2017 Tecnativa - Carlos Dauden
# Copyright 2020 Tecnativa - João Marques
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Product Pricelist Direct Print",
"summary": "Print price list from menu option, product templates, "
"products variants or price lists",
"version": "18.0.1.0.0",
"category": "Product",
"website": "https://github.com/OCA/product-attribute",
"author": "Tecnativa, GRAP, Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"],
"license": "AGPL-3",
"depends": ["sale"],
"data": [
"security/ir.model.access.csv",
"reports/report_product_pricelist.xml",
"data/mail_template_data.xml",
"wizards/product_pricelist_print_view.xml",
],
}
50 changes: 50 additions & 0 deletions product_pricelist_direct_print/data/mail_template_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-->
<odoo noupdate="1">
<!--Email template -->
<record id="email_template_edi_pricelist" model="mail.template">
<field name="name">Pricelist - Send by Email</field>
<field
name="email_from"
>{{ (object.write_uid.email and '&quot;%s&quot; &lt;%s&gt;' % (object.write_uid.name, object.write_uid.email) or '') or "safe" }}</field>
<field
name="subject"
>{{ object.pricelist_id.company_id.name or object.write_uid.company_id.name }} Pricelist (Ref {{ object.pricelist_id.name or 'n/a' }})</field>
<field
name="partner_to"
>{{ object.partner_id and object.partner_id.id or '' }}</field>
<field
name="model_id"
ref="product_pricelist_direct_print.model_product_pricelist_print"
/>
<field name="auto_delete" eval="True" />
<field
name="report_template_ids"
eval="[(4, ref('product_pricelist_direct_print.action_report_product_pricelist'))]"
/>
<field
name="lang"
>{{ object.partner_id and object.partner_id.lang or object.write_uid.partner_id.lang }}</field>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p>Dear <span
t-out="object.partner_id and object.partner_id.name or 'customer'"
/>,</p>
<p>
The attached file is a PDF document containg the
<strong t-out="object.pricelist_id.name" /> pricelist.
</p>
<p>You can reply to this email if you have any questions.</p>
<p>Thank you,</p>

<p style="color:#888888;">
<t t-if="object.write_uid and object.write_uid.signature">
<span t-out="object.write_uid.signature or 'safe'" />
</t>
</p>
</div>
</field>
</record>
</odoo>
Loading
Loading