Skip to content

Syncing from upstream OCA/product-attribute (18.0) - #1413

Merged
bt-admin merged 52 commits into
brain-tec:18.0from
OCA:18.0
Aug 29, 2025
Merged

Syncing from upstream OCA/product-attribute (18.0)#1413
bt-admin merged 52 commits into
brain-tec:18.0from
OCA:18.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

carlosdauden and others added 30 commits August 28, 2025 12:27
Print price list for future date
Print price list for N last ordered products
Send report by email to each partner selected
When we check the price of any product, the date that we pass on the context has to be a Datetime value or None. With this change we avoid to pass a False.

Here you have the reference to the code that check that https://github.com/OCA/OCB/blob/13.0/addons/product/models/product.py#L599-L600

TT29935
In a multicompany environment we need to contextualize the report
company. Otherwise, the pricelists will be printed with the header and
data of the current user's default company, which can be incoherent.

TT32544
This fix a compatibility issue with product_pricelist_supplierinfo if
the wizard date isn't set.

TT32729
…add new fields + Adjust cherry-picks to v14 + Give formats to add_extra_info method
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-attribute-15.0/product-attribute-15.0-product_pricelist_direct_print
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_pricelist_direct_print/
…pricelist prices vat excl or vat incl + group by any product field
- Improve wizard display, grouping fields by context
- Harmonize fields names : Use only 'positive' option 'show' and remove 'hide' option
- Set date as required, simplifying algorithm
- Split product_pricelist_direct_print into product_pricelist_direct_print and product_pricelist_direct_print_xlsx
Currently translated at 84.6% (55 of 65 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_direct_print
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_direct_print/it/
Currently translated at 100.0% (65 of 65 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_direct_print
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_direct_print/es/
francesco-ooops and others added 22 commits August 28, 2025 12:32
Currently translated at 84.6% (55 of 65 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_direct_print
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_direct_print/it/
…n compute

The _compute_product_price method is missing the depends line, causing it not to be recomputed during the same report, thus all products result in the same price
Currently translated at 84.6% (55 of 65 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_direct_print
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_direct_print/it/
- Include context keys for avoiding mail operations overhead.
Currently translated at 100.0% (65 of 65 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_direct_print
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_direct_print/it/
 Blank product_attribute_values on changing show_variants
…t' object has no attribute 'show_attribute_values'
…ut administration permision

Steps to reproduce the problem:

1. Log in with a user without Administration permision
2. Open Pricelist Print wizard

An error about permisions is desplayed
… that doesn't belong to 'Administration/Access Rights' try to print pricelists. Fix : #1655
…ing an product category, include its child categories.
Currently translated at 100.0% (66 of 66 strings)

Translation: product-attribute-16.0/product-attribute-16.0-product_pricelist_direct_print
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_pricelist_direct_print/it/
…fields

With this change we are sure that the prices shown on the report has the correct precision.
[IMP] product_pricelist_direct_print: pre-commit execution
- Standard procedure.
- [IMP] Add advanced print button
- [IMP] Add option to show Sales Description
- [FIX] typo product_pricelist_print_view
- [IMP]Improve string Show only defined products
- [IMP] Pretty Filename: Use pricelist- name instead of report.pdf in emails.
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 18.0 label Aug 29, 2025
@bt-admin
bt-admin merged commit d9fce85 into brain-tec:18.0 Aug 29, 2025
4 checks passed
@codecov

codecov Bot commented Aug 29, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.00000% with 66 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.41%. Comparing base (fb5879b) to head (1ce7293).
⚠️ Report is 137 commits behind head on 18.0.

Files with missing lines Patch % Lines
...st_direct_print/wizards/product_pricelist_print.py 69.58% 43 Missing and 23 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             18.0    #1413      +/-   ##
==========================================
- Coverage   94.15%   93.41%   -0.74%     
==========================================
  Files         391      396       +5     
  Lines        6262     6562     +300     
  Branches      491      536      +45     
==========================================
+ Hits         5896     6130     +234     
- Misses        261      304      +43     
- Partials      105      128      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.