Daily updates from Odoo
Thursday, April 1, 2021
2 changes
Enhancements to existing features
Accounting reports can now handle VAT reporting for multiple countries or regions within the same company. Businesses with foreign VAT registrations can select the relevant fiscal position, generate separate tax reports, and create separate closing entries for each applicable VAT area.
Original PR description
Task 2304238 [IMP] account_reports: tax report: allow opening of foreign reports if needed A foreign tax report is considered available (and hence: is selectable in the report's menu) if there exists…
Task 2304238 [IMP] account_reports: tax report: allow opening of foreign reports if needed A foreign tax report is considered available (and hence: is selectable in the report's menu) if there exists at least one foreign VAT fiscal position for its country in the company. [IMP] account_reports: introduce fiscal_position option This option is used to filter what is displayed in the report depending on the foreign VAT fiscal positions. Available fiscal positions are obtained by checking the country of the report (the way this check is performed depends on the report type, but it's available for all of them, no only account.generic.tax.report). A 'domestic' and 'everything' option also exist, respectively to only show domestic operations (i.e. the ones without any fiscal_position_id), or all of them (domestic + all other fiscal positions from this country). Note that 'domestic' will not be available in case the country defined for the report does not match the company's fiscal country. In case a report is opened for a country that's not domestic and contains only one foreign VAT fiscal position, the filter is not displayed in the report, and this fiscal position is always selected. So, in most common cases, the option will stay hidden in the interface. It will only show if there are multiple VAT fiscal positions within the same country (for example, if a different tax report needs to be submitted per region, like in India). [IMP] account_reports: tax closing: one closing move per VAT fiscal position and tax report There is not a single tax closing move anymore. It's now unique per (country, fiscal_position). So, you can have multiple closing moves for the same period at the same time, for different operations in different areas. fiscal_position_id of these moves contain the foreign VAT fiscal position that was used to generated them, or None if the move is the closing for the domestic region. [IMP] account_reports, l10n*: add country_id to financial reports It is now possible to define which country a report belongs to. If not set, this field indicates that the report is not specific to a single country. [IMP] account_*, stock_intrastat, l10n_* : Generalize the use of account_fiscal_country_id Before, account_fiscal_country_id was only used for tax operations; and country_id was used for all the other accounting stuff. Now, with the new ability to use foreign tax reports (with foreign VAT fiscal positions), we can generalize the fiscal country, sot that it is the one that needs to be used for the whole accounting. Since foreign tax reports were not supported before, account_fiscal_country_id is already set on existing database as the country for the "main" accounting, so the impact of this change is small.
The appointment scheduling flow has been redesigned to make it easier for staff to manage appointment types and for visitors to find and book available slots. Updates include clearer appointment cards, search, simplified booking forms, shareable links, easier publishing controls, and more efficient slot setup.
Original PR description
# Purpose Improve the backend and frontend user interface. # Specifications * Redesign of the kanban view: - Add a publish ribbon on appointment type card when it is published. - Clicking on the card…
# Purpose
Improve the backend and frontend user interface.
# Specifications
* Redesign of the kanban view:
- Add a publish ribbon on appointment type card when it is published.
- Clicking on the card open the form view and the ellipsis button is removed.
- Clicking on the green button "X Scheduled" apply a default filter on this appointment type.
- Dynamically compute the start date of the calendar if they are appointments or not.
- Dynamically compute the display mode (aka scale). If they are appointments only on this week, we display the calendar in week mode, if they are appointments further in time, we display the calendar in month mode.
- Add a switch to publish/unpublish an appointment type from the kanban card.
* Redesign of the form view:
- Fix the buttons in the header
- Remove the chatter
- Add a share button to get a link towards an appointment type in the frontend with prefilled values. It allows also to preset appointment_type_ids or employee_ids to filter the information that the user will see when he will register.
- Remove the personal link of an employee in the form (in an other commit)
* Slots computation:
- Before the slots were generated one by one from each record created (weekday, starting hour and appointment duration). Now the slots are automatically generated with the addition of the ending_hour field. This allows to create multiple slots with one record. This number is equal to : (end_hour - start_hour) / duration.
* Frontend Appointment Submit Form:
- Remove the Country field in the generic part
* Frontend Appointment and Slot selection:
- The "Published" and "Edit in Backend" are now correctly displayed in the top bar
- The appointment type are now displayed in card style by default
- Add a search bar to filter appointment cards.
- Add hooks to customize the step of an appointment registration.
- When selecting a slot where you can choose the employee or change the timezone, you can refresh the available slots when you modify this parameters.
- Improve the display of the calendars to select slot. We display now one calendar at a time (with navigation buttons if need be) and display the slots next to the calendar.
# Links
Task-2190526
ENT PR: odoo/enterprise#9456
UPG PR: odoo/upgrade#2138