Friday, December 10, 2021
10 changes · master
Miscellaneous changes
https://github.com/odoo/odoo/commit/82a0ed4baf2c7d0bf52c410364c43759d9d8bb4d Forward-Port-Of: odoo/odoo#81066
Original PR description
https://github.com/odoo/odoo/commit/82a0ed4baf2c7d0bf52c410364c43759d9d8bb4d Forward-Port-Of: odoo/odoo#81066
Some decently costly operations (especially when repeated many times) where done inside a loop for no reason. task-2702450 Forward-Port-Of: odoo/odoo#81163
Original PR description
Some decently costly operations (especially when repeated many times) where done inside a loop for no reason. task-2702450 Forward-Port-Of: odoo/odoo#81163
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#81194
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#81194
This will avoid spending half hour hunting why an inactive employee was sendig a spam before realising it was from 2 years ago (true story) Task id: 2709447 Forward-Port-Of: odoo/odoo#80888
Original PR description
This will avoid spending half hour hunting why an inactive employee was sendig a spam before realising it was from 2 years ago (true story) Task id: 2709447 Forward-Port-Of: odoo/odoo#80888
Avoid iterating over all channels every time a new channel is added. Part of task-2702450 Forward-Port-Of: odoo/odoo#81193 Forward-Port-Of: odoo/odoo#81166
Original PR description
Avoid iterating over all channels every time a new channel is added. Part of task-2702450 Forward-Port-Of: odoo/odoo#81193 Forward-Port-Of: odoo/odoo#81166
Introduced by https://github.com/odoo/odoo/pull/80266 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#81154 Forward-Port-Of: odoo/odoo#81120
Original PR description
Introduced by https://github.com/odoo/odoo/pull/80266 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#81154 Forward-Port-Of: odoo/odoo#81120
When paying an expense, we should take the bank accounts from partner instead of the ones set on the company. Also, the computation of the partner bank account is different on the wizard and the payment. To unify both models, the 'available_partner_bank_ids' should also be put on account.payment. see https://github.com/odoo/odoo/pull/79737 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#81169 Forward-Port-Of: odoo/odoo#
Original PR description
When paying an expense, we should take the bank accounts from partner instead of the ones set on the company. Also, the computation of the partner bank account is different on the wizard and the payment. To unify both models, the 'available_partner_bank_ids' should also be put on account.payment. see https://github.com/odoo/odoo/pull/79737 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#81169 Forward-Port-Of: odoo/odoo#80418
Forward-Port-Of: odoo/enterprise#22830
Original PR description
Forward-Port-Of: odoo/enterprise#22830
During auto-installation of this module, the check below raises an error. https://github.com/odoo/enterprise/blob/3c962644c78f67b9b540c5f80a1c4667d6955d06/l10n_sa_hr_payroll_account/models/account_chart_template.py#L40-L41 The reason is that these accounts are not present even if the company country is SA. https://github.com/odoo/enterprise/blob/3c962644c78f67b9b540c5f80a1c4667d6955d06/l10n_sa_hr_payroll_account/models/account_chart_template.py#L21-L31 Since the xmlid of the SA CoA was
Original PR description
During auto-installation of this module, the check below raises an error.…
During auto-installation of this module, the check below raises an error. https://github.com/odoo/enterprise/blob/3c962644c78f67b9b540c5f80a1c4667d6955d06/l10n_sa_hr_payroll_account/models/account_chart_template.py#L40-L41 The reason is that these accounts are not present even if the company country is SA. https://github.com/odoo/enterprise/blob/3c962644c78f67b9b540c5f80a1c4667d6955d06/l10n_sa_hr_payroll_account/models/account_chart_template.py#L21-L31 Since the xmlid of the SA CoA was renamed from `account_arabic_coa_general` https://github.com/odoo/odoo/blob/3ae0b21f4b269859dc41ab6851e2e6e52b6b2e11/addons/l10n_sa/data/account_chart_template_data.xml#L3 to `sa_chart_template_standard` https://github.com/odoo/odoo/blob/6e68df1a69079bc16888ad588c97f234c9b9fa07/addons/l10n_sa/data/account_chart_template_data.xml#L3 and the account templates also changed completely https://github.com/odoo/odoo/pull/77673/files#diff-57b148b690d198d5579f14ac190846b9f26f551d335f5cb57e9395cc155afdaeL1 This is preventing the upgrade to 15.0 of almost all SA localized DBs. The fix we propose is to check if the CoA of the company is the expected one, `sa_chart_template_standard`, before attempting to setup the accounts. Co-authored-by: Josse Colpaert <jco@openerp.com> Forward-Port-Of: odoo/enterprise#22631
Fiduciaries would like to be able to predict the products/accounts/taxes for their clients automatically, meaning that the prediction should work for `out_invoice`s too. This is done by activating the config parameter: `account_predictive_bills.activate_out_invoice` Forward-Port-Of: odoo/enterprise#22775
Original PR description
Fiduciaries would like to be able to predict the products/accounts/taxes for their clients automatically, meaning that the prediction should work for `out_invoice`s too. This is done by activating the config parameter: `account_predictive_bills.activate_out_invoice` Forward-Port-Of: odoo/enterprise#22775