- Nov 25, 2019
-
-
fw-bot authored
A customer reported an issue when he tried to add a link on the blog covers of his blog. The link is displayed as text and it's added to all the covers.  According to SBU, the user should not do this. This commit prevents the user from editing a blog cover. OPW-2119924 closes odoo/odoo#40816 X-original-commit: 576fe145 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
helly kapatel authored
Archived users are inactive, so we shouldn't be able to ping them. Task-2046885 closes odoo/odoo#40814 X-original-commit: 8169e34a Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
- Nov 22, 2019
-
-
Nicolas Lempereur authored
In the pivot view of report.pos.order that is a view mainly over pos.order, the "Count" measure is a little rubish giving more or less the number of different products in the grouped order lines. With this changeset, we have the field "Order" as measure that allow us to know the number of orders a grouping is corresponding to. opw-2127275 closes #40723 closes odoo/odoo#40804 X-original-commit: 431114d4 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Nov 20, 2019
-
-
Victor Feyens authored
And adapt to get_fiscal_position changes closes odoo/odoo#40336 Related: odoo/enterprise#6840 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
Victor Feyens authored
-
Victor Feyens authored
* No api model for methods using self * Use new orm abilities to cleanup map_tax method
-
- Nov 25, 2019
-
-
Mahendra Barad authored
Before this commit, when a user was on leave, the out of office message displayed the current leave-in-progress date-to. This information was misleading when the user on leave used different types of leaves, because other users would expect their colleague to come back from vacation sooner. For instance, suppose that user is on vacation on October from 18-22 (included), and from 25-28 (incl.), with a week-end from 23-24: +--------------------------------------+ | OCTOBER calendar | +--------------------------------------+ | Mo. Tu. We. Th. Fr. Sa. Su. | | | | | | on-leave week-end | | <--------------------> <------> | | 18 19 20 21 22 23 24 | | | | on-leave | | <---------------> | | 25 26 27 28 29 30 31 | +--------------------------------------+ On November 20, other users would see "On leave until _November 22_ included", instead of _November 28_. This commit fixes the issue by taking into account consecutive holidays to compute the actual end date of vacation. Task-2002525 closes odoo/odoo#38388 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Haresh Shyara authored
Added Chart of Accounts, taxes and other related data closes odoo/odoo#40806 Task: 42243 Courtesy: www.vitraining.com X-original-commit: 046f7039 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Xavier Morel authored
If odoo is started with a log-level of "warn" of higher, the logging record is not emitted at all and thus the handler added by assertLogs has nothing to process at all. As a result the test will fail. closes odoo/odoo#40802 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Victor Feyens authored
Current activity types master data cannot be unlinked through a quite harsh override of unlink using xml id existence, introduced at 2602642a. Some of them are real master data, other could be unlinked if users want it. Finally custom activity types may cause errors when removed if used in some side models like server actions or automated actions. To allow more flexibility we remove the removal constraint and implement a fallback mechanism. It is implemented in mail.activity.mixin when calling activity_schedule(xmlid, ...). If the given xmlid is not found _default_activity_type() specifies the default activity to use. It can be overridden in modules if some specific behavior is wanted. e.g. def _default_activity_type(self): """Define a default fallback activity type when xml id not found only used in in activity_schedule() for now. """ try: return self.env.ref('mail.mail_activity_data_todo') except Exception: return False In this commit we also * restrict deletion of activity type (hr.plan and ir.actions.server); * fallback on default activity type if xmlid ref not found in activity_schedule; * correct calls to activity_schedule and replace some manual creation calls by activity_schedule; Task ID 1961156 PR #39013 Related: odoo/enterprise#6238 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by:
Victor Feyens <vfe@odoo.com> Co-authored-by:
Michaël Mattiello <mcm@odoo.com>
-
Mohammed Shekha authored
`name` field can be required and falsy `data.name` should not be added as default in context or it warns for missing required field. Task-2052536 closes odoo/odoo#35880 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Hardik Prajapati authored
This commit disables quick create in calendar view for `mrp.production`, because it uses name field for storing `ir.sequence` and calendar quick create also uses `name` field to create quick create record. So in this case, even if user enters summary field, it will be replaced by `ir.sequence`, thus quick create doesn't make sense here. Task-2052536
-
- Nov 22, 2019
-
-
Moises Lopez authored
It was discussed previously from: - https://github.com/odoo/odoo/commit/b79d05fff0cacb4d99ebc1b60f44d8dab757b806 I quote Olivier Dony commit message: """ Having it in INFO should be sufficient for its purpose, and will avoid impacting all CI builds done on a system that does not have the lib installed. For the record, this is not a hard requirement because the lib was not available in Debian stable packages at the time of release. It is only enabled on demand for those who want the feature and can install it manually. Fixes #22426 Closes #22459 """ closes odoo/odoo#40788 X-original-commit: 0394f5e9 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
- Nov 25, 2019
-
-
Aurélien Pillevesse authored
Use the same "Refunds" term as in the other menus closes odoo/odoo#40704 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Aurélien Pillevesse authored
-
Hardik Prajapati authored
================== Before this commit ================== No tags in account templates in CoA for Cash Flow Statement ================= After this commit ================= Tags Operating Activities, Financing Activities, Investing & Extraordinary Activities Link to respected accounts Related to task: #1973937 Closes #33256 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Swapnesh Shah authored
Create and Edit Buttons are not needed on views being opened from the Product Margin report Fixes odoo/odoo#39069 closes odoo/odoo#39072 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Raphael Collet authored
This is a performance fix. It avoids the cost of XML/HTML translations for fields that may not be necessary when prefetching fields on records. This patch marks such fields as non-prefetchable by default. The code that changes the attribute `translate` on HTML fields (from `translate=True` to `translate=html_translate`) has been adapted to allow the setup of textual fields to mark the field as non-prefetchable. Jairo Llopis made a comparative benchmark: evaluating `name_get` on `event.event` records. The method needs the field `name` and without the patch, the prefetching mechanism reads the translated HTML field `description` as well. This patch speeds up the benchmark from 5800ms to 800ms (see https://github.com/odoo/odoo/pull/37967#issuecomment-538364011 ). closes odoo/odoo#40771 X-original-commit: e5ee5e5b Signed-off-by:
Raphael Collet (rco) <rco@openerp.com> Co-authored-by:
Pedro Baeza <pedro.baeza@tecnativa.com> Co-authored-by:
Jairo Llopis <jairo.llopis@tecnativa.com>
-
Odoo's Mergebot authored
PURPOSE Purpose is to perform some cleaning in survey models: naming, ordering, dead code [0]. As new features are about to land in survey, notably live interactions [1] and new survey building [2] performing a pre cleaning is necessary [3]. SPECIFICATIONS This merge contains three commits doing * code move; * dead code removal; * templates split to ease understanding and reading; See sub commits for more details. LINKS [0] Related to Task ID 2144393 (surveys split / cleaning) [1] Task ID 1972640 (live interactions) [2] Task ID 2119587 (new frontend for building surveys) [3] Task ID 2061901 (survey models cleaning and preparation) PR #40623 Related: odoo/enterprise#6853 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
fw-bot authored
The title says it all -_- closes odoo/odoo#40257 Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
-
Nikunj Ladava authored
Integration with new financial reports rf-002 in Norwegian localization task- 1969011 closes odoo/odoo#37357 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Robin Heinz authored
When a pos session is closed, the difference and transactions of cash control are not good anymore, because it is based on the statement linked to the cash payment method, and it is modified during the validation of the session to create a balanced account move. So we are now storing the values in fields, to keep history of the closing control closes odoo/odoo#35286 Task-id: 2032173 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
Thibault Delavallée authored
PURPOSE Purpose is to perform some cleaning in survey models: naming, ordering, dead code [0]. As new features are about to land in survey, notably live interactions [1] and new survey building [2] performing a pre cleaning is necessary [3]. SPECIFICATIONS Remove dead code : * split templates into 3 main files * survey_templates: holding main templates when taking a survey; * survey_templates_statistics: graph and statistics (results) of a survey; * survey_templates_management: templates linked to corner cases and error management (403, closed survey, ...) as well as tools and utility templates; * rename template ids to ease code understanding; No functional changes should occur with this commit. It contains only code move, not any change at all. LINKS [0] Related to Task ID 2144393 (surveys split / cleaning) [1] Task ID 1972640 (live interactions) [2] Task ID 2119587 (new frontend for building surveys) [3] Task ID 2061901 (survey models cleaning and preparation) PR #40623
-
Thibault Delavallée authored
PURPOSE Purpose is to perform some cleaning in survey models: naming, ordering, dead code [0]. As new features are about to land in survey, notably live interactions [1] and new survey building [2] performing a pre cleaning is necessary [3]. SPECIFICATIONS Remove dead code : * old code bits not used anymore since several code cleanings have already been performed; * use tools when possible instead of manually checking stuff like email validation; * clean unused imports; No functional changes should occur with this commit. It contains only code move, not any change at all. LINKS [0] Related to Task ID 2144393 (surveys split / cleaning) [1] Task ID 1972640 (live interactions) [2] Task ID 2119587 (new frontend for building surveys) [3] Task ID 2061901 (survey models cleaning and preparation) PR #40623
-
Thibault Delavallée authored
PURPOSE Purpose is to perform some cleaning in survey models: naming, ordering, dead code [0]. As new features are about to land in survey, notably live interactions [1] and new survey building [2] performing a pre cleaning is necessary [3]. SPECIFICATIONS Code move main points * move fields to have them grouped by main use; * move methods to have them grouped by main purpose; * reorganize some line breaks to ease reading files; Globally this code move is done according to our famous guidelines. No functional changes should occur with this commit. It contains only code move, not any change at all. LINKS [0] Related to Task ID 2144393 (surveys split / cleaning) [1] Task ID 1972640 (live interactions) [2] Task ID 2119587 (new frontend for building surveys) [3] Task ID 2061901 (survey models cleaning and preparation) PR #40623
-
Holger Brunn authored
Non-ascii characters in LDAP don't cause a python unicode string in returned ldap entries, this commit fixes this. Before this commit, further string operations on ldap values with non-ascii characters fail. closes odoo/odoo#40761 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Romain Estievenart authored
On mobile, there was no way to create a new column in the kanban view. This was specifically annoying in the Project app (the user was able to create the project but couldn't set its stages). This commit enables this feature by adding a `+` icon at the end of the tabs. This button opens a quick-create column widget. If there is no existing column (for example in a newly created project), this quick-create column widget is opened by default. Finally, this commit improves the processing needed for the swipe animation between the columns. Task ID: 1893137 closes odoo/odoo#40722 Signed-off-by:
Pierre Paridans <pparidans@users.noreply.github.com> Co-authored-by:
Ankit Sathvara <asa@odoo.com> Co-authored-by:
Mohammed Shekha <msh@openerp.com> Co-authored-by:
Romain Estievenart <res@odoo.com>
-
fw-bot authored
Reproduce the issue - Install Projects - Create a project - Create a task with a deadline The deadline format is correct in the form view but not in the kanban view. Cause In the kanban view, there is some code applied on the `date_deadline` field to add a class when the deadline is near. As it uses a `span` with a `t-esc`, the only way to get the date is to do `record.date_deadline.raw_value` which return the raw value of the datetime object (a big string with all the infos). This commit creates a char field for the formatted date and uses it only for the display. OPW-2122928 closes odoo/odoo#40707 Related: odoo/enterprise#6832 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Nov 20, 2019
-
-
Carlos Dauden authored
closes odoo/odoo#40592 X-original-commit: d8bc17d5 Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
-
- Nov 13, 2019
-
-
Denis Ledoux authored
On the registry, the set `loaded_xmlids` maintains the list of the xml ids loaded during a module upgrade. (The <record/> nodes in XML data file) According to the `noupdate` attribute on the node in the XML file, an XML ID is added to the listn either: - If noupdate is set on the <data/> node, through `_load_xmlid`: - https://github.com/odoo/odoo/blob/eb02e9b3e00243bcf8a41b0f42273e59875ab968/odoo/tools/convert.py#L505-L510 - https://github.com/odoo/odoo/blob/eb02e9b3e00243bcf8a41b0f42273e59875ab968/odoo/addons/base/models/ir_model.py#L1802 - If noupdate is not set on the <data/> node, through `_load_records` and `_update_xmlids`: - https://github.com/odoo/odoo/blob/eb02e9b3e00243bcf8a41b0f42273e59875ab968/odoo/tools/convert.py#L578 - https://github.com/odoo/odoo/blob/eb02e9b3e00243bcf8a41b0f42273e59875ab968/odoo/models.py#L4048-L4050 - https://github.com/odoo/odoo/blob/eb02e9b3e00243bcf8a41b0f42273e59875ab968/odoo/addons/base/models/ir_model.py#L1793 For this second case, `_update_xmlids` was called only when the condition `to_create or to_update` was met. For records not set as `noupdate="1" in the XML data file, but set to noupdate in the database (e.g. manually set by a user), the code goes trough the second path explained above (noupdate not set on the <data/> node) and the condition `to_create or to_update` was not met (See https://github.com/odoo/odoo/blob/eb02e9b3e00243bcf8a41b0f42273e59875ab968/odoo/models.py#L4005-L4012) and they were therefore not added in the set `loaded_xmlids` Besides, the method in charge to validate standard views `_validate_module_views`, only validates views that are in this list `loaded_xmlids`: https://github.com/odoo/odoo/blob/eb02e9b3e00243bcf8a41b0f42273e59875ab968/odoo/addons/base/models/ir_ui_view.py#L1194-L1210 And the method in charge to validate custom views `_validate_custom_views` only validates views with no XML ID or the module of the XML ID is not within the list of modules. Therefore, standard views set to noupdate in database were not validated at all (or indirectly, if they had a view inheriting on them that was not set to noupdate) This is not a recent regression, this is the case even in Odoo 8.0. Standard views set to `noupdate` in database but not in the XML files were not validated (or indirectly, through one of their inherited views if they had any) This revision just skips the test `to_create or to_update` so it goes through `_update_xmlids` anyway and add the xml id to the `loaded_xmlids` set, so standard views set to noupdate in database finally gets validated. Besides, `_update_xmlids` won't do anything more than add the xml id to the set, the SQL query executed in this method has a `WHERE` condition filtering out xml ids set to noupdate https://github.com/odoo/odoo/blob/eb02e9b3e00243bcf8a41b0f42273e59875ab968/odoo/addons/base/models/ir_model.py#L1784 closes odoo/odoo#40207 Signed-off-by:
Denis Ledoux (dle) <dle@odoo.com>
-
- Nov 25, 2019
-
-
Odoo's Mergebot authored
Purpose ======= We want to allow different approvals for allocations and leaves of a same type. e.g. In case of compensation days, a manager would approve the allocation request, but would later not approve leave requests. Specification ============= Allocation modes ---------------- No change here except renames. 1. No limit (employee doesn't need an allocation to request a leave) 2. Allow employee requests 3. Fixed by Time Off Officer Allocation approval ------------------- A radio field to choose the approval mechanism appears if the employee is allowed to request an allocation. The following approval modes are possible: 1. Time Off Officer 2. Employee's Time Off Manager (leave_responsible_id) 3. Employee's Time Off Manager and Time Off Officer These options are the same as leave approval options (except the missing "No Validation"). If option 1 or 2 is selected, a o2m field should allow to select which Time Off Officer is responsible for approving those allocations. Allocation approval policy is the same as the leave approval policy. Task id: 1936742 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#35446 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Nov 22, 2019
-
-
alt-odoo authored
We are initializing over the limit to make sure we will compute it at least once. If the target goal is set to 0, we are facing a division by zero error when displaying the gamification goal just after initialization. closes odoo/odoo#40735 X-original-commit: 24546e7c4cac61efea8d3f9e558518a55ef9acd2 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Nov 23, 2019
-
-
Victor Feyens authored
Do not update the date_planned of section/note purchase lines when writing on the order date_planned. Otherwise the SQL constraint ensuring display lines have no other data blocks the changes. Fixes #40741 closes odoo/odoo#40747 X-original-commit: f3ebab6e Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
- Nov 22, 2019
-
-
jbm-odoo authored
If the user put more than 200 emojis, we didn't replace emoji with image. But due to a typo in the code, this mechanism broke the discuss application. closes odoo/odoo#40734 X-original-commit: 0877cb6c Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Lucas Lefèvre authored
Some changes were made at leave names in eb02e9b3. This commit applies the same behavior for allocations.
-
Lucas Lefèvre authored
For each leave, a responsible is found to assign him activities. For 'employee' leaves, a complex (and always changing) policy is implemented. This policy should not be applied for other types of leaves. e.g. department, company, category. For those type of leave, the current user should be responsible for the approval. Also, why was the default responsible the super user? It was creating activities for an inactive user, hence no one was notified to approve the leave. Better to fallback on the current user.
-
Lucas Lefèvre authored
Purpose ======= We want to allow different approvals for allocations and leaves of a same type. e.g. In case of compensation days, a manager would approve the allocation request, but would later not approve leave requests. Specification ============= Allocation modes ---------------- No change here except renames. 1. No limit (employee doesn't need an allocation to request a leave) 2. Allow employee requests 3. Fixed by Time Off Officer Allocation approval ------------------- A radio field to choose the approval mechanism appears if the employee is allowed to request an allocation. The following approval modes are possible: 1. Time Off Officer 2. Employee's Time Off Manager (leave_responsible_id) 3. Employee's Time Off Manager and Time Off Officer These options are the same as leave approval options (except the missing "No Validation"). If option 1 or 2 is selected, a o2m field should allow to select which Time Off Officer is responsible for approving those allocations. Allocation approval policy is the same as the leave approval policy. Task id: 1936742 Access rights based on task 1950998
-
Andrea Grazioso (agr-odoo) authored
Install Accounting, go to Configuration > Follow-up Levels. Create a new Follow-Up Action with low due days just to make testing easier and "Join open invoices" enabled. Go to Customers>"Follow-up Reports", select a follow up report with action "test", click on "Send Email" The email will be sent, without attachments. There should be a number of attachments equal to the number of due invoices, but for security reason the attachments are filtered in the message post processing phase. Changing security check to avoid filtering legitimate material. opw-2116803 closes odoo/odoo#40726 X-original-commit: 6258c7eb Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
fw-bot authored
'Send' button meant to send Italian e-invoices are shown for invoices belonging to non-Italian companies as well. Since the invoices' are being sent on validating the invoice itself, Send button means less business here. Hence removed it. opw-1945836 closes #31470 closes odoo/odoo#40736 X-original-commit: 633b931d Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Nicolas Martinelli authored
An UBL invoice can contain several `AdditionalDocumentReference`, some of them without `Attachment`. For example: ``` <cac:AdditionalDocumentReference> <cbc:ID>UBL.BE</cbc:ID> <cbc:DocumentDescription>BOB50 6.07.0</cbc:DocumentDescription> </cac:AdditionalDocumentReference> <cac:AdditionalDocumentReference> <cbc:ID>Facture N°19090118 - 30-09-2019.pdf</cbc:ID> <cbc:DocumentDescription>CommercialInvoice</cbc:DocumentDescription> <cac:Attachment> <cbc:EmbeddedDocumentBinaryObject filename="Facture.pdf" mimeCode="application/pdf">JVBERi0xLjMK... ... ``` In this case, a crash occurs since: ``` element.xpath('cac:Attachment//cbc:EmbeddedDocumentBinaryObject', namespaces=namespaces) ``` is an empty list. To avoid this, we loop on all elements and generate all PDFs. opw-2128083 closes odoo/odoo#40721 X-original-commit: 2174e406 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-