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: Migration to 17.0 #1718

Open
wants to merge 78 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
78 commits
Select commit Hold shift + click to select a range
f156c27
[9.0][ADD] product_pricelist_direct_print (#223)
carlosdauden Mar 8, 2017
58ab46c
[IMP] product_pricelist_direct_print: Add order option + change widge…
carlosdauden Feb 23, 2018
4c29156
[MIG] product_pricelist_direct_print: Migration to 11.0
chienandalu Jul 18, 2018
18d235c
[11.0][FIX] product_pricelist_direct_print: Remove duplicate default …
sergio-teruel Nov 22, 2018
1450e4f
product_pricelist_direct_print: extend module
ernestotejeda Oct 20, 2018
851d011
[MIG] product_pricelist_direct_print: Migration to 12.0
alexey-pelykh Dec 4, 2018
4bef760
[IMP] product_pricelist_direct_print: black, isort
sergio-teruel Feb 1, 2020
1448f8c
[MIG] product_pricelist_direct_print: Migration to v13.0
sergio-teruel Feb 1, 2020
77773b0
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 8, 2020
76afbb5
[MIG] product_pricelist_direct_print: Migration to 14.0
joao-p-marques Dec 9, 2020
58a7e85
[IMP] product_pricelist_direct_print: Improve inheritance on get_last…
CarlosRoca13 Feb 25, 2022
c1c8516
[IMP] product_pricelist_direct_print: Improve inheritability
sergio-teruel Jan 11, 2021
502cf7d
[IMP] product_pricelist_direct_print: Add summary on report and wizard.
sergio-teruel Jan 11, 2021
6e01990
[IMP] product_pricelist_direct_print: forward port of xlsx and just d…
CarlosRoca13 Feb 4, 2021
af6c9ad
[IMP] product_pricelist_direct_print: Date adjusted to the selected l…
CarlosRoca13 Mar 18, 2021
1ba0bb9
[FIX] product_pricelist_direct_print: Error when date is not defined
CarlosRoca13 May 27, 2021
9aa9907
[IMP] product_pricelist_direct_print: Possibility of break by parent …
CarlosRoca13 Jul 15, 2021
492228a
[FIX] product_pricelist_direct_print: Revert last changes
carlosdauden Jul 19, 2021
f0d4ab4
[IMP] product_pricelist_direct_print: Add max category level to group…
carlosdauden Jul 28, 2021
0991049
[FIX] product_pricelist_direct_print: company in report
chienandalu Oct 20, 2021
b399f4f
[FIX] product_pricelist_direct_print: fix date context
chienandalu Oct 28, 2021
ae3a48b
[IMP] product_pricelist_direct_print: Improve inheritance at excel + …
CarlosRoca13 Jan 21, 2022
1e0dffe
[IMP] product_pricelist_direct_print: Adjust cherry-picks to v14
CarlosRoca13 May 9, 2022
e2536e6
[IMP] product_pricelist_direct_print: Give formats to add_extra_info …
CarlosRoca13 Jun 21, 2022
1033b30
[MIG] product_pricelist_direct_print: Migration to 15.0
CarlosRoca13 Jul 14, 2022
e2c0c6e
[UPD] Update product_pricelist_direct_print.pot
Oct 23, 2022
852c735
[UPD] README.rst
OCA-git-bot Oct 23, 2022
e2e79d2
[IMP] product_pricelist_direct_print: Allow select the language when …
CarlosRoca13 Jun 5, 2023
6eb2f84
[UPD] Update product_pricelist_direct_print.pot
Jun 12, 2023
e634148
product_pricelist_direct_print 15.0.1.1.0
OCA-git-bot Jun 12, 2023
60ffbb5
Update translation files
weblate Jun 12, 2023
00a2ebf
[MIG] product_pricelist_direct_print 16.0 (from 15.0)
legalsylvain Jun 21, 2023
9d74499
[IMP] product_pricelist_direct_print : Possibility to display product…
legalsylvain Jun 22, 2023
fbdb43e
[IMP] product_pricelist_direct_print : Possibility to display priceli…
legalsylvain Jun 22, 2023
2e42660
[IMP] product_pricelist_direct_print : Possibility to group by any pr…
legalsylvain Jun 22, 2023
7eeb0a4
[REF] product_pricelist_direct_print : improve wizard display, groupi…
legalsylvain Jun 22, 2023
a3e5549
[REF] product_pricelist_direct_print : harmonize fields names : Use o…
legalsylvain Jun 22, 2023
7333faf
[REF] product_pricelist_direct_print : set date as required, simplify…
legalsylvain Jun 22, 2023
4f7611b
[REF] split product_pricelist_direct_print into product_pricelist_dir…
legalsylvain Jun 22, 2023
f8d39d3
[REF] Add GRAP to credits ; Add legalsylvain as maintainers of produc…
legalsylvain Jun 22, 2023
6b7a7d8
[UPD] Update product_pricelist_direct_print.pot
Jun 23, 2023
7a972ef
[UPD] README.rst
OCA-git-bot Jun 23, 2023
2fac428
Update translation files
weblate Jun 23, 2023
bb9d16b
Added translation using Weblate (Italian)
dcorio Aug 29, 2023
df5d95e
Translated using Weblate (Spanish)
Ivorra78 Aug 22, 2023
b3d9541
Translated using Weblate (Italian)
dcorio Aug 29, 2023
22e1dac
[UPD] README.rst
OCA-git-bot Sep 3, 2023
8bd28c5
Translated using Weblate (Italian)
francesco-ooops Sep 4, 2023
442dfe4
Translated using Weblate (Italian)
mymage Sep 20, 2023
e4b44a4
[16.0] [FIX] product_pricelist_direct_print: add missing dependency i…
pasculorente Sep 26, 2023
91fba63
[BOT] post-merge updates
OCA-git-bot Sep 27, 2023
c007083
Translated using Weblate (Italian)
dcorio Oct 5, 2023
42e5841
Update translation files
weblate Oct 9, 2023
5c21227
Translated using Weblate (Italian)
mymage Oct 29, 2023
1d18af0
Translated using Weblate (Italian)
mymage Oct 29, 2023
b08ac4f
[IMP] product_pricelist_direct_print: test performance improvement
josep-tecnativa Oct 23, 2023
bcc84e7
[BOT] post-merge updates
OCA-git-bot Oct 30, 2023
e4e4790
Translated using Weblate (Italian)
mymage Oct 31, 2023
9e61fd8
Added translation using Weblate (Turkish)
Mar 11, 2024
9378536
Translated using Weblate (Turkish)
Mar 11, 2024
0736d11
[FIX] product_pricelist_direct_print: bugfix
suker Apr 11, 2024
6881e1f
[BOT] post-merge updates
OCA-git-bot Apr 16, 2024
175c8cd
[FIX] product_pricelist_direct_print: fix bug 'product.pricelist.prin…
trisdoan May 14, 2024
e505ca6
[BOT] post-merge updates
OCA-git-bot May 14, 2024
d9e1eda
[FIX] product_pricelist_direct_print: Error when display wizard witho…
CarlosRoca13 Jun 14, 2024
45ff811
[BOT] post-merge updates
OCA-git-bot Jun 14, 2024
7c7e201
[FIX] product_pricelist_direct_print : Prevent access error if a user…
legalsylvain Jun 14, 2024
9fcbc6f
[UPD] Update product_pricelist_direct_print.pot
Jun 14, 2024
ceed9ec
[BOT] post-merge updates
OCA-git-bot Jun 14, 2024
4db942e
Update translation files
weblate Jun 14, 2024
d58d2c8
[IMP] product_pricelist_direct_print: printing a pricelist and select…
chaule97 Jul 4, 2024
aa4e95b
[UPD] Update product_pricelist_direct_print.pot
Jul 8, 2024
5545019
[BOT] post-merge updates
OCA-git-bot Jul 8, 2024
2a3b536
Update translation files
weblate Jul 8, 2024
947db66
Translated using Weblate (Italian)
mymage Jul 9, 2024
52215e5
Translated using Weblate (Italian)
mymage Aug 26, 2024
b709c56
[IMP] product_pricelist_direct_print: pre-commit auto fixes
bizzappdev Sep 2, 2024
fc720b3
[MIG] product_pricelist_direct_print: Migration to 17.0
bizzappdev Sep 2, 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
160 changes: 160 additions & 0 deletions product_pricelist_direct_print/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
==============================
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/17.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-17-0/product-attribute-17-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=17.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/17.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:%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
-------

* 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/17.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",
],
}
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