Branch
[FIX] base: translate the headings of the user groups view The access rights headings of the user form (application categories, "User Type", "Other", "Access Rights Mismatch") stay in English for users in another language. The view `base.user_groups_view` is regenerated in en_US, and writing an arch in en_US only keeps the translations of the terms the previous arch already had. During module installation the view is replaced by a dummy arch without any term, so the translations loaded at that time are lost and the arch regenerated afterwards has none. Translate the terms of the regenerated arch for every installed language, from the translated names of the module categories and the code translations of the literal headings.
[FIX] base: the server action of a scheduled action is indexed ir.cron inherits ir.actions.server through ir_actions_server_id, so a stored field of a scheduled action that depends on a field of its server action is recomputed by searching the scheduled actions on ir_actions_server_id, a column without index. Backport of the index Odoo 19.0 sets on that field (odoo/odoo commit 082b8ce1f729, [IMP] base{_automation}: act_server parent buttons).
[FIX] website: the drag and drop tour waits for the thumbnails to be draggable The editor ignores the drag of a snippet thumbnail while an insertion is ongoing: the handle of its draggable is .oe_snippet_thumbnail:not(.o_we_ongoing_insertion), and a snippet chosen in the dialog of a group keeps every thumbnail so until callPostSnippetDrop is over. The steps of the other snippets wait for that through the removal of the snippet, but a popup is hidden instead of removed: on a busy machine the next drag starts before the end of the popup's insertion, no drop zone shows up and test_03_snippets_all_drag_and_drop fails with `0 matching ":iframe #wrap .oe_drop_zone"` right after s_popup (runbot build 227266, twice in a row). Only drag a thumbnail the editor takes.
[FIX] base_iban: flag a non-IBAN number only where IBAN is the norm Every bank account number that did not look like an IBAN got the red "not an IBAN" mark, including domestic numbers of companies in countries that do not use IBAN (Vietnam). Ask the server whether the company's country uses IBAN (territories that bank with another country's IBAN count as that country) and show the mark only then. Numbers that look like an IBAN are checked as before.
[I18N] point_of_sale: translate the customer display type labels in Vietnamese The four labels of the customer display selection of a point of sale (None, The same device, Another device, An IOT-connected screen of the Customer Facing Display) are translatable after the fix of the previous commit: add them to the template and translate them to Vietnamese. 4 entries added to point_of_sale.pot and vi.po.
[I18N] stock, *: translate the stock Location as Dia diem in Vietnamese A stock location reads "Dia diem" in the Vietnamese UI of the inventory apps instead of "Vi tri": source and destination locations, child and parent locations, location types, storage categories of locations, the view location type, the warehouse view location and the relocation of stock. "Vi tri" stays where it means a position. 246 entries updated across 14 modules (stock, stock_account, stock_fleet, stock_picking_batch, mrp, mrp_subcontracting, mrp_subcontracting_dropshipping, repair, purchase_stock, sale_stock, spreadsheet_dashboard_stock_account, point_of_sale, barcodes_gs1_nomenclature, and the mrp, sale_amazon and account_add_gln descriptions in base); translations only.
[FIX] l10n_vn_edi_viettel: fetch only the missing SInvoice files on re-send Steps to reproduce: - Send & Print a posted customer invoice with "Send to SInvoice" ticked: the invoice is issued and its PDF and XML files are fetched from SInvoice and stored on the invoice. - Send & Print the same invoice again, for instance to email it to the customer. Current behavior: `_call_web_service_after_invoice_pdf_render` calls `_l10n_vn_edi_fetch_invoice_files` for every invoice already sent, so both files are fetched from SInvoice again on every Send & Print. Each run creates a second attachment on the same binary field and posts a new "Invoice sent to SInvoice" note in the chatter. Besides, when SInvoice answers with an empty `fileToBytes`, the retry loop gives up and the empty content is stored as the PDF file; a reply without the `fileToBytes` key raises a KeyError in that loop, and a reply that is not a ZIP archive raises zipfile.BadZipFile out of `_l10n_vn_edi_fetch_invoice_xml_file_data`. After this commit: A file already stored on the invoice is not fetched again; only a missing one is. An empty reply, a reply without the file key and a non-ZIP reply are returned as error messages, which Send & Print shows on the invoice like the other SInvoice errors. The two new messages are added to the translation template and the Vietnamese catalog. Closes Viindoo/odoo#1328
[FIX] point_of_sale: pass noupdate True for pos load demo data Backport of odoo/odoo@1bed05062d1a76763156220e6626ab071b3c578d (17.0), adapted to 16.0 where the onboarding data is loaded by pos.session.check_product_wizard.load_demo_products(). When a database has no PoS product, the user can load sample products from the PoS opening wizard. They are created from data/point_of_sale_onboarding.xml, which is not listed in the manifest, with noupdate=False. On the next upgrade of point_of_sale these xmlids are not reloaded, so _process_end() tries to delete the records. Once one of the sample products has been sold, the upgrade crashes: psycopg2.errors.ForeignKeyViolation: update or delete on table "product_product" violates foreign key constraint "pos_order_line_product_id_fkey" on table "pos_order_line" and the unsold sample products are silently deleted. Load the file with noupdate=True so the records are left alone on upgrade. Databases which already loaded the sample products keep their noupdate=False xmlids and must be fixed by setting noupdate on them.
[FIX] website_sale: a garbage ?category= on a product page must not answer 500 SQL-injection scanners request product pages with payloads in ?category= (e.g. "1' AND 1=1 UNION SELECT NULL-- -"): int(category) raised ValueError in _prepare_product_values and the page answered 500 - 1,031 times in one week on a production 16.0 shop. The earlier guard only covered the shop listing. The category only drives the breadcrumb and the back link here, so an invalid one is ignored, as upstream 19.0 does.
[FIX] website_sale: a garbage ?category= on a product page must not answer 500 SQL-injection scanners request product pages with payloads in ?category= (e.g. "1' AND 1=1 UNION SELECT NULL-- -"): int(category) raised ValueError in _prepare_product_values and the page answered 500 - 1,031 times in one week on a production 16.0 shop. The earlier guard only covered the shop listing. The category only drives the breadcrumb and the back link here, so an invalid one is ignored, as upstream 19.0 does.
[FIX] website: deflake link_tools tour when the editor activates blocks late test_15_website_link_tools fails at "Pick '/contactus" on the 17.0 runbot builds with every addon installed (226014: 3 attempts out of 3, 225958: 1 out of 2): the '/contactus (Contact Us)' suggestion is listed, but in a hidden dropdown. The editor activates the blocks the tour clicks one after the other. The tour clicks the image of the block, then the link of its text, and uses the link tools right away. On a loaded machine the activation of the link's block ends while the link tools already search suggestions. That activation first closes the widgets of the options it replaces, still the ones of the image, and closing the URL picker of the image hides the first website URL dropdown of the page: the one of the link tools. The searches that follow keep that hidden dropdown alive. Wait for the editor to show the options of the image after the click on it, then for the options of the link's block to replace them after the click on the link, before using the link tools. Reproduced on a database with 832 of the addons of the runbot build, with the suggestion requests slowed down to their runbot duration and the editor slowed down by debug logging: the tour failed at that step in 3 runs out of 8, each time right after the URL picker of the image had hidden the link tools dropdown, which it did in no passing run. With the waits it passed 6 runs out of 6 in the same conditions: the URL picker of the image still closed twice per run, always between the two waits, and never while the link tools were in use.
[FIX] mrp: align open transfer bom lines before updating component quantity _link_bom now points the raw move and its open same-product origins at the new BoM line before writing product_uom_qty. A phantom kit puts bom_line_id in the merge key, so a quantity delta can fold into the open transfer instead of becoming a return. Co-authored-by: Cursor <cursoragent@cursor.com>
[FIX] website_event: call the parent start with the widget as `this` `this._super.apply(this.arguments)` passes `this.arguments` (undefined) as the receiver and no arguments at all. The parent start therefore ran with an undefined `this`, which has worked by accident only as long as the inherited start never touched `this`: as soon as a module includes `publicWidget.Widget` to wrap `start`, the registration form crashes with "Cannot read properties of undefined (reading '_super')" and every website_event tour breaks. Pass the widget and the real arguments, as `init` and `destroy` already do.
[FIX] website_sale: wait for each cart line removal in the reorder tour The fourth reorder of website_sale_reorder_from_portal empties the cart by clicking the first delete link four times, one second apart. The quantity change is debounced (500ms) then sent by RPC, and the input ignores changes until the answer comes back; on a loaded runbot the round trip exceeds the remaining 500ms, so a click hits the line still being removed and is lost. A line stays in the cart, the reorder then asks whether to clear it, and the tour fails at "Checking if Reorder Product 1 is in the cart" (runbot build 225353). Wait for the cart lines to be re-rendered (the clicked link is detached) before removing the next line instead of sleeping a fixed second.
[FIX] website_sale: a garbage ?category= on a product page must not answer 500 SQL-injection scanners request product pages with payloads in ?category= (e.g. "1' AND 1=1 UNION SELECT NULL-- -"): int(category) raised ValueError in _prepare_product_values and the page answered 500 - 1,031 times in one week on a production 16.0 shop. The earlier guard only covered the shop listing. The category only drives the breadcrumb and the back link here, so an invalid one is ignored, as upstream 19.0 does.
[FIX] stock_account: keep the manual value of a move in onchange The manual value of a move is searched with the id of the move. In an onchange, as when the cost of a sale order line is recomputed in its form, the move is a new record whose id is a NewId: the domain logs "Domains don't support NewId" and matches nothing, so the move is valued as if its value had never been set manually. The manual value is now searched with the id of the original move. (cherry picked from commit 5b0fc0c6ab0c94fcb105aaa88902abca3d7ece94)
[FIX] iot_drivers: name print jobs without a space The print server (CUPS) of Debian 12, in its version 2.4.2-3+deb12u10, ends with a segmentation fault (SIGSEGV) when a job is started with a document name that has a space. The IoT Box named the job and the document of every print "Odoo print job", so the print server stopped each time the box tried to print and nothing could be printed. Now the job and its document are named "Odoo-print-job", which has no space, so the print server keeps running and the box prints again. (cherry picked from commit 312cd33c1e1b34007f6aa4d453a59251887b4158)
[FIX] website: the translation tour saves once the editor dropped the Edit button Entering the editor starts a 200 ms timer that drops the Edit button from the systray. snippet_translation_changing_lang saves its translation right after the editor opened: with nothing to save the editor closes at once and only puts the Edit button back when it is missing, which it is not yet. When the frame applying that closing render comes after the timer, the timer drops the button for good and the tour waits for it in vain ("[16/23] ... Click Edit dropdown ... has not been found"). Viindoo runbot 227268 failed so (auto-retry was off after an earlier failure) and 227211 on its first try; on an idle machine the closing render beats the timer by only 9 to 17 ms. The tour waits for the editor to drop the Edit button before saving. Reproduced by delaying the frame after the save by 40 ms: the tour failed 3 times out of 3, and passes 3 times out of 3 now, as it does without the delay. Odoo fixed the timer itself in master (b95717fb42ab).
[I18N] mail: translate search and starred labels in Vietnamese The conversation search in Discuss was untranslated in Vietnamese. It now reads "Tìm cuộc trò chuyện". The starred-messages mailbox and the starred-message marker were also untranslated. Both now read "Tin nhắn đã gắn sao", so Vietnamese Discuss users see the same wording on the mailbox and on the marker. Translations only; one file changed, addons/mail/i18n/vi.po.
[FIX] spreadsheet: translate the label of dashboard facets The label of a global filter is translated in the dashboard filter dropdown but was displayed untranslated in the search bar facet of an active filter, because getFacetInfo returned the raw label. Translate it with _t, as the dropdown does. (cherry picked from commit bd2fb8a88906c0613e0e33b731293c3ca49934fb)
[I18N] mrp, website_sale: the order form and the shop product page read in Vietnamese On a Vietnamese interface, the manufacturing order form shows "Cần sản xuất" for the "To Produce" status span, "Tạo lô" for "Generate Lot", and the two lot-number tooltips "Xóa số lô/sê-ri đã chọn" and "Tạo số lô mới". The shop product page shows its "Tài liệu" heading, its "Thêm vào giỏ hàng" add-to-cart buttons, and the "Tất cả sản phẩm" breadcrumb in Vietnamese. Each of these terms is the whole element around the words (the status span, the button markup, the breadcrumb link), so the existing translations of the bare words never applied: the msgid is the full markup and an empty msgstr left it in English. Translations only; no code, view or data change.
[FIX] stock_account: date a valued move without accounting rights Moving the date of a valued move replays the valuation of its products from the earlier date, and since 501a537426e7 the replay posts correction entries. They were created with the rights of the user who moved the date, who may hold no accounting right: - a stock user applying a count at a past counting date (the Apply dialog dates the count moves after they are done); - a manufacturing user marking an order done: core dates the done moves of the order again with the clock, which is a second later than their completion on a loaded server (mrp_account test_mrp_user_with_timesheet_permissions_can_produce_mo fails at random on the runbot). Both got "You are not allowed to create 'Journal Entry' (account.move) records". The valuation of a move being done runs as superuser (_action_done); the replay a new date triggers now does too.
[I18N] point_of_sale, pos_*: the point of sale, restaurant and payment terminals read fully in Vietnamese Each catalog is re-exported from an isolated build of its module with demo data and vi_VN loaded, so it also carries the 20.0 strings it was missing. Every entry left with an empty msgstr is translated after reading the screen and role it shows on (field, button, menu, selection, help, error, email, builder option). Entries whose correct translation equals the source (codes, brand and product names, "Odoo") stay empty. Wording follows the terms already settled in the lower modules. - point_of_sale: the order slot to pick reads "Khung giờ"; the payment provider of a payment method reads "Cổng thanh toán". - pos_restaurant: a course reads "Lượt món".
[FIX] point_of_sale: make the customer popup test independent of the partners in the database test_customer_popup preloads 15 partners and expects "Z partner to search" and "Z partner to scroll" to be outside that window, then the scrolled page to load them. This only holds when the database already holds between 15 and about 30 active partners sorted before them. On a database with only point_of_sale installed, the new partners are in the preloaded window and the tour fails at "Check "Z partner to search" is not in the partner list"; with many partners, or under the C collation where lowercase names sort after "Z", the window or the scrolled page does not match either. Create the partners that fill the list in the test, and preload exactly the partners that get_limited_partners_loading sorts before the new ones.
[I18N] *: four more strings use the settled Vietnamese terms - sale: the analytic account of the sales order reads "Tài khoản quản trị" like every other analytic account label. - payment_paymob, mass_mailing: modern tone marks ("Khóa HMAC", "tối ưu hóa"). - google_address_autocomplete: enabling billing on the Google project reads "Bật thanh toán", the wording the website settings use for the same Google Cloud step. msgstr changes only.
[I18N] base: a record filter domain reads "Điều kiện lọc" The domain of access rules, actions, saved filters, fields and the translation export wizard read "Miền", a word a user does not connect with filtering records, while the domain editor of the web client and the owner-reviewed entries say "Điều kiện lọc". The base labels, helps and errors now use the same term; an internet domain stays "Tên miền". msgstr changes only.
[I18N] base: settings and technical screens read correctly in Vietnamese Every entry of the base catalog was read against the screen it shows on (field, view, selection, menu, action, error raised by the code) and corrected where the Vietnamese was literal, wrong in meaning, the wrong word class or left in English; empty entries are translated. - Code and literal values a user types or reads as code are no longer translated: field names, domains, view modes and list attributes in help and error texts (record, Command, 'form', 'list', "editable", "top"/"bottom", [('color','=','red')]). - Wrong senses are fixed: Model Count, Directive, Subsequences, vat label, view architecture, Rates and Rate String of currencies, South America, South Korea, United States, the demo invoice terms whose meaning was inverted, the new-password and auto-install helps. - One term per concept across the technical screens: Model = "Mô hình", Module = "Phân hệ", Wizard = "Công cụ", Child / Parent = "con" / "cha", Profiling = "Phân tích hiệu năng", implied groups = "Nhóm được cấp kèm", Light User = "Người dùng cơ bản", paper format = "Khổ giấy". - Partner identifier labels and helps, access rule texts, translation validation and IBAN messages, and icon tooltips now read in Vietnamese. msgstr changes only.
[I18N] *: new 20.0 strings use the settled Vietnamese terms Strings that are new on 20.0 still carried the pre-review wording of the community catalogs. They now read with the settled terms, each checked on the screen it shows on: - stock: the Lock / Unlock buttons of the transfer form read "Khóa" / "Mở khóa"; account, account_edi_ubl_cii, sale, digest, mrp use the modern tone marks (hóa, hủy, khóa). - account: the residual amount helps speak of a journal item ("phát sinh kế toán"), not a journal entry; the send wizard model is a "công cụ". - calendar: the button that opens a meeting from an activity reads "Xem". - product: the On Hand quantity help reads Location as "Địa điểm", child locations as "địa điểm con" and Shop as "Cửa hàng". - mrp: the new work center strings (planning conflicts, block and unblock messages, barcode help and constraint, empty-state help) read "Trung tâm sản xuất" and the Shop Floor wording. msgstr changes only.
[I18N] *: carry the Vietnamese wording onto reworded 20.0 strings The Vietnamese translations cherry-picked from 19.0 land on the 20.0 entries whose English source is unchanged. Part of those strings were reworded on 20.0: a label shortened or renamed (Time Off Type -> Time Type, Send Money -> Trust Bank Account), a sentence rephrased, the icon markup moved from Font Awesome to Material Symbols, or the text wrapped in a new element. Each of these 20.0 entries now carries the approved 19.0 Vietnamese wording, adapted only where the English changed, after reading the screen the string shows on (field, view, email template or code). Placeholders, tags and template expressions are kept as in the source. msgstr changes only: no msgid, no .pot, no code.
[FIX] tools: convert PDFs using simple fonts to PDF/A Steps to reproduce: - Install the optional `fonttools` package (it is also pulled by other packages, e.g. `pyHanko[opentype]`) - Run `odoo-bin -i test_base --test-tags /test_base:TestPdf` Issue: `test_convert_to_pdfa_without_outlines` fails with `KeyError: '/DescendantFonts'`. Cause: When `fonttools` is installed, `convert_to_pdfa` rewrites the glyph widths of the fonts used in the PDF and reads `/DescendantFonts` of every font, assuming they are all composite (Type0) fonts like the ones embedded by wkhtmltopdf. Simple fonts (Type1, TrueType, ...), such as the Arial font of `base/tests/files/file.pdf`, have no descendant fonts, so the conversion crashes. Without `fonttools` the whole block is skipped, which hides the issue. The callers (Factur-X/ZUGFeRD and ZATCA invoice PDFs) catch the exception and only log it, so such a PDF is sent without being converted to PDF/A. Fix: Only collect the descendant fonts of composite fonts. Simple fonts keep their widths in `/Widths` (or use the standard 14 font metrics) and are left untouched. Signed-off-by: David Tran <david.tran@tvtmarine.com>
[FIX] account: compare the exchange lines of the payments widget unordered _get_all_reconciled_invoice_partials unions its partial queries without an ORDER BY and the payments widget lists the exchange lines in that order, which depends on the plan PostgreSQL picks: with a merge join the rows come sorted by the join key rather than by line id, and test_reconcile_special_mexican_workflow_2 fails with "{'line_ids': [4182, 4180, 4184], ...} != {'line_ids': [4180, 4182, 4184], ...}" (reproducible locally with enable_hashjoin and enable_nestloop off). The order of those ids only feeds the list view opened from the widget, so sort both sides in the assertion helper.