Daily updates from Odoo
Saturday, October 19, 2019
10 changes
Resolved issues and error corrections
This fix prevents Ponto bank account connections from failing when an account description is missing or blank. The system now uses a default journal name when needed, improving reliability during setup or synchronization.
Original PR description
[FIX] account_ponto: default value for account.online.journal name
In some case, the description of the account received by Ponto exists in the dict
values but the value is None or an empty character. However this is used for the
name field of account.online.journal which is required. The fix is to move the default
value outside the .get('description').
Forward-Port-Of: odoo/enterprise#5988UPS delivery error messages shown during website checkout are now included in translation files. This means customers using another language, such as French, can see these delivery provider errors in their selected language instead of English.
Original PR description
[FIX] delivery_ups: error messages not translated - Install the website. - Install the UPS connector and publish it for Belgium, with random config. - Set the language of the user to French. - Set a weight for a product. - Go to the website and put that product in your cart. - At the delivery phase, select UPS Belgium. Before this commit: the following message in english appears: "Access License number is invalid for this delivery provider". After this commit: This message is in the POT file, and, if translated in French, appears in French on the website. OPW: 2078195 Forward-Port-Of: odoo/enterprise#6028
Duplicated customer invoices in the Mexican electronic invoicing module now correctly recalculate and keep the payment due date. This prevents validated duplicate invoices from ending up with an empty due date, improving billing accuracy and reducing manual corrections.
Original PR description
[FIX] l10n_mx_edi: Date due empty on invoice duplicated Avoid that the date due in the invoice is empty when is duplicated. In the next case: 1. Create a new customer invoice with payment term ``30 Days`` 2. Validate it 3. Duplicate the invoice In this case, in the new invoice, when is validated the date due is empty. To fix this now is called the ``_onchange_invoice_date()`` like Odoo makes when is assigned the invoice date [here](https://github.com/odoo/odoo/blob/13.0/addons/account/models/account_move.py#L2038) Forward-Port-Of: odoo/enterprise#6037
Miscellaneous changes
Instead of showing a traceback, show a user-friendly error message to the user to avoid recursive pos.category. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#38769
Original PR description
Instead of showing a traceback, show a user-friendly error message to the user to avoid recursive pos.category. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#38769
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#39031
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#39031
traceback found when the invoice has withholding and try get the CFDI was fixed. To this case: 1. Create a withholding for sales (-10.67) for example 2. Create a new customer invoice with that tax 3. Try validate it Without this fix the next error is found: ``` Error to render compiling AST TypeError: 'int' object is not subscriptable Template: l10n_mx_edi.cfdiv33 Path: /t/cfdi:Comprobante/cfdi:Conceptos/t/cfdi:Concepto/t[2]/cfdi:Impuestos/t[2]/cfdi:Retenciones/t/t[2] ``` Forwa
Original PR description
traceback found when the invoice has withholding and try get the CFDI was fixed. To this case: 1. Create a withholding for sales (-10.67) for example 2. Create a new customer invoice with that tax 3. Try validate it Without this fix the next error is found: ``` Error to render compiling AST TypeError: 'int' object is not subscriptable Template: l10n_mx_edi.cfdiv33 Path: /t/cfdi:Comprobante/cfdi:Conceptos/t/cfdi:Concepto/t[2]/cfdi:Impuestos/t[2]/cfdi:Retenciones/t/t[2] ``` Forward-Port-Of: odoo/enterprise#6001
Since we will call the get method on options, the default value should be an empty dict Forward-Port-Of: odoo/enterprise#6051
Original PR description
Since we will call the get method on options, the default value should be an empty dict Forward-Port-Of: odoo/enterprise#6051
https://www.odoo.com/web?debug#id=2086393&action=333&active_id=49&model=project.task&view_type=form&menu_id=4720 Forward-Port-Of: odoo/enterprise#6076
Original PR description
https://www.odoo.com/web?debug#id=2086393&action=333&active_id=49&model=project.task&view_type=form&menu_id=4720 Forward-Port-Of: odoo/enterprise#6076
In the rental app, you can create rental orders Before this commit: - It is impossible to add a rentable product with a duration of 0 day, the price explanation was trying to compute the total duration divided by the rental price duration (0 here). After this commit: - It is possible, 0 day means "fixed rental price" so the price explanation when a rentable product with a duration is added is "Fixed rental price". Description of the field "durat
Original PR description
In the rental app, you can create rental orders
Before this commit:
- It is impossible to add a rentable product with a duration
of 0 day, the price explanation was trying to compute the
total duration divided by the rental price duration (0 here).
After this commit:
- It is possible, 0 day means "fixed rental price" so
the price explanation when a rentable product with a duration
is added is "Fixed rental price".
Description of the field "duration" in the model:
"Minimum duration before this rule is applied.
If set to 0, it represents a fixed rental price."
OPW-2088902
Forward-Port-Of: odoo/enterprise#6207In the accounting module, there is the possibility to duplicate payment follow-ups. If I want to duplicate one of them, I am facing a warning saying that the day must be unique. Before this commit: - This is impossible to duplicate a payment follow-up After this commit: - The duplication is working (adds 15 days to the maximum delay by default) Since the concerned field is required and has an unique constraint, this is the best alternative to make the duplicat
Original PR description
In the accounting module, there is the possibility to duplicate
payment follow-ups.
If I want to duplicate one of them, I am facing a warning saying
that the day must be unique.
Before this commit:
- This is impossible to duplicate a payment follow-up
After this commit:
- The duplication is working (adds 15 days to the maximum delay
by default)
Since the concerned field is required and has an unique constraint,
this is the best alternative to make the duplication working.
This solution was proposed by Alain.
OPW-2086701
Forward-Port-Of: odoo/enterprise#6199