Daily updates from Odoo
Thursday, January 9, 2025
3 changes · master
Enhancements to existing features
Odoo now detects when Instagram posts or YouTube videos have comments disabled on the platform and shows that status in the comments dialog. This prevents users from trying to comment where it is not allowed and hides misleading Instagram comment counts when comments are disabled.
Original PR description
- In case the comments for a post on INSTAGRAM, or the comments for a video on YOUTUBE are disabled (not PAUSED), we show it as disabled in the `StreamPostComments` dialog box (the dialog box opened…
- In case the comments for a post on INSTAGRAM, or the comments for a video on YOUTUBE are disabled (not PAUSED), we show it as disabled in the `StreamPostComments` dialog box (the dialog box opened by clicking on the comments icon) - we also hide the `instagram_comments_count` in case we have disabled on the instagram platform. IMPLEMENTATION DIFFERENCES =========================== INSTAGRAM --------- - while fetching all the posts during the execution of the function `_fetch_instagram_posts`, we request an additional field (is_comment_enabled) which gives us if commenting is enabled. - this field is only available to us on the `/media` endpoint. - this field is not available to us when we are requesting comments using the `/comments` endpoint on a specific post. - we create a new field to store it to simply use it to check if comments are enabled. YOUTUBE ------- - unlike instagram, the YOUTUBE DATA API does not provide us with any field while we are fetching the videos in the function `_fetch_channel_videos`. - but what it does provide is an errorneous response when we are requesting comments on a video that has comments disabled. (in case of instagram, it does not throw any error, it just gives an empty object) - we use that response to then derive the conclusion that comments on that video is disabled. - we have intentionally left a TODO, to check for a direct field which would give us the information about commenting on a video. Task-4070000
The signing request view was simplified by removing an unnecessary layout container. This minor cleanup helps keep the Sign interface easier to maintain without changing business workflows.
Users can now delete draft invoices that were imported with Mexican CFDI data. This removes an unnecessary restriction for imported documents while still preserving controls for invoices sent to SAT through Odoo.
Original PR description
If we import an invoice with CFDI, our fields are populated (and CFDI related fields) with the invoice state set to Draft. The current behaviour is to prevent invoice deletion when we have the CFDI. It makes sense to prevent the deletion of sent invoices when we send them to SAT via Odoo but when we import them, it'll be useful to be able to delete them. This commit enables the deletion of an imported invoice, even when the CFDI fields are populated. task-4306416