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

[16.0][MIG] sale_pricelist_global_rule #3533

Open
wants to merge 10 commits into
base: 16.0
Choose a base branch
from

Conversation

LuciaMarchalFactorLibre
Copy link

@LuciaMarchalFactorLibre LuciaMarchalFactorLibre commented Jan 10, 2025

Migration of the sale_pricelist_global_rule module from version 15.0 to 16.0

FL-556-4652

carlos-lopez-tecnativa and others added 10 commits January 8, 2025 09:51
… quantities across sales order lines

- by product template
- by product category
…onstraint conflicts

The `product_variant_default_code` module adds a unique constraint, which causes test failures when installed alongside `sale_pricelist_global_rule`. This fix adjusts the tests in to avoid conflicts with this unique constraint, ensuring compatibility when both modules are installed.
If not, we get:

```
Traceback (most recent call last):
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 658, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause

psycopg2.errors.DatatypeMismatch: ARRAY types integer and boolean cannot be matched

LINE 9: ...L OR item.global_product_tmpl_id = any(ARRAY[false,...
```

A little refactor for better code in the method is also done.

TT51677
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants