- Nov 05, 2019
-
-
svs-odoo authored
How to reproduce: - Create a tracked product using expiration dates and don't set the `expiration_time` field; - Create a receipt for this product (using "Create New Lots/Serial Numbers") and confirm it; - Create a move line for this product and define an expiration date; - Valid the picking -> Traceback. The issue was as `expiration_time` isn't set on product, the production lot created on the receipt's validation don't have an `expiration_date`. So, if the `expiration_date` is set on the receipt move line, the production lot will try to get a time delta with its unset `expiration_date`, causing the traceback. task-2119330 closes odoo/odoo#39795 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Nov 06, 2019
-
-
jbm-odoo authored
closes odoo/odoo#35458 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
jbm-odoo authored
Purpose ======= Allow to add an attribute ``show_unusual_days="True"`` to display some days in green, according to a linked method ``get_unusual_days`` that should be defined on the related model to return all the concerned days for a given period.
-
Parth Choksi authored
*: hr_timesheet project_timesheet_holidays account Creation of analytic lines will be done in batches instead of creating single record by iteration. This optimization is done in order to speed up the creation. task-1971460 closes odoo/odoo#34481 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Nov 05, 2019
-
-
Xavier Morel authored
* the employees file apparently never worked as the marital status was updated before template files were added (respectively 0eb58775 and b60de0db) * the purchase template was never updated to reflect the Big Demo Data Changes (58fc4e44). Fixes #39074 Employees file update split off of task 2059779. closes odoo/odoo#39823 X-original-commit: 80a2f687 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com> Co-authored-by:
Prakash Prajapati <ppr@odoo.com>
-
- Oct 31, 2019
-
-
fw-bot authored
closes odoo/odoo#39681 X-original-commit: c98a5041 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com> Co-authored-by:
Lucas Lefèvre <lul@odoo.com>
-
- Nov 05, 2019
-
-
Victor Feyens authored
Forgotten in https://github.com/odoo/odoo/commit/7b3d87b905dff1212f88cc381a125590f5cb0bfe closes odoo/odoo#39830 X-original-commit: 0dd48299 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Victor Feyens authored
Followup of #38948 X-original-commit: 2d61a4d0
-
jvm-odoo authored
Go on the accounting module, you'll find a kanban view with a few cards including "Bank" and "Cash". Click on the Cash card. The default import button doesn't appears because it is hidden. The reason of this hiding is that the bank statements of type "Bank" have a custom import method and the users where confuse. They didn't know which is the right button for the special import so we hid the default import button for the whole model. But there is also a "Cash" type bank statement who doesn't have that special import and his default import button is hidden too. This commit checks the type of the bank statement and hide the default import button only if the type is not "Cash". OPW-2090477 closes odoo/odoo#39829 X-original-commit: ee45228a Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Adrian Torres authored
In 6b048a8b most issue with trigger causing error when uninstalling a module were solved. But there was a particular case if the current uninstallation of modules there was an update of `ir.model.fields.selection` to be removed. The unlink of `ir.model.fields.selection` would cause a `setup_models` call that would add all removed triggers back and possibly down the line cause an trigger recomputation error. With this changeset, we do as is already done for ir.model.fields and do not re-initialize the registry during module uninstallation. opw-2098915 closes #39796 closes odoo/odoo#39824 X-original-commit: 0ccf2ab8 Signed-off-by:
Adrian Torres (adt) <adt@odoo.com>
-
Christophe Monniez authored
When building the MS Windows package, the PYTHON_VERSION variable is not used and the WinPython path is hard coded in the Makefile and NSI file. This prevent the usage of a newer version of Python. With this commit, the PYTHON_VERSION is used to compute the WinPython Python directory. That way, this directory can be derived from package.py command line argument --vm-winxp-python-version. Also the less windows binaries are not packaged anymore. closes odoo/odoo#39821 X-original-commit: ac90d858 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
Victor Feyens authored
* Since https://github.com/odoo/odoo/commit/8d5da6e4be05428f3243f92c0464d3c1f6a43873#diff-e07cbcffb9fb7b2eafd1ace3c4b1626a , post_install and at_install test tags have been removed. * minor warnings in javascript reference. closes odoo/odoo#39817 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Odoo's Mergebot authored
PURPOSE Allow karma gain tracking enabling notably display of top users based on weekly / monthly gain in website profile. SPECIFICATIONS Each time a user gains karma a record is created in the gamification karma tracking model. Scheduled activity runs to consolidate the records into monthly gain records to avoid having crowdy table and unnecessary noise in karma gain. This model is made private and only accessible through some dedicated compute methods / controllers used in website profile. In website profile module buttons are added to see users ranking based on their total karma (like before) but also by last week and last month gains (using the newly introduced tracking model). Some fixes are provided in this merge as well as tests. LINKS Task ID 2003505 PR #34594 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Thibault Delavallée authored
Purpose is to have all karma related tests in the same file to ease finding them back. Some tweaking is also done like using a savepoint case and ensuring tests can always be re-run. LINKS Task ID 2003505 PR #34594
-
Thibault Delavallée authored
Task ID 2003505 PR #34594
-
Thibault Delavallée authored
Purpose is to support both search term and karma gain group by in the URL, using keep_query. Clean some code and move karma computation to res.users model to avoid having sql in controllers. Also fix some display issues. LINKS Task ID 2003505 PR #34594
-
Patrick Hoste authored
PURPOSE Allow karma gain tracking enabling notably display of top users based on weekly / monthly gain in website profile. SPECIFCIATIONS Each time a user gains karma a record is created in the gamification karma tracking model. Scheduled activity runs to consolidate the records into monthly gain records to avoid having crowdy table and unnecessary noise in karma gain. This model is made private and only accessible through some dedicated compute methods / controllers used in website profile. In website profile module buttons are added to see users ranking based on their total karma (like before) but also by last week and last month gains (using the newly introduced tracking model). LINKS Task ID 2003505 PR #34594
-
jvm-odoo authored
- Create a project - Create 3 tasks in the project (top, middle, bottom) - Set top as the parent of middle - Set middle as the parent of bottom We don't want to allow multi level subtasks. The behavior is not the same if you set middle as the parent of bottom first. The "parent task" field will not be displayed. This commit remove the tasks who have a parent from the m2o field. OPW-2087921 closes odoo/odoo#39810 X-original-commit: c7966b64 Signed-off-by:
Jason Van Malder <jasonvanmalder@users.noreply.github.com>
-
- Nov 04, 2019
-
-
Paul Morelle authored
URLs with parameters were not correctly supported by the regular expression. For example, URLs with parameters were truncated before the '?'. This patch adds support for a wider range of URLs, and checks in a test that the parameters are correctly handled. closes odoo/odoo#39762 X-original-commit: 616e1456 Signed-off-by:
Rémi Rahir (rar) <rar@odoo.com>
-
- Nov 05, 2019
-
-
qni authored
Allow users to modify a down payment invoice's properly by reflecting the change done to the invoice (e.g. taxes, amount) on the initial downpayment SO line when the invoice is posted. This support several nice flows, such a allowing (partial and full) refunds of downpayments while preserving still a meaningful 'last invoice with deducted down payments' amount that sums up to the total of the order. Note that this does not apply to locked orders (by definition of the term 'locked'). closes odoo/odoo#35982 Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
-
- Oct 31, 2019
-
-
Joseph Caburnay authored
It is by default in pos_mercury that pending payments are removed before syncing the order to the backend. However, this is not the case for the newly introduced API for payment terminals in pos. In this commit, we are implementing this pos_mercury feature as default for all terminal payment methods. closes odoo/odoo#35579 Task-id: 1984690 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
Joseph Caburnay authored
If there is a Vantiv payment line, adding terminal payment line (e.g. Adyen) was possible because Vantiv payment line is not recognized as electronic payment. This commit generalizes the behavior where new paymentline is prevented if there is a pending electronic payment. task-id: 1984690
-
Joseph Caburnay authored
With the introduction of pos_adyen, pending payments are not counted in the total payments. We are now implementing the same behavior for pos_mercury. task-id: 1984690
-
Joseph Caburnay authored
table is currently the html element that is used to display the payment lines in pos ui. Though it is simple to use table element, customizing it is not trivial and it requires significant effort specially when we want to make modifications in with borders. This commit converts the payment table to be represented by divs of grids. This gives us more granular control in customizing the payment table. task-id: 1984690
-
Joseph Caburnay authored
When there is a pending payment from a terminal payment method, and we attempt to add a vantiv payment, an error message is displayed but is not actually raised in the code. As a result, the code continues with the effect of highlighting the currently selected payment to be like a pending vantiv payment. This commit fixes the described issue. task-id: 1984690
-
Joseph Caburnay authored
The previous behavior is that change is displayed at each payment line and the remaining is displayed at the bottom. Also, total amount is lost in the screen. This commit addresses this issue by showing the values of remaining amount and change at just one area of the payment screen. task-id: 1984690
-
- Nov 04, 2019
-
-
Julien Castiaux authored
Someone new to Linux can run into problems when some system dependencies are missing. There is a single sentence warning talking about those hard dependencies and it does not explain how to install them. Added two § containing the missing `apt` commands required to install the dependencies on a fresh debian minimal install. closes odoo/odoo#39774 X-original-commit: f7d0022f Signed-off-by:
Julien Castiaux <Julien00859@users.noreply.github.com>
-
Cédric Snauwaert authored
To prevent having holes between statements and for better usability using import and synchronization we try to automatically set the starting and ending balance based on the previous existing statement. To do that, we added a new field previous_statement_id so that whenever we change the ending_balance of the previous statement, we recompute the starting balance and ending balance of the current statement. Also creating a new statement in between 2 others statements will automatically set the correct value to the starting and ending balance of that statement and all the statements afterwards. Exception: creating a statement by hand won't automatically set the balance_end_real, however if you create one between 2 statements, the balance_end_real of next statements will be recomputed Was Task #1880409 closes odoo/odoo#38696 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
- Nov 05, 2019
-
-
Xavier Morel authored
odoo/odoo#28519 removed large parts of pycompat, but left reraise despite that not having much value. Remove that helper and replace it by just a `raise` in most cases: when raising from an except block, the old exception is automatically chained to the new one, no need to mess around. There is one exception: in http we have to re-raise an existing exception explicitly (aka `raise exc` rather than just `raise). This is less than ideal as Python *concatenates* stacks: the previously reified stack (from the except clause) is stacked on top of the new stack (from this raises), this leads to tracebacks "jumping around" at the break point of the handler and is somewhat confusing. So we want to use explicit chaining (`raise a from b`) with the "source" providing the caught exception's original traceback and the child providing the rest. However since callers rely on the exception making sense, we need the re-raised exception to be the original[0]. Copying the exception doesn't work (see [0]), chaining an exception to itself doesn't do anything useful, and while we could probably copy exceptions using the pickle method[1] that's still risky. So the most reliable option seems to be to create a new "cause" exception, move the old traceback over to it, then re-raise the original exception having cleared its traceback, chained to new the cause. [0] or a copy thereof but Odoo exceptions don't all work properly with copy.copy and we don't want that to fail so not really an option, we can't rely / bet on every new exception being cleanly copy-able [1] create an "empty" instance using __new__ (or an instance of something else onto which we re-set the __class__ in case the exctype actually overrides __new__) then copy the __dict__ closes odoo/odoo#39709 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Lucas Lefèvre authored
The unittest signature of `assertRaises` allows a named parameter `msg`[1]. The message is displayed in case of assertion failure if `assertRaises` is used as a context manager (but not when giving it a callable). The Odoo implementation did not implement this behavior, despite it being expected by multiple odoo tests. Fix Odoo version to be in line with the method we're overriding / shadowing. [1] https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRaises closes odoo/odoo#36719 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Nov 04, 2019
-
-
jvm-odoo authored
- Create an event - Add a mail reminder for it - Run the mail scheduler manually - Duplicate the event The mail reminder is sent on the duplicate too. This commit remove the field `mail_sent` from duplicating. OPW-2117343 closes odoo/odoo#39777 X-original-commit: 7fede2c0 Signed-off-by:
Jason Van Malder <jasonvanmalder@users.noreply.github.com>
-
Damien Bouvy authored
The 'delivered quantity' field sometime needs to trigger a search on related objects (e.g. analytic lines) to know how much has been delivered. For performance reasons, this search is done using a read_group where the results are grouped by SO line. Unfortunately, this computation is sometimes launched during recomputes/onchanges where the line in question has a NewId instead of a regular id. This means that the mapping will return something like {240: 50.0} indicating that (e.g.) there are 50 timesheet hours for the SO line with id 240; unfortunately by doing mapping.get(line.id, 0.0) the NewId (240) is used - therefore returning a delivered quantity of 0.0 for a line which has actual timesheets. This commit ensures that if the line has a NewId and an original underlying record, the id of the latter is used as the key to fetch the value from the dict that contains the read_group result. Note that the problem was quite tricky to reproduce as it depended on the order of operations launched by triggers - the order of operations was important since triggering the compute with the 'real' record put things in order before any other piece of code could have spotted the issue. closes odoo/odoo#39781 X-original-commit: cf54606e Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
-
Adrian Torres authored
Business cases should not prevent the unlink of module-related records during an uninstall. This commit allows the reinstallation of sale_stock with demo data and also allows the proper removal of tables and records if a db has any non-draft inventory adjustments. closes odoo/odoo#39776 X-original-commit: cedafe00 Signed-off-by:
Adrian Torres (adt) <adt@odoo.com>
-
qsm-odoo authored
Commit https://github.com/odoo/odoo/commit/4f27e52cabb77b8b1a9637a11185ddf882adc9af had to instantiate the snippet editor UI differently but the hack broke the position of the oe_manipulator which is supposed to be at the top left of the editable zone. closes odoo/odoo#39775 X-original-commit: 86d12706 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Nicolas Lempereur authored
The extra informations not on the sale.order models were sent before 13.0 with the superuser user. In 13.0 with the change of `sudo` and `with_user` behavior, we were now in superuser mode but not with the superuser so the mail would error (no from address) and the sale order would error. With this changeset, we get back to the pre-13 behavior. opw-2116346 closes #39730 closes odoo/odoo#39748 X-original-commit: 7b1654a1 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Nicolas Lempereur authored
Before 13.0 .sudo() before sending a mail would send it as superuser user (which was the intention in this case), but since 13.0 for the same intention we need .with_user(SUPERUSER_ID). Without this change, the confirmation email on a sale order would have no sender ending up in failure. opw-2118612 closes #39737 closes odoo/odoo#39752 X-original-commit: 6aebb523 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Aaron Bohy authored
Before this rev, it crashed when opening the (sale or purchase) product matrix (e.g. on runbot, go to quotations, create, add a line, select 'My Company tshirt'). This was due to a recent override of _applyChanges (see 4bf98b47), which didn't return the value returned by super. OPW 2116083 closes odoo/odoo#39747 X-original-commit: 49626acb Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Shreya Modi authored
Purpose of the commit is if sales order is very long, the down payment gets lost in the middle of it and will be best to make it appear systematically at the end of it. currently the sales order line is order by the sequence and while creating the down payment it takes the default sequence of the line so adding sequence by +1 will show the down payment at the end. task-2025709 closes odoo/odoo#34404 Closes: #34404 Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
-
jvm-odoo authored
In the contacts app, you can select 2 partners and merge them. Before this commit: - If a partner was added by a SQL query and not directly on Odoo, the create_date will be empty. This causes a crash because the merge wizard try to sort the partners by date After this commit: - If a partner do not have a create_date, it will be considered as 01/01/1970. The merge wizard will sort the partners by IDs too. OPW-2091925 closes odoo/odoo#39523 X-original-commit: deeb769c Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-