- Nov 14, 2019
-
-
Christophe Monniez authored
When installing requirements on MS Windows platform with Python 3.8, the Pillow requirement is defined two times. This leads to a pip crash. With this commit, the Pillow requirement is only defined once. Fixes #40080 closes odoo/odoo#40239 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
Martin Trigaux authored
stdnum is not a mandatory dependency It is often present as required to install the base_vat module but having a system with account without the dependency should be possible. As the calc_check_digits is pretty small, it is easy to extract Forward port of 6091be6556d to 13.0 closes odoo/odoo#40253 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Martin Trigaux authored
After loading the calendar view, making a search with an inactive domain in the list will trigger a search "partner_ids not in []" which returns zero result. The code intention was to initialise the avoidValues, not to send an empty list. To reproduce the issue: 1. create an event shared between user 1 and 2 2. as user 2, open the Calendar menu -> shared event is present 3. click on "week" tab (forcing a refresh) -> shared event no longer appears Fixes odoo/odoo#39839 closes odoo/odoo#40106 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Nov 08, 2019
-
-
Victor Feyens authored
closes odoo/odoo#40054 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Jorge Pinna Puissant authored
Before this commit, when modifying a Many2one in a form view to add a new record, it will create the new record, and calculate the inverse and write it in all the records of the list. This will call the write method in all records even if they weren't changed. Now, the inverse is set to be modified only if it's different from the current value. opw-2091842 closes odoo/odoo#39927 Signed-off-by:
Jorge Pinna Puissant (jpp) <jpp@odoo.com> Co-authored-by:
Raphaël Collet <rco@odoo.com>
-
- Nov 14, 2019
-
-
fw-bot authored
The title says it all -_- closes odoo/odoo#39779 Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
-
Martin Trigaux authored
Do not insert variable inside a translated message, it will not be translated. Fixes odoo/odoo#40178 closes odoo/odoo#40242 X-original-commit: 54e5779c Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Nov 13, 2019
-
-
Nans Lefebvre authored
The mail_notification_paynow template expects a model_description parameter or defaults to the model _description, "Journal Entries". We add, similar to 4a3fd02a on sale.order, a type_name field to get the correct type name in an extensible way. Similar to 8c91b193, 65b6375c. opw 2120545 closes odoo/odoo#40216 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com>
-
William Henrotin authored
_action_done() creates extra stock move when quantity_done is superior to initial demand. This extra move should be, after confirmation, either merge into the original stock_move, either stay extra but the move lines still linked to the first one should be shared accordingly to the quantity done. The fix 561b3461 adapted the code for MRP to split the move lines but neither those cases are applied in MRP because the extra move has no picking_id field. condition : ```if merge_into_self and extra_move.picking_id:``` will therefore be false as well as ```if not merge_into_self:``` To be sure the two extra move management cases are complementary, this Commit keeps make sure the conditions are mutualy exclusive. closes odoo/odoo#40228 Opw: 2087864 X-original-commit: 4e8ac38a6d67bcd5040af0b580bfa43da7841548 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
Goffin Simon authored
Steps to reproduce the bug: - Let's consider two storable products P1 and P2 from the same vendor V - P1 and P2 have the routes 'Buy' and 'Make to order' - Create a SO for 1 P1 and 1 P2 and confirm it - A delivery order DO has been created - A PO has been created for V, confirm it - Process the shipment, receive 1 P1 and 0 P2 with no backorder - Process DO with no backorder - Return DO by clicking on 'Return' button Bug: 1 P1 and 1 P2 were suggested to be returned but the movement for P2 had been canceled. Closes #39547 opw:2116582 closes odoo/odoo#40211 X-original-commit: bb94b6591fb148a4c1b94f9c28d2c10e44e12283 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Nov 14, 2019
-
-
jvm-odoo authored
Reproduce the issue: - Install eCommerce app - Publish a product to your website - Add the product in your cart - Unpublish/make unsellable/archive the product The product is still in the cart and the checkout process can be done. Cause: There is no check for invalid products before displaying the cart This commit remove the invalid products while loading the cart. OPW-2092541 closes odoo/odoo#40168 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Nov 13, 2019
-
-
jvm-odoo authored
Reproduce this bug - Log in as portal user The top right address detail is over the icon. Cause The others fields are using a `span` who have a style who push them right. This commits add the `span` style for the div. Fine-tuning of 9e302765 OPW-2092345 closes odoo/odoo#40223 X-original-commit: af0fd50b14f32032f0870812dd615ac988183174 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
Fields `Nome` and `Cognome` cannot be identical. However, Odoo has only a single field for name. Therefore, we split the name based on the assumption that the name is written as 'Name Surname'. opw-2093035 closes odoo/odoo#40198 X-original-commit: 9e8b33d6 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
qsm-odoo authored
Changing the filter color and its intensity was not working anymore because of failed JS refactoring when the logic was shared for both blog posts and events in website. closes odoo/odoo#40217 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
William Henrotin authored
Planning the workorders depends on the quantity to produce of those workorder This will create as much as production batch needed regarding the workcenter capacity. This method is good except in case of product tracked by serial number. In that case the quantity to produce on the workorders is force to 1 regardless of the quantity to produce on the production closes odoo/odoo#39857 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Nicolas Martinelli authored
- Create a contact - Create a child contact without name Opening POS causes an error as the Name Field is not a string. opw-2121499 closes odoo/odoo#40203 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
- Create a Sale Order with a product - Confirm and deliver the product, create an invoice. - Cancel that invoice, go back to the SO. - Recreate the invoice, you have 2 of them (one cancelled). - Post the second, and try 'Send and print' and 'Preview'. A traceback is raised. The traceback arises because we sort on the `invoice_date`, which is `False` for a canceled invoice. Actually, we should not take into account canceled invoices. opw-2119870 closes odoo/odoo#40192 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
fw-bot authored
Without this commit, if you have the hr_timesheet installed, the one2many analytic lines view (in the Journal Items form) shows the hr_timesheet_line_tree view instead, which is not desired. closes odoo/odoo#40189 X-original-commit: 0b92bde84afac4a78512c475de3c8c822a1fa4b2 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
Laurent Smet authored
There is a constrains preventing writing debit/credit on an already reconciled journal item. However, this constraint isn't aware about monetary fields and then, was raising an error when writing amount like 1.000001 on a debit of 1.0. closes odoo/odoo#40182 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
Simon Lejeune authored
Make sure to update the standard price with the computed unit cost of the candidate and not its `unit_cost` field, as the computed could contain an extra value from a landed cost. closes odoo/odoo#40185 Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-
qsm-odoo authored
closes odoo/odoo#40184 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Laurent Smet authored
Introduced by https://github.com/odoo/odoo/commit/ab483a3a6610a09391ec00e9c1c49489ca4a4f12 There was no way to exit the 'cancelled' state of an account.payment. The new live-cycle is: - draft -> posted -> sent -> reconciled -> cancelled - action_draft to move the account.payment from ('cancelled', 'posted', 'sent', 'reconciled') -> 'draft' - cancel to move the account.payment from 'draft' -> 'cancel' closes odoo/odoo#40179 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
Samuel Degueldre authored
In 4d5c3b9f the arguments of the MenuEntryDialog widget were altered, and one instantiation of this widget was not adapted, resulting in the last parameter being undefined and causing a crash. This commit adapts that call. closes odoo/odoo#40171 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
oco-odoo authored
Before that, draft entries were taken into account in reconciliation propositions; which made no sense. 13.0 version of https://github.com/odoo/odoo/pull/39954 closes odoo/odoo#40167 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- Oct 30, 2019
-
-
Yenthe666 authored
Without the product_uom_category_id set you cannot edit this tree view. There is a domain [('category_id', '=', product_uom_category_id)] triggered from this view whcich is not fulfilled if we do not have the field set in the tree. closes odoo/odoo#39551 Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-
- Nov 12, 2019
-
-
Goffin Simon authored
Fine tuning of this commit: f93fcaff Steps to reproduce the bug: - Open runbot v11 - Restrict Demo's access to Sales Manager for sales and employee for Employee - Try to create a new quotation Bug: - You got Odoo server Error Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that: - Inventory/User - Accounting & Finance/Billing - Purchases/User - Purchases/Manager - Other Extra Rights/Portal (Document model: purchase.order.line) - (Operation: read, User: 5) opw:2120692 closes odoo/odoo#40149 X-original-commit: 1b14af28 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Nov 13, 2019
-
-
fw-bot authored
self.env.user returns the current user but browsed with the superuser: - self.env.user == current user - self.env.user.env.user == administrator get_context uses self.env.user to retrieve the context of the user. Before this patch, the name of the filters was translated in the language of the administrator instead of the current user. Closes odoo/odoo#40086 closes odoo/odoo#40142 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Nov 12, 2019
-
-
Gert Pellin authored
* In a pos-session with table management create a new order with products and go back to the floor-plan. * The order is sinced to the back-end. * Open the table again, remove all products but keep the order. * Go back to floorplan to trigger syncing again. * Open the table again. behaviour before fix: * The empty order is not loaded in the frontend anymore. * To close the session the order has to be manually removed in the backend. After fix: * The order is still visible in the frontend and can be removed or finalysed as expected. closes odoo/odoo#40103 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Nov 08, 2019
-
-
Jorge Pinna Puissant authored
Add the id of the current company to the evaluation context for ir.rule domains closes odoo/odoo#40035 Signed-off-by:
Jorge Pinna Puissant (jpp) <jpp@odoo.com>
-
- Nov 12, 2019
-
-
Manuel Vázquez Acosta authored
Commit 5fcf891e introduced optimizations for name_search in several models. However, that produces some counter-intuitive searches. In a DB with project and custom data: >>> Project = self.env['project.task'] >>> Project.search([('user_id', 'ilike', 'demo')]).mapped('user_id.name') ['Marc Demo'] >>> Project.search([('user_id', 'not ilike', 'demo')]).mapped('user_id.name') ['Marc Demo'] The projects returned with 'not ilike' are a super-set of those returned with 'ilike': >>> Project.search([('user_id', 'ilike', 'demo')]) project.task(22, 21, 20, 16, 14, 13) >>> Project.search([('user_id', 'not ilike', 'demo')]) project.task(22, 21, 29, 28, 27, 26, 25, 20, 16, 14, 13, 31, 30) This commit fix this behaviour by choosing '!=' instead of '=' whenever the operator is a negation operator. The 'res.users' is more exposed than the other models touched by 5fcf891e, because user may search for 'Created by' in the web client. closes odoo/odoo#40130 X-original-commit: b3c539b0 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
Victor Feyens authored
When assigning a default value to a computed monetary field, if self contains records with different currencies, the assignation will fail when trying to round the value (because self[currency_field] is a recordset of multiple currencies). Globally, assigning a monetary value to records in different currencies should never happen. The only case we want to support is defaulting a computed monetary to 0.0. Add clear error when trying to set monetaries in multi-currency. closes odoo/odoo#40128 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com> Co-authored-by:
Raphael Collet <rco@odoo.com>
-
Nicolas Lempereur authored
In IE Edge async and await are supported, but guardedCatch is added to polyfilled MyPromise object and async methods return original Promise so depending of chain guardedCatch can cause en error or not. It seems that historically, the MyPromise patching has also had issue in firefox with it sometimes working or not. In this changeset we completely remove it (which will have the drawback of more error shown in console in firefox). opw-1964486 opw-2116839 closes #39953 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
fw-bot authored
When using the flamegraph module from a parent directory of odoo, the dirname method returns a relative path, leading to a traceback. With this commit, the odoo_path is enforced to be an absolute path. closes odoo/odoo#40124 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
Arnold Moyaux authored
commit 89f20d2c removed thumbnail but didn't adapt the views that used it. Adapt the view and directly use the datas and not the thumbnail. Close #38747 closes odoo/odoo#40122 X-original-commit: e73b468135d27ce8c1e84c3ecf2d0b3af176d760 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Swapnesh Shah authored
Fixes https://github.com/odoo/odoo/issues/39358 Before this commit Internal user (With no other Rights) cannot perform any activity on Reminder Popup due to missing rights to set calendar_last_notif_ack field. With this fix, we are now using sudo to write calendar_last_notif_ack closes odoo/odoo#40101 X-original-commit: 91560fae Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Niyas authored
closes odoo/odoo#40000 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
lejeune quentin authored
The self don't contain 'interface_protocol'. The 'interface_protocol' is in self.dev because we add this in 'supported' function. closes odoo/odoo#40118 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
- Nov 08, 2019
-
-
Nicolas Lempereur authored
In 12.3 there was a number of changes in source mode. This was reverted before 13.0 and somehow it seems the source mode was lost between the 12.3 editor changes and its revert. With this changeset, we introduce back source mode as it was in 12. opw-2091649 opw-2116960 closes #40026 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Nov 12, 2019
-
-
jvm-odoo authored
Reproduce this issue - Install CRM & Sales - Create 2 sales team in CRM settings - Create some invoices and register payments for the 2 teams - Go in CRM > Sales > Team pipelines The invoicing amount is still 0 for both teams. Cause - The `_compute_invoiced` method in `CrmTeam` models use a SQL query to retrieve the invoices lines but it returns an empty recordset because the dates are not right ordered. - The line balance are negatives values, doing a SUM() will always returns 0 This commit re-order the dates and invert the sign of line.balance. OPW-2119819 closes odoo/odoo#40093 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Oct 23, 2019
-
-
Ravi Gohil authored
- fixed some tax report lines by showing correct amounts - corrected account types - set default receivable/payable/advance tax accounts for tax groups closes odoo/odoo#39191 Task: 1917932 Closes: 39191 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-