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

[17.0][MIG] product_pricelist_direct_print #1784

Open
wants to merge 77 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
99c37ab
[9.0][ADD] product_pricelist_direct_print (#223)
carlosdauden Mar 8, 2017
48bc5c5
[IMP] product_pricelist_direct_print: Add order option + change widge…
carlosdauden Feb 23, 2018
6729634
[MIG] product_pricelist_direct_print: Migration to 11.0
chienandalu Jul 18, 2018
c479f86
[11.0][FIX] product_pricelist_direct_print: Remove duplicate default …
sergio-teruel Nov 22, 2018
4f3c59f
product_pricelist_direct_print: extend module
ernestotejeda Oct 20, 2018
8cfb5fe
[MIG] product_pricelist_direct_print: Migration to 12.0
alexey-pelykh Dec 4, 2018
320b0d1
[IMP] product_pricelist_direct_print: black, isort
sergio-teruel Feb 1, 2020
b92664d
[MIG] product_pricelist_direct_print: Migration to v13.0
sergio-teruel Feb 1, 2020
0bcd0fb
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 8, 2020
7936512
[MIG] product_pricelist_direct_print: Migration to 14.0
joao-p-marques Dec 9, 2020
99e06bc
[IMP] product_pricelist_direct_print: Improve inheritance on get_last…
CarlosRoca13 Feb 25, 2022
9a852b1
[IMP] product_pricelist_direct_print: Improve inheritability
sergio-teruel Jan 11, 2021
fd3776d
[IMP] product_pricelist_direct_print: Add summary on report and wizard.
sergio-teruel Jan 11, 2021
91c932d
[IMP] product_pricelist_direct_print: forward port of xlsx and just d…
CarlosRoca13 Feb 4, 2021
cbdd1d4
[IMP] product_pricelist_direct_print: Date adjusted to the selected l…
CarlosRoca13 Mar 18, 2021
0ddd769
[FIX] product_pricelist_direct_print: Error when date is not defined
CarlosRoca13 May 27, 2021
8be0302
[IMP] product_pricelist_direct_print: Possibility of break by parent …
CarlosRoca13 Jul 15, 2021
1634ea0
[FIX] product_pricelist_direct_print: Revert last changes
carlosdauden Jul 19, 2021
d9d545f
[IMP] product_pricelist_direct_print: Add max category level to group…
carlosdauden Jul 28, 2021
af7dcfa
[FIX] product_pricelist_direct_print: company in report
chienandalu Oct 20, 2021
2b10692
[FIX] product_pricelist_direct_print: fix date context
chienandalu Oct 28, 2021
b71c309
[IMP] product_pricelist_direct_print: Improve inheritance at excel + …
CarlosRoca13 Jan 21, 2022
ea74841
[IMP] product_pricelist_direct_print: Adjust cherry-picks to v14
CarlosRoca13 May 9, 2022
362bb12
[IMP] product_pricelist_direct_print: Give formats to add_extra_info …
CarlosRoca13 Jun 21, 2022
1e700bc
[MIG] product_pricelist_direct_print: Migration to 15.0
CarlosRoca13 Jul 14, 2022
af8b552
[UPD] Update product_pricelist_direct_print.pot
Oct 23, 2022
927e6cd
[UPD] README.rst
OCA-git-bot Oct 23, 2022
79f07a6
[IMP] product_pricelist_direct_print: Allow select the language when …
CarlosRoca13 Jun 5, 2023
0b420f7
[UPD] Update product_pricelist_direct_print.pot
Jun 12, 2023
88a1b3b
product_pricelist_direct_print 15.0.1.1.0
OCA-git-bot Jun 12, 2023
c485146
Update translation files
weblate Jun 12, 2023
2d9928d
[MIG] product_pricelist_direct_print 16.0 (from 15.0)
legalsylvain Jun 21, 2023
d93f3ec
[IMP] product_pricelist_direct_print : Possibility to display product…
legalsylvain Jun 22, 2023
8ebea05
[IMP] product_pricelist_direct_print : Possibility to display priceli…
legalsylvain Jun 22, 2023
e4abdc1
[IMP] product_pricelist_direct_print : Possibility to group by any pr…
legalsylvain Jun 22, 2023
4c1d4ab
[REF] product_pricelist_direct_print : improve wizard display, groupi…
legalsylvain Jun 22, 2023
5c0741a
[REF] product_pricelist_direct_print : harmonize fields names : Use o…
legalsylvain Jun 22, 2023
8cf2d05
[REF] product_pricelist_direct_print : set date as required, simplify…
legalsylvain Jun 22, 2023
782e1be
[REF] split product_pricelist_direct_print into product_pricelist_dir…
legalsylvain Jun 22, 2023
dcc2b07
[REF] Add GRAP to credits ; Add legalsylvain as maintainers of produc…
legalsylvain Jun 22, 2023
1d05ae2
[UPD] Update product_pricelist_direct_print.pot
Jun 23, 2023
8fe2d72
[UPD] README.rst
OCA-git-bot Jun 23, 2023
4f23044
Update translation files
weblate Jun 23, 2023
0f73bbb
Added translation using Weblate (Italian)
dcorio Aug 29, 2023
555e02c
Translated using Weblate (Spanish)
Ivorra78 Aug 22, 2023
597f332
Translated using Weblate (Italian)
dcorio Aug 29, 2023
2e2dbf8
[UPD] README.rst
OCA-git-bot Sep 3, 2023
6f24443
Translated using Weblate (Italian)
francesco-ooops Sep 4, 2023
cd56df5
Translated using Weblate (Italian)
mymage Sep 20, 2023
ad4cb15
[16.0] [FIX] product_pricelist_direct_print: add missing dependency i…
pasculorente Sep 26, 2023
7cf2714
[BOT] post-merge updates
OCA-git-bot Sep 27, 2023
5ad7103
Translated using Weblate (Italian)
dcorio Oct 5, 2023
6981656
Update translation files
weblate Oct 9, 2023
b82922a
Translated using Weblate (Italian)
mymage Oct 29, 2023
62c0677
Translated using Weblate (Italian)
mymage Oct 29, 2023
1a02b9c
[IMP] product_pricelist_direct_print: test performance improvement
josep-tecnativa Oct 23, 2023
ef8b634
[BOT] post-merge updates
OCA-git-bot Oct 30, 2023
c59b69a
Translated using Weblate (Italian)
mymage Oct 31, 2023
352d0d9
Added translation using Weblate (Turkish)
Mar 11, 2024
f4adbbd
Translated using Weblate (Turkish)
Mar 11, 2024
cf2ccef
[FIX] product_pricelist_direct_print: bugfix
suker Apr 11, 2024
b9b6f39
[BOT] post-merge updates
OCA-git-bot Apr 16, 2024
5481185
[FIX] product_pricelist_direct_print: fix bug 'product.pricelist.prin…
trisdoan May 14, 2024
c536568
[BOT] post-merge updates
OCA-git-bot May 14, 2024
7e50a6f
[FIX] product_pricelist_direct_print: Error when display wizard witho…
CarlosRoca13 Jun 14, 2024
a2adccb
[BOT] post-merge updates
OCA-git-bot Jun 14, 2024
4f89841
[FIX] product_pricelist_direct_print : Prevent access error if a user…
legalsylvain Jun 14, 2024
51a3b50
[UPD] Update product_pricelist_direct_print.pot
Jun 14, 2024
27528f1
[BOT] post-merge updates
OCA-git-bot Jun 14, 2024
1377cb4
Update translation files
weblate Jun 14, 2024
674544a
[IMP] product_pricelist_direct_print: printing a pricelist and select…
chaule97 Jul 4, 2024
b941cec
[UPD] Update product_pricelist_direct_print.pot
Jul 8, 2024
169ba97
[BOT] post-merge updates
OCA-git-bot Jul 8, 2024
bc122f7
Update translation files
weblate Jul 8, 2024
56e4c03
Translated using Weblate (Italian)
mymage Jul 9, 2024
558a98c
Translated using Weblate (Italian)
mymage Aug 26, 2024
5e6a366
[MIG] product_pricelist_direct_print: Migration to 17.0
therbin200 Nov 26, 2024
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
Binary file added pandoc-3.5-1-amd64.deb
Binary file not shown.
154 changes: 154 additions & 0 deletions product_pricelist_direct_print/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
==============================
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/16.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-16-0/product-attribute-16-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=16.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:

#. Go to *Apps* and install *Sales*
#. Go to *Sales > Configuration > Settings*
#. Scroll to *Pricing*
#. Enable 'Pricelists'.

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

#. Enable developer mode
#. Go to *Settings > Users & Companies > Users*
#. Create or Edit a record
#. Scroll to *Technical Settings*
#. Enable *Advanced Pricelists*

Usage
=====

To use this module, you have several options:

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

#. Go to *Sales > Products > Products*
* Select products in list view
* Press *Action > Price List*

#. Go to *Sales > Products > Product Variants*
* Select products in list view
* Press *Action > Price List*

#. Go to *Sales > Orders > Customers*
* Select customers in list view
* Press *Action > Send customer pricelist by EMail*

.. figure:: https://raw.githubusercontent.com/OCA/product-attribute/16.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:%2016.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

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/16.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": "17.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",
],
}
47 changes: 47 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,47 @@
<?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