Monday, August 9, 2021
3 changes · master
New functionality added to Odoo
Businesses can now create direct links for coupons and promotions that customers can use to apply offers to their online orders. If an offer cannot be applied right away, the customer sees the reason and the website remembers the offer to try again when the cart changes.
Original PR description
Coupons and promotion programs can now be shared by creating a link that can directly be used by the customer. Using the link, the system will try to apply the coupon/promotion to the customer's order. If this can't be done, the error will be shown to the user, for instance "A minimum amount of 1000$ is required to get the free ipad". That coupon/promotion will then be stored in session and the system will try automatically reapply it when something is added to the cart. task-2489749 Co-authored-by: Romain Derie <rde@odoo.com> Co-authored-by: Jeremy Kersten <jke@odoo.com> Co-authored-by: Tom De Caluwé <tdc@odoo.com>
Enhancements to existing features
Many-to-many avatar fields now display clearly in kanban and list views, showing a small group of avatars with a count for additional people. This makes records involving multiple users or employees easier to scan while preserving quick access to chats from visible avatars.
Original PR description
Purpose The aim of the current task is to adapt the design of this new widget to the list and kanban views. SPECIFICATION Kanban when there is only one record set in the m2m field, display it like a…
Resolved issues and error corrections
Subscriptions with a fixed end date now keep that original end date when automated invoicing runs after the contract has ended. This prevents invoices from being assigned to the wrong year and keeps subscription reporting aligned with the agreed contract dates.
Original PR description
- Create a subscription S with an end date 31.12.2020 (with recurring_rule_boundary == fixed) - Let's consider we are the 01.01.2021 (the cron Sale Subscription: generate recurring invoices and payments is applied) Bug: The end date of S was changed into 01.01.2021 instead of keeping 31.12.2020 So the year end invoicing was 2021 instead of 2020. PS: When the subscription is fixed, we only change the date end if we close it before the expected end. opw:2449986
Purpose The aim of the current task is to adapt the design of this new widget to the list and kanban views. SPECIFICATION Kanban when there is only one record set in the m2m field, display it like a many2one_avatar widget when there are two or three records set in the m2m field, display the avatars next to each other when there are more than three records set in the m2m field, display the first two avatars, then a grey circle with +X in it (where X is the number of records beyond the first two), when hovering the +X avatar, open a tooltip with the list of the remaining records the display order of the records is the same as the order in the m2m field the avatars behave like in the other avatar widgets (i.e. darkens on hover and clicking on it opens the chat) except the +X avatar that does not darken or has a cursor:pointer; on hover and is not clickable List same specs as for the kanban view, with the difference that the widget displays up to five records instead of three when the widget is editable display it like the current formview version of the many2many_avatar_user widget (i.e. tags with avatars) task-2563591 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr