Monday, December 4, 2023
16 changes · master
New functionality added to Odoo
A new Flipkart sales module lets businesses import and manage Flipkart orders directly in Odoo. It supports order creation, cancellation updates, fulfillment updates, manual synchronization, and shipment label generation, reducing manual work for teams selling through Flipkart.
Original PR description
Sync:
-Creating sale orders from flipkart
-Cancelling sale order from flipkart
-Update sale order for orders Fulfilled by Flipkart
Others:
-Manual Sync Order from Sale Order
-Manual fetch new orders
-Generate shipment label on validation of Delivery (stock picking)
Related Documentation PR - https://github.com/odoo/documentation/pull/6104
task-3179096Enhancements to existing features
The file generation error message component has been made reusable across several accounting and local compliance reports. This helps provide more consistent feedback when export files cannot be generated and makes future report improvements easier to support.
Miscellaneous changes
Issue: In a mono-company setup, users trying to create a quotation from a task face an error message because the mandatory 'company' field in the 'other info' tab is not visible, unlike in multi-company setups. Steps to Reproduce: 1. Install the Field Service app. 2. Activate 'Extra Quotations' in the Field Service general settings. 3. Enable 'Extra Quotation' in the settings of the relevant project. 4. Try creating a quotation from a task in a mono-company environment. 5. Encounter an
Original PR description
Issue: In a mono-company setup, users trying to create a quotation from a task face an error message because the mandatory 'company' field in the 'other info' tab is not visible, unlike in multi-company setups. Steps to Reproduce: 1. Install the Field Service app. 2. Activate 'Extra Quotations' in the Field Service general settings. 3. Enable 'Extra Quotation' in the settings of the relevant project. 4. Try creating a quotation from a task in a mono-company environment. 5. Encounter an error. Resolution: Modified the functionality so that the 'company_id' field defaults to the current company. opw-3596984 Forward-Port-Of: odoo/enterprise#52015 Forward-Port-Of: odoo/enterprise#51290
Original PR description
…,lu_reports,ro_saft}: make file generation error widget function generic This commit refines the file generation error widget to make it more generic and applicable to various reports. Originally introduced for the saft report (see commit [49c9dc9](https://github.com/odoo/enterprise/commit/49c9dc9151435fddfc2e3b62ad397015f144a7b6), the need arose to extend its functionality to other report categories, necessitating its relocation to the `account_reports` module. Additionally, this commit enhances the feature by optimizing the usage of `action_params`. By adopting `kwargs` instead of `args`, we now explicitly define the parameters used, allowing for greater flexibility when providing the `FileGenerationErrorWidget` with functions that have multiple arguments. task-3619165
Worksheet templates can now be created directly from the list view, making setup faster and more straightforward. Color selection is handled automatically, default templates include helpful placeholder text, and related worksheet tests were updated to match the improved flow.
Original PR description
before this commit, worksheet templates open in form view when new templates is created and user can set color from worksheet form view. This commit remove form view and color fields from list view as user can direct create templates in list view while color can automatically set using template id. Placeholder is added in default worksheet template. task: 3251753
This commit adapts the timesheet_timer_header to better handle its responsiveness. On tablet size screen (mg to lg) the view was breaking. This commit adds a text-nowrap on the stop button and adapt the size of the inputs next to the timer. The timer was also moving the content since it's not a monospace font, a .SCSS file is created to add `tabular-nums` to manage the font size. task-3580643 Community: https://github.com/odoo/odoo/pull/140750 Forward-Port-Of: odoo/enterprise#50055
Original PR description
This commit adapts the timesheet_timer_header to better handle its responsiveness. On tablet size screen (mg to lg) the view was breaking. This commit adds a text-nowrap on the stop button and adapt the size of the inputs next to the timer. The timer was also moving the content since it's not a monospace font, a .SCSS file is created to add `tabular-nums` to manage the font size. task-3580643 Community: https://github.com/odoo/odoo/pull/140750 Forward-Port-Of: odoo/enterprise#50055
In odoo/enterprise#38268, we have added a survey type to allow to simplify the survey creation by only displaying relevant options for the type chosen. We have also added the appraisal type in the hr_appraisal_survey module, and hidden it in the survey views because that type is only relevant for the appraisal module and we don’t want to see it in the survey app. From 16.4, that type is no longer hidden in the app survey. This fix solves the problem. Technical notes: Following the change in
Original PR description
In odoo/enterprise#38268, we have added a survey type to allow to simplify the survey creation by only displaying relevant options for the type chosen. We have also added the appraisal type in the hr_appraisal_survey module, and hidden it in the survey views because that type is only relevant for the appraisal module and we don’t want to see it in the survey app. From 16.4, that type is no longer hidden in the app survey. This fix solves the problem. Technical notes: Following the change in odoo/enterprise#37387 that makes "primary" the override of the survey form that hide the appraisal type, the appraisal type is no longer hidden in the survey app. This is because in the override, we add a class used in css to hide that option (no longer present in survey because of the primary). To avoid modifying view in stable, we target the "appraisal" option without that added class. Task-3613370 Forward-Port-Of: odoo/enterprise#51591
… is private Before this commit -> project.task gantt view > the planned date should not be visible when the task is private -> In reporting after entering into SLA Status Analysis, in the measures button we'll be having both Average Rating and Rating (/5). So we have to disable Average Rating from the Measures drop down menu After this commit -> project.task gantt view > the planned date should be set by default even if the task is private -> I have disabled the Average Ra
Original PR description
… is private
Before this commit
-> project.task gantt view > the planned date should not be visible when the task is private
-> In reporting after entering into SLA Status Analysis, in the measures button
we'll be having both Average Rating and Rating (/5). So we have to disable
Average Rating from the Measures drop down menu
After this commit
-> project.task gantt view > the planned date should be set by default even if the task is private
-> I have disabled the Average Rating field from the Measures drop down men
task-3474438
Forward-Port-Of: odoo/enterprise#51790
Forward-Port-Of: odoo/enterprise#46377Since commit 8c8dfb07f9dcf1612100996a0a224b556da8c508 in community, the xpath was no longer targeting the correct element. Community PR https://github.com/odoo/odoo/pull/132215 task-3463329 part of task-3326263 Forward-Port-Of: odoo/enterprise#51684 Forward-Port-Of: odoo/enterprise#51011
Original PR description
Since commit 8c8dfb07f9dcf1612100996a0a224b556da8c508 in community, the xpath was no longer targeting the correct element. Community PR https://github.com/odoo/odoo/pull/132215 task-3463329 part of task-3326263 Forward-Port-Of: odoo/enterprise#51684 Forward-Port-Of: odoo/enterprise#51011
#### Description Uninstalling the web_map module and installing the knowledge module results in a missing dependency error in 16.0 and a blocking screen when trying to log in from 16.1 onwards. This commit fixes this issue by adding web_map to the dependencies of the knowledge app, as we are importing MapRenderer from the web_map module. See this [commit](https://github.com/odoo/enterprise/blob/16.0/knowledge/static/src/components/external_embedded_view_insertion/views_renderers_patches.js#L
Original PR description
#### Description Uninstalling the web_map module and installing the knowledge module results in a missing dependency error in 16.0 and a blocking screen when trying to log in from 16.1 onwards. This…
#### Description Uninstalling the web_map module and installing the knowledge module results in a missing dependency error in 16.0 and a blocking screen when trying to log in from 16.1 onwards. This commit fixes this issue by adding web_map to the dependencies of the knowledge app, as we are importing MapRenderer from the web_map module. See this [commit](https://github.com/odoo/enterprise/blob/16.0/knowledge/static/src/components/external_embedded_view_insertion/views_renderers_patches.js#L9) Issue is introduced from this [commit](https://github.com/odoo/enterprise/commit/0ffc548c0afa7434f40cccf91df62e5e5172e374#diff-94bdcbce3efa072706e30a6c3110a3b76dc8ce6d0a3e725155308a5cbe0794a2R9) #### Related Task opw-3522134 #### Reproducing the error in 16.0 - [Video](https://drive.google.com/file/d/1tRhJa07iIt46Ec-zj17jseB7Ws5MoqmY/view?usp=share_link) #### Reproducing the error in 16.1 - [Video](https://drive.google.com/file/d/1iM-VcxKCeX5bCKsrNDX6WZVQsrpljH6i/view?usp=share_link) Forward-Port-Of: odoo/enterprise#51614 Forward-Port-Of: odoo/enterprise#49199
[FIX] sale_subscription: allow to cancel and set to quotation uninvoiced orders Before this commit, when an order was a renewal of an invoiced order, it was not possible to cancel it even if this renewal had no invoice. It was also not possible to put it back to quote because the conditions was based on the invoice_count value. This PR also fix the way the invoices are computed for subscriptions taskid: 3527957 Forward-Port-Of: odoo/enterprise#51578 Forward-Port-Of: odoo/e
Original PR description
[FIX] sale_subscription: allow to cancel and set to quotation uninvoiced orders
Before this commit, when an order was a renewal of an invoiced order, it was
not possible to cancel it even if this renewal had no invoice.
It was also not possible to put it back to quote because the conditions was based
on the invoice_count value.
This PR also fix the way the invoices are computed for subscriptions
taskid: 3527957
Forward-Port-Of: odoo/enterprise#51578
Forward-Port-Of: odoo/enterprise#48239The following commit https://github.com/odoo/enterprise/commit/1559549ba108ed7fbeaca42ddf1581f42411939f must be reverted as it did not fully correct the file generation error widget when calling function with multiple arguments. While it fixed the issue for multiple arguments, it does not work anymore in some cases with one argument. Indeed, some errors are raised when using a single parameter with multiple records. task-3610890 Forward-Port-Of: odoo/enterprise#51647
Original PR description
The following commit https://github.com/odoo/enterprise/commit/1559549ba108ed7fbeaca42ddf1581f42411939f must be reverted as it did not fully correct the file generation error widget when calling function with multiple arguments. While it fixed the issue for multiple arguments, it does not work anymore in some cases with one argument. Indeed, some errors are raised when using a single parameter with multiple records. task-3610890 Forward-Port-Of: odoo/enterprise#51647
Unfolding the first or last line of the report allows viewing the detail of the content per account, generating one line for each entry. Those lines didn't use any caret option, so they were not annotable, and did not allow opening the general ledger from them, like on any other report. Forward-Port-Of: odoo/enterprise#51628 Forward-Port-Of: odoo/enterprise#51172
Original PR description
Unfolding the first or last line of the report allows viewing the detail of the content per account, generating one line for each entry. Those lines didn't use any caret option, so they were not annotable, and did not allow opening the general ledger from them, like on any other report. Forward-Port-Of: odoo/enterprise#51628 Forward-Port-Of: odoo/enterprise#51172
pos*: pos_blackbox_be, pos_l10n_se For orderlines with a price of 0, the receipt will now display the price as 'Free' instead of '0.00' and will remove the tax letter following this price. Community PR: odoo/odoo#143285 Forward-Port-Of: odoo/enterprise#51338
Original PR description
pos*: pos_blackbox_be, pos_l10n_se For orderlines with a price of 0, the receipt will now display the price as 'Free' instead of '0.00' and will remove the tax letter following this price. Community PR: odoo/odoo#143285 Forward-Port-Of: odoo/enterprise#51338
…another company - Create a bank account linked to a partner in company A. - Create a statement line with the same account_number in company B. - Open the bank reco widget using a user having access to company A and B => check_company failed when validating the statement line. Forward-Port-Of: odoo/enterprise#51923 Forward-Port-Of: odoo/enterprise#51132
Original PR description
…another company - Create a bank account linked to a partner in company A. - Create a statement line with the same account_number in company B. - Open the bank reco widget using a user having access to company A and B => check_company failed when validating the statement line. Forward-Port-Of: odoo/enterprise#51923 Forward-Port-Of: odoo/enterprise#51132
The REST API UPS integration done in #43538, was missing some changes that were added after version 15.0. Mainly: -Package and Commodity classes moving to `delivery` module. -Commercial invoice for international shipments. Also in 16.0 `group` in views behavior changed, which broke the setup guide in 16.0, this PR contains the fix Forward-Port-Of: odoo/enterprise#51736 Forward-Port-Of: odoo/enterprise#51274
Original PR description
The REST API UPS integration done in #43538, was missing some changes that were added after version 15.0. Mainly: -Package and Commodity classes moving to `delivery` module. -Commercial invoice for international shipments. Also in 16.0 `group` in views behavior changed, which broke the setup guide in 16.0, this PR contains the fix Forward-Port-Of: odoo/enterprise#51736 Forward-Port-Of: odoo/enterprise#51274
[FIX] res_config: change the Chinese yuan offshore currency unique name/code to point to the newly added currency. complementary of [adding the CNH currency PR](https://github.com/odoo/odoo/pull/144331) opw-3599124 Forward-Port-Of: odoo/enterprise#51831
Original PR description
[FIX] res_config: change the Chinese yuan offshore currency unique name/code to point to the newly added currency. complementary of [adding the CNH currency PR](https://github.com/odoo/odoo/pull/144331) opw-3599124 Forward-Port-Of: odoo/enterprise#51831