Daily updates from Odoo
Navigate
Branch
Tuesday, May 12, 2020
8 changes
Code cleanup and technical improvements
This update modernizes several Point of Sale components by moving screens and widgets to Odoo's newer interface framework. The change is mainly behind the scenes, but it helps improve maintainability and supports future improvements across POS-related features such as Belgian fiscal compliance, IoT, HR, and loyalty.
Original PR description
We are converting all widget and screen of the Point of Sale module and it dependencies into the new javascript framework. TASK-ID: 1978715
Miscellaneous changes
exclude other income and cost of sales from report line Box 13 - Revenue for the accounting period task-2187155 Forward-Port-Of: odoo/enterprise#8182
Original PR description
exclude other income and cost of sales from report line Box 13 - Revenue for the accounting period task-2187155 Forward-Port-Of: odoo/enterprise#8182
**Issue** - Install timesheet_grid - Go to Timesheet settings - Set negative delay for reminders Wrong Timesheet date reminders. Reminders mails sended multiple times. **Cause** By inserting a negative value, the schedulate date might be before today. An so, scheduler will send multiple reminders during the week/month. **Solution** If calculation of the nextdate is before or equal to now, it will reschedule it for the next week/month. opw-2207835 Forward-Port-
Original PR description
**Issue** - Install timesheet_grid - Go to Timesheet settings - Set negative delay for reminders Wrong Timesheet date reminders. Reminders mails sended multiple times. **Cause** By inserting a negative value, the schedulate date might be before today. An so, scheduler will send multiple reminders during the week/month. **Solution** If calculation of the nextdate is before or equal to now, it will reschedule it for the next week/month. opw-2207835 Forward-Port-Of: odoo/enterprise#10523 Forward-Port-Of: odoo/enterprise#10423
opw-[2245804](https://www.odoo.com/web#id=2245804&model=project.task&view_type=form&cids=1&menu_id=) Commit a25f5093ccd934d06c6a5b2c0634f2128bb9d7d4 created a performance issue by using a with statement on the account_move table, leading to a time out. By using a TEMP TABLE, the performances are not impacted anymore. Forward-Port-Of: odoo/enterprise#10512 Forward-Port-Of: odoo/enterprise#10343
Original PR description
opw-[2245804](https://www.odoo.com/web#id=2245804&model=project.task&view_type=form&cids=1&menu_id=) Commit a25f5093ccd934d06c6a5b2c0634f2128bb9d7d4 created a performance issue by using a with statement on the account_move table, leading to a time out. By using a TEMP TABLE, the performances are not impacted anymore. Forward-Port-Of: odoo/enterprise#10512 Forward-Port-Of: odoo/enterprise#10343
opw-[2224924](https://www.odoo.com/web#active_id=2224924&cids=1&id=2224924&model=project.task&menu_id=) Forward-Port-Of: odoo/enterprise#10361 Forward-Port-Of: odoo/enterprise#9525
Original PR description
opw-[2224924](https://www.odoo.com/web#active_id=2224924&cids=1&id=2224924&model=project.task&menu_id=) Forward-Port-Of: odoo/enterprise#10361 Forward-Port-Of: odoo/enterprise#9525
- Create an invoice of 5000 + tax, validate - Create a credit note of 1000 + tax, validate - Open the Mod 347 The amounts are summed while they should be subtracted. The Mod 347 report should take into account credit notes as negative amounts, which is not the case. opw-2222940 Forward-Port-Of: odoo/enterprise#10510 Forward-Port-Of: odoo/enterprise#10304
Original PR description
- Create an invoice of 5000 + tax, validate - Create a credit note of 1000 + tax, validate - Open the Mod 347 The amounts are summed while they should be subtracted. The Mod 347 report should take into account credit notes as negative amounts, which is not the case. opw-2222940 Forward-Port-Of: odoo/enterprise#10510 Forward-Port-Of: odoo/enterprise#10304
opw-[2243199](https://www.odoo.com/web#active_id=2243199&cids=1&id=2243199&model=project.task&menu_id=) In some cases, it is possible to have lines with a balance in the company currency and the balance in foreign currency of opposite signs. This can happen if it is the aggregation of multiple lines and the balance is close to 0. This is forbidden in Odoo because we should never create lines this way, but it can happen in imports. In this case, we need to split the lines and set the
Original PR description
opw-[2243199](https://www.odoo.com/web#active_id=2243199&cids=1&id=2243199&model=project.task&menu_id=) In some cases, it is possible to have lines with a balance in the company currency and the balance in foreign currency of opposite signs. This can happen if it is the aggregation of multiple lines and the balance is close to 0. This is forbidden in Odoo because we should never create lines this way, but it can happen in imports. In this case, we need to split the lines and set the balance in company currency on one line, and the balance in foreign currency in the other line. Forward-Port-Of: odoo/enterprise#10374 Forward-Port-Of: odoo/enterprise#10208
To get the location of partner, we either use: - http://nominatim.openstreetmap.org that is very restricted (see https://operations.osmfoundation.org/policies/nominatim/) - https://www.mapbox.com/ if the user has added a MapBox token in "Settings" > "Map Routes". It seems it is very easy currently to get banned on the first service, and if any request fails, the current code will totally stop. With this changeset, when a request for a location of a user has failed, we ignore it (the part
Original PR description
To get the location of partner, we either use: - http://nominatim.openstreetmap.org that is very restricted (see https://operations.osmfoundation.org/policies/nominatim/) - https://www.mapbox.com/ if the user has added a MapBox token in "Settings" > "Map Routes". It seems it is very easy currently to get banned on the first service, and if any request fails, the current code will totally stop. With this changeset, when a request for a location of a user has failed, we ignore it (the partner will not be in the map, but the map will still be shown). opw-2243126 Forward-Port-Of: odoo/enterprise#10513 Forward-Port-Of: odoo/enterprise#10469