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] mig product pricelist direct print #1804

Draft
wants to merge 68 commits into
base: 18.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
21af2fe
[9.0][ADD] product_pricelist_direct_print (#223)
carlosdauden Mar 8, 2017
167e309
[IMP] product_pricelist_direct_print: Add order option + change widge…
carlosdauden Feb 23, 2018
610d58f
[MIG] product_pricelist_direct_print: Migration to 11.0
chienandalu Jul 18, 2018
30b8867
[11.0][FIX] product_pricelist_direct_print: Remove duplicate default …
sergio-teruel Nov 22, 2018
e03adcc
product_pricelist_direct_print: extend module
ernestotejeda Oct 20, 2018
7c87e40
[MIG] product_pricelist_direct_print: Migration to 12.0
alexey-pelykh Dec 4, 2018
4e29e06
[IMP] product_pricelist_direct_print: black, isort
sergio-teruel Feb 1, 2020
391080f
[MIG] product_pricelist_direct_print: Migration to v13.0
sergio-teruel Feb 1, 2020
b3a358a
[UPD] Brainbean Apps => CorporateHub
alexey-pelykh Nov 8, 2020
8737323
[MIG] product_pricelist_direct_print: Migration to 14.0
joao-p-marques Dec 9, 2020
03d9dee
[IMP] product_pricelist_direct_print: Improve inheritance on get_last…
CarlosRoca13 Feb 25, 2022
3d94c7b
[IMP] product_pricelist_direct_print: Improve inheritability
sergio-teruel Jan 11, 2021
a8046fe
[IMP] product_pricelist_direct_print: Add summary on report and wizard.
sergio-teruel Jan 11, 2021
4fe9964
[IMP] product_pricelist_direct_print: forward port of xlsx and just d…
CarlosRoca13 Feb 4, 2021
047b4d1
[IMP] product_pricelist_direct_print: Date adjusted to the selected l…
CarlosRoca13 Mar 18, 2021
9410742
[FIX] product_pricelist_direct_print: Error when date is not defined
CarlosRoca13 May 27, 2021
cbbfead
[IMP] product_pricelist_direct_print: Possibility of break by parent …
CarlosRoca13 Jul 15, 2021
5b033e8
[FIX] product_pricelist_direct_print: Revert last changes
carlosdauden Jul 19, 2021
ff5d4af
[IMP] product_pricelist_direct_print: Add max category level to group…
carlosdauden Jul 28, 2021
ed01185
[FIX] product_pricelist_direct_print: company in report
chienandalu Oct 20, 2021
1c2b713
[FIX] product_pricelist_direct_print: fix date context
chienandalu Oct 28, 2021
c35bf3a
[IMP] product_pricelist_direct_print: Improve inheritance at excel + …
CarlosRoca13 Jan 21, 2022
8e7235c
[IMP] product_pricelist_direct_print: Adjust cherry-picks to v14
CarlosRoca13 May 9, 2022
0d31cf0
[IMP] product_pricelist_direct_print: Give formats to add_extra_info …
CarlosRoca13 Jun 21, 2022
2e24003
[MIG] product_pricelist_direct_print: Migration to 15.0
CarlosRoca13 Jul 14, 2022
177594d
[UPD] Update product_pricelist_direct_print.pot
Oct 23, 2022
c7c3227
[UPD] README.rst
OCA-git-bot Oct 23, 2022
2b11320
[IMP] product_pricelist_direct_print: Allow select the language when …
CarlosRoca13 Jun 5, 2023
5e36e0b
[UPD] Update product_pricelist_direct_print.pot
Jun 12, 2023
34596dd
product_pricelist_direct_print 15.0.1.1.0
OCA-git-bot Jun 12, 2023
170026e
Update translation files
weblate Jun 12, 2023
f77c9ad
[MIG] product_pricelist_direct_print 16.0 (from 15.0)
legalsylvain Jun 21, 2023
0b10a2a
[IMP] product_pricelist_direct_print : Possibility to display product…
legalsylvain Jun 22, 2023
eabd30f
[IMP] product_pricelist_direct_print : Possibility to display priceli…
legalsylvain Jun 22, 2023
f556b1a
[IMP] product_pricelist_direct_print : Possibility to group by any pr…
legalsylvain Jun 22, 2023
65bc866
[REF] product_pricelist_direct_print : improve wizard display, groupi…
legalsylvain Jun 22, 2023
4e158aa
[REF] product_pricelist_direct_print : harmonize fields names : Use o…
legalsylvain Jun 22, 2023
97b283b
[REF] product_pricelist_direct_print : set date as required, simplify…
legalsylvain Jun 22, 2023
4d03594
[REF] split product_pricelist_direct_print into product_pricelist_dir…
legalsylvain Jun 22, 2023
16daf13
[REF] Add GRAP to credits ; Add legalsylvain as maintainers of produc…
legalsylvain Jun 22, 2023
538f648
[UPD] Update product_pricelist_direct_print.pot
Jun 23, 2023
b35fa4e
[UPD] README.rst
OCA-git-bot Jun 23, 2023
6c6bfd6
Update translation files
weblate Jun 23, 2023
112faf5
Added translation using Weblate (Italian)
dcorio Aug 29, 2023
3e11a1a
Translated using Weblate (Spanish)
Ivorra78 Aug 22, 2023
c6fc026
Translated using Weblate (Italian)
dcorio Aug 29, 2023
761ae67
[UPD] README.rst
OCA-git-bot Sep 3, 2023
3d53c52
Translated using Weblate (Italian)
francesco-ooops Sep 4, 2023
f1c24ff
Translated using Weblate (Italian)
mymage Sep 20, 2023
e8f9d80
[16.0] [FIX] product_pricelist_direct_print: add missing dependency i…
pasculorente Sep 26, 2023
6744cad
[BOT] post-merge updates
OCA-git-bot Sep 27, 2023
de5ff09
Translated using Weblate (Italian)
dcorio Oct 5, 2023
2ee1b4a
Update translation files
weblate Oct 9, 2023
bdc3ddf
Translated using Weblate (Italian)
mymage Oct 29, 2023
a1a15c8
Translated using Weblate (Italian)
mymage Oct 29, 2023
ac042a9
[IMP] product_pricelist_direct_print: test performance improvement
josep-tecnativa Oct 23, 2023
25e14ea
[BOT] post-merge updates
OCA-git-bot Oct 30, 2023
fe432c1
Translated using Weblate (Italian)
mymage Oct 31, 2023
1663299
Added translation using Weblate (Turkish)
Mar 11, 2024
141e6b4
Translated using Weblate (Turkish)
Mar 11, 2024
b6a8929
[FIX] product_pricelist_direct_print: bugfix
suker Apr 11, 2024
15893ee
[FIX] product_pricelist_direct_print: fix bug 'product.pricelist.prin…
trisdoan May 14, 2024
49d94fd
[FIX] product_pricelist_direct_print: Error when display wizard witho…
CarlosRoca13 Jun 14, 2024
e3fddbe
[FIX] product_pricelist_direct_print : Prevent access error if a user…
legalsylvain Jun 14, 2024
e99ea0e
[IMP] product_pricelist_direct_print: printing a pricelist and select…
chaule97 Jul 4, 2024
b2dee31
Translated using Weblate (Italian)
mymage Jul 9, 2024
f3e1ce2
[IMP] product_pricelist_direct_print: pre-commit auto fixes
bealdav Dec 6, 2024
a74185a
[MIG] product_pricelist_direct_print: Migration to 18.0
bealdav Dec 6, 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/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

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",
],
}
51 changes: 51 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,51 @@
<?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="[ref('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