{"push_id":3093699201,"size":62,"distinct_size":27,"ref":"refs/heads/12.0","head":"3643042c1b6ad846bf2f50b38d03f5791844849a","before":"b9a971b86701aca4507e680697621ccfbc6e9e3b","commits":[{"sha":"9043305fa01fc21dc8a7dd996aa20765dbc7d93c","author":{"name":"XavierDo","email":"a1a56fd5af677733fcc9fce69c49c5e66d550efa@odoo.com"},"message":"[FIX] mail: verify attachment access early to avoid errors later","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/9043305fa01fc21dc8a7dd996aa20765dbc7d93c"},{"sha":"db1ce8b591eb7785dfb55ed931e9d72f88ddec67","author":{"name":"len-odoo","email":"a573b540d2dde90ba6da3b9d6286c8ec60c10044@odoo.com"},"message":"[FIX] stock_account: add a force_company to update the correct price in FIFO costing\n\nFine-tuning of commit: o50f77ba091189bd785d459c042a6cec04a125fdb\nWhen costing is in FIFO mode, product price can be updated whereas the current\nuser doesn't have the right to modify the products.\nIt therefore introduced a sudo() to make this computation;\nhowever since this is modifying a company-dependent field,\na force_company was missing to update the correct one.\n\nCloses #28487\nopw 1907377\n\ncloses odoo/odoo#28662","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/db1ce8b591eb7785dfb55ed931e9d72f88ddec67"},{"sha":"06373dde4eb46b4d392ec33cb070d53a94d4dbcd","author":{"name":"RomainLibert","email":"d3a53ea3f0d6ebbbf1eb8431093f132bc4577d93@odoo.com"},"message":"[FIX] resource,hr_payroll: disable timezone conversion\n\nIn the case of calculating payroll, we don't want to convert the\ndatetimes using the timezone of the user as we really want to see what\nthe employee has done from one date to another (usually from the start of\nthe month to end of the month)\n\nCloses #26256\n\ncloses odoo/odoo#28977","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/06373dde4eb46b4d392ec33cb070d53a94d4dbcd"},{"sha":"264f89f63f89678b01a75a20b508dd10018b00d8","author":{"name":"len-odoo","email":"a573b540d2dde90ba6da3b9d6286c8ec60c10044@odoo.com"},"message":"[FIX] web_editor: remove video option when composing email\n\nEmbedding a video can't work because it embeds an iframe, which is not supported\nby most email clients for security reasons.\n(What happens when Gmail shows embedded videos in displayed emails, is that you\nsend a link in the email body, and it is at rendering that Gmail adds the iframe\ninto the page.)\nSo the bugfix solution is to hide the button.\n\nSince there is an option \"res_model\" that allows us to know when we are in that\ncase, we remove the video option.\n\nopw 1905497\n\ncloses odoo/odoo#28911","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/264f89f63f89678b01a75a20b508dd10018b00d8"},{"sha":"499cdd57083da462eec0a66bf76be18a3c703101","author":{"name":"Raphael Collet","email":"fcee45b878db1f337818c5c606c1542797080a40@odoo.com"},"message":"[FIX] fields: combine special values during onchange\n\nConsider a many2one field `foo_id` on model `bar`, with an inverse one2many\nfield `bar_ids` on model `foo`.  During an onchange, the statement\n\n    bar.foo_id = foo\n\nputs a special value in cache to add `bar` to the value of `foo.bar_ids`\nwithout explicitly reading `foo.bar_ids`.\n\nExecuting the above statement a second time, the cache of `foo.bar_ids` is no\nlonger empty.  This causes the actual value of `foo.bar_ids` to be read and\nupdated.  The issue is that this can be slow for large values of `foo.bar_ids`.\n\nAvoid reading the value of the one2many field by handling the case where the\ncache contains the special value: simply update the special value to take into\naccount the second assignment.\n\ncloses odoo/odoo#28982","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/499cdd57083da462eec0a66bf76be18a3c703101"},{"sha":"63f077b888bc495d43fead6b11a688bbd21b2063","author":{"name":"Nicolas Martinelli","email":"771435c469f83f6aa9c405ac5e1ed06314a94f2d@odoo.com"},"message":"[FIX] account: sort partners in manual reconciliation\n\nWhen opening the Manual Reconciliation widget, all partners with opened\ninvoices and payments are fetched.\n\nIn some cases, the database might contain a lot of partners without any\nreconciliation suggestion; therefore, the partners with suggestions are\n'lost' in the view.\n\nThis commit sorts the data: we first display the parters with a\nsuggestion, then the others. This should improve the usability of the\nview.\n\nopw-1903575\n\ncloses odoo/odoo#28958","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/63f077b888bc495d43fead6b11a688bbd21b2063"},{"sha":"387c1edb9c0c39202af88b809da88fa71fa995b7","author":{"name":"Odoo Translation Bot","email":"e7f5472e9a159f4d404f1091c7e345bf7ac1ddb0@odoo.com"},"message":"[I18N] Update translation terms from Transifex","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/387c1edb9c0c39202af88b809da88fa71fa995b7"},{"sha":"c9e32872c00e8b324a540fb2cf5045b67420b364","author":{"name":"Lucas Perais (lpe)","email":"42d29efea96f3992aa24782120ec2948e42548fa@odoo.com"},"message":"[FIX] web: list default_sort with multiple fields\n\nDefine a x2m tree view with a default_sort including more than 1 field to order the list against\n\nBefore this commit, the second field was never used\n\nAfter this commit, it is used\n\nOPW 1909785\n\ncloses odoo/odoo#28840","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/c9e32872c00e8b324a540fb2cf5045b67420b364"},{"sha":"5c38c87ddd0538aaa75d5cbf153a274637edbd64","author":{"name":"Julien (juc) Castiaux","email":"611046fadbce425f90f3e6c162671e428dd59ee2@odoo.com"},"message":"[FIX] mail: access error for the id of another company\n\nWhen creating a mail for a user in an other company then the\nrecord, the \"send\" button fails with a traceback because on\nspecific template try to access the company.id of the user\nwhich is not accessible due to the access controle.\n\nThis PR fixes the problem by sudoing the access to company id.\nThe mail now sends without problem.\n\nStep to reproduce:\n\n1. Use two companies (comp1 and comp2)\n2. Use 3 users (user1, user2, user3)\n3. Be sure every user has a confirmed account\n4. Change the users to set both company as allowed.\n5. Set the current company of the users as follow:\n   user1: comp1\n   user2: comp2\n   user3: comp2\n6. Install the project module\n7. In `settings > security > record rules`, archive the rules named:\n   - `Project: multiple-company`\n   - `Project/Task: multiple-company`\n   - `user rule`\n8. Using user1, create a new project and a new task.\n9. Using user2, go to `Project module > Search`, remove `My tasks` filter,\n   select the task created by user1, in the chatter add user3 as follower.\n10. Send the mail => access error.\n\nThe `AccessError` is due to user2 trying to access comp1, in particular\n`company.name`.\n\nBy adding a `sudo`, we also make sure that the template rendering won't\nfail bacause of a similar `AccessError`.\n\nopw-1907844\n\ncloses odoo/odoo#28710","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/5c38c87ddd0538aaa75d5cbf153a274637edbd64"},{"sha":"ac5a1662f2ff1cc2287c1453920c80e78c617c0b","author":{"name":"Lucas Perais (lpe)","email":"42d29efea96f3992aa24782120ec2948e42548fa@odoo.com"},"message":"[FIX] web: propagate can_create into the search popup\n\nWhen creating a SO line and clicking on search more for product_id\n\nBefore this commit, every user had the button \"Create\" to create a product.product\n\nAfter this commit, only user in groups that actually can create a product have the button\n\nOPW 1910371\n\ncloses odoo/odoo#28924","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/ac5a1662f2ff1cc2287c1453920c80e78c617c0b"},{"sha":"5c2f96d0dde378fdb2736b2d67871954ab905434","author":{"name":"len-odoo","email":"a573b540d2dde90ba6da3b9d6286c8ec60c10044@odoo.com"},"message":"[FIX] mail: create attachments on the correct record when using the popup editor\n\nSend a message using the popup editor.\nDrag and drop an image into the message content.\nIt will create an attachment for the inlined image.\nHowever it did give a res_model value of mail.message but no res_id;\nadd_missing_default_value would fill in the res_id from the _context, which is\nnot the mail_message but the current object on which it applies\n(e.g. helpdesk.ticket).\nWe put the correct res_model along with the res_id.\n\nopw 1903194\n\ncloses odoo/odoo#28526","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/5c2f96d0dde378fdb2736b2d67871954ab905434"},{"sha":"c0f66d6c2dceda0ff0073dccce08af961e858672","author":{"name":"len-odoo","email":"a573b540d2dde90ba6da3b9d6286c8ec60c10044@odoo.com"},"message":"[FIX] mail: create attachments with the correct filename when using the popup editor\n\nSend a message using the popup editor.\nDrag and drop an image into the message content.\nIt will create an attachment for the inlined image.\nTo generate the values for the attachment, a regex is used to parse the content.\nBesides summoning Eldritch abominations, it didnt't take into account the\noriginal filename, whereas the default one (image) would have no extension.\nWe extend the regex to capture the filename and use it.\n\nopw 1903194\n\ncloses odoo/odoo#28527","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/c0f66d6c2dceda0ff0073dccce08af961e858672"},{"sha":"4be90e98d7683acc436ce8b707626a27234b9396","author":{"name":"Lucas Perais (lpe)","email":"42d29efea96f3992aa24782120ec2948e42548fa@odoo.com"},"message":"[FIX] sale: sales team target set on kanban\n\nHave a sales team without a target in the kanban view\nclick on define a target\n\nBefore this commit, the veiw wasn't rerendered, so the change apparently did not happen\n(while the write was triggered)\nAlso, the Enter key did not work to validate the input\n\nAfter this commit, the view is refreshed and the enter key works\n\nOPW 1906938\n\ncloses odoo/odoo#29055","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/4be90e98d7683acc436ce8b707626a27234b9396"},{"sha":"23313583b2b111610abb1940034859b07282f33b","author":{"name":"Lucas Perais (lpe)","email":"42d29efea96f3992aa24782120ec2948e42548fa@odoo.com"},"message":"[FIX] web: progressbar updates on field reset\n\nHave a form record with a progress bar\nModify the max_value of the progress, as well as the current_value bar through an onchange\n\nBefore this commit, the new max_value was not taken into account\n\nAfter this commit, it is.\n\ncloses odoo/odoo#29056","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/23313583b2b111610abb1940034859b07282f33b"},{"sha":"b1828c01d8f6cfa8ec430ef79f4778ddd0a80ac5","author":{"name":"Lucas Perais (lpe)","email":"42d29efea96f3992aa24782120ec2948e42548fa@odoo.com"},"message":"[FIX] hr_expense: create expense from email with taxes\n\nHave an expense product with a supplier tax on it\n\nWrite an email to be caught by the thread model to create an expense for that product\n\nBefore this commit, the tax was not set up on the expense\n\nAfter this commit, it is\n\nOPW 1908596\n\ncloses odoo/odoo#29061","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/b1828c01d8f6cfa8ec430ef79f4778ddd0a80ac5"},{"sha":"a1ba5ba4b30d0e19516e8f929e76cecc98e30d98","author":{"name":"Lucas Perais (lpe)","email":"42d29efea96f3992aa24782120ec2948e42548fa@odoo.com"},"message":"[FIX] account: view for invoice lines that doesn't rely on 'parent'\n\nThis commit tackles the issue of having the pseudo-object 'parent' in the\ninvoice lines views\n\nIn the regular o2m, parent refers to the current invoice\n\nFrom commit eca030cc3896835804cded22e62f44b879d8011a\nwe learn that parent.get() is not a valid field according to python\n\nFrom OPW 1912243, we learn that:\n- when the invoice line form view is standalone (not popped from the o2m)\n'parent' is not what we expect (in this case it will refer to the record list of all invoice lines, NOT the invoice)\n- parent.type in that case is undefined and makes the JS crash\n\nSo, to make sure we retrieve the right field and value, we retrieve them through\nrelated fields pointing to the invoice\n\ncloses odoo/odoo#29074","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/a1ba5ba4b30d0e19516e8f929e76cecc98e30d98"},{"sha":"bb8df1b79a086f403bfe431a9d46586dc50274df","author":{"name":"XavierDo","email":"a1a56fd5af677733fcc9fce69c49c5e66d550efa@odoo.com"},"message":"[FIX] mail: verify attachment access early to avoid errors later","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/bb8df1b79a086f403bfe431a9d46586dc50274df"},{"sha":"5472bbded51056a2322a24304db62e1d65dca464","author":{"name":"Martin Trigaux","email":"cc7c5be316e48d137cbb549833b85d91034d799d@odoo.com"},"message":"[FIX] mail: invite: use proper translation terms\n\nFix translation placeholders in invite wizard, to make them easier to\nunderstand for translators. Also rework the message generation code\nto ensure proper XML structure.","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/5472bbded51056a2322a24304db62e1d65dca464"},{"sha":"4d89b5e70b9718890453e0cde8fc2c7c9b5696e0","author":{"name":"Martin Trigaux","email":"cc7c5be316e48d137cbb549833b85d91034d799d@odoo.com"},"message":"[FIX] mail: invite: use proper translation terms\n\nFix translation placeholders in invite wizard, to make them easier to\nunderstand for translators. Also rework the message generation code\nto ensure proper XML structure.","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/4d89b5e70b9718890453e0cde8fc2c7c9b5696e0"},{"sha":"54472d9c138473ab84b8ec4b03123bfd3928fe30","author":{"name":"Andreas Perhab","email":"a4f5b93dfd57d1ed3c79c733e21aaff593ae92ef@wt-io-it.at"},"message":"[FIX] website_sale: check that date_order is set before comparing it\n\ncloses odoo/odoo#28668","distinct":false,"url":"https://api.github.com/repos/niulinlnc/odoo/commits/54472d9c138473ab84b8ec4b03123bfd3928fe30"}]}
{"actor":{"display_login":"niulinlnc"}}