Daily updates from Odoo
Friday, May 12, 2023
6 changes · master
New functionality added to Odoo
Rental products will no longer appear in the new sales catalog view. This keeps the catalog focused on products that can be sold directly, reducing confusion for sales teams when preparing orders.
Original PR description
This commit is part the task that aims to add a catalog view to the sales app. Modules touched: sale_subscription, sale_renting. Because of the catalog objective subscription products are not to be shown, it is the same for rental products. See odoo/odoo#106382 Task - 306208
Miscellaneous changes
Currently in the General Ledger, when unfolding an Income or Expense account, no Initial Balance gets displayed. As such, if the report period starts in the middle of the fiscal year, any AMLs between the start of the fiscal year and the report start date are unaccounted for: - they don't appear in the unfolded account - they're not in the Unaffected Earnings either. This causes a discrepancy between the total of the AMLs shown in the unfolded account and the account total. We
Original PR description
Currently in the General Ledger, when unfolding an Income or Expense account, no Initial Balance gets displayed. As such, if the report period starts in the middle of the fiscal year, any AMLs…
Currently in the General Ledger, when unfolding an Income or Expense account, no Initial Balance gets displayed.
As such, if the report period starts in the middle of the fiscal year, any AMLs between the start of the fiscal year and the report start date are unaccounted for:
- they don't appear in the unfolded account
- they're not in the Unaffected Earnings either.
This causes a discrepancy between the total of the AMLs shown in the unfolded account and the account total.
We fix this by ensuring that the initial balance is displayed, unless we are at the beginning of a fiscal year, in which case it should not be displayed.
In my fix I have adopted the same behaviour as in https://github.com/odoo/enterprise/blob/b54a971d50c136a24bb65fc956cada5869075fbf/account_reports/models/account_general_ledger.py#L236-L237
Before fix:

After fix:

opw-3171566
Forward-Port-Of: odoo/enterprise#40776Now that taxes are always recomputed on SOlines when modifying the SO company, there is no need anymore to manually trigger the recomputation in sale_subscription for recurring orders. Also adapt the existing test accordingly. Community PR: https://github.com/odoo/odoo/pull/120774 Forward-Port-Of: odoo/enterprise#40973 Forward-Port-Of: odoo/enterprise#40844
Original PR description
Now that taxes are always recomputed on SOlines when modifying the SO company, there is no need anymore to manually trigger the recomputation in sale_subscription for recurring orders. Also adapt the existing test accordingly. Community PR: https://github.com/odoo/odoo/pull/120774 Forward-Port-Of: odoo/enterprise#40973 Forward-Port-Of: odoo/enterprise#40844
If the sign terms page is not enabled, it will return an "error" page: while it will return a 200 HTTP code, it will display a message like `Oops: The requested page is invalid` which doesn't bring much value in your sitemap/indexed pages. To be enabled, those two settings should be checked: - `Sign Default Terms & Conditions` in sign settings - `Terms as Web Page` as sub option This commit is simply conditionning the presence of this page in the sitemap so it's only shown when the terms
Original PR description
If the sign terms page is not enabled, it will return an "error" page: while it will return a 200 HTTP code, it will display a message like `Oops: The requested page is invalid` which doesn't bring much value in your sitemap/indexed pages. To be enabled, those two settings should be checked: - `Sign Default Terms & Conditions` in sign settings - `Terms as Web Page` as sub option This commit is simply conditionning the presence of this page in the sitemap so it's only shown when the terms page is actually enabled. Note that when enabled, it's important to have it in the sitemap for SEO as people might want to find your terms through google etc. opw-3255831 Forward-Port-Of: odoo/enterprise#40620
task - 3278996 Forward-Port-Of: odoo/enterprise#40731
Original PR description
task - 3278996 Forward-Port-Of: odoo/enterprise#40731
We used an old odoo.sh server for the test env of the IAP part of l10n_pe_edi, but that subscription always expires and it would be better to use the regular odoo.sh test env. For that, we just need to change the URL in the code and in the meantime, we also change the production url for consistency. Forward-Port-Of: odoo/enterprise#40267
Original PR description
We used an old odoo.sh server for the test env of the IAP part of l10n_pe_edi, but that subscription always expires and it would be better to use the regular odoo.sh test env. For that, we just need to change the URL in the code and in the meantime, we also change the production url for consistency. Forward-Port-Of: odoo/enterprise#40267