- Oct 17, 2019
-
-
Xavier-Do authored
Assets bundle creation will try to find previous version of assets and unlink them. This needs to invalidate ormcache to notify other workers. Since assets are never commited during test, assets will be generate at each request if request is not commited (cursor closed) whtch is the case with 404. Invalidating the orm cache only when a previous attachement was existing will help to mitigate the problem, and slightly improve HTTPCases test speed. closes odoo/odoo#38979 X-original-commit: d4d63549 Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com>
-
Xavier-Do authored
A 404 will take 3 to 5 seconds to be resolved and execute +- 1900 query, to return a rendered page which is quite expensive, especially when multiple missing images are rendered in a view. Catching static route and marking them as not frontend will help to avoid to handle miss on static resources. In this case server returns a standard 404. This commit also fix a iframe src in order to avoid a 404 on /web/(test )/report/html/some_report (thx to aab-odoo) X-original-commit: 818d0cb5
-
- Oct 18, 2019
-
-
fw-bot authored
Without this patch, if a view defines a `<label for="forbidden_field"/>` anywhere, the web client tries to fetch the field data, but since the user has no access, it gets an error. Now, if the label targets a forbidden field, it gets removed from the view, as happens with the related field. The client doesn't know of that field's existence and no errors happen. closes odoo/odoo#38876 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Jack authored
Update the translation files to reflect the changes closes odoo/odoo#38999 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Oct 17, 2019
-
-
Xavier-Do authored
closes odoo/odoo#38967 Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com>
-
Jeremy Kersten authored
Before this commit launch a server with --db-filter that match at least 2 dbs name Try to authenticate You will have an error request is unbound when you try to access request.env Now we retrieve the user from self instead of the request. New test to ensure rpc authentication is tested. Related to commit 245ef4b1 closes odoo/odoo#38969 X-original-commit: 4b3400c4 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
- Oct 18, 2019
-
-
Yenthe666 authored
closes odoo/odoo#37987 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
mgh-odoo authored
To be compliant with the indian law, some informations should be displayed on the receipt in the POS. So we've added the customer name and phone nulber if any. We've also added the HSN code of products for each line. closes odoo/odoo#36590 Task-id: 2000231 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
- Oct 17, 2019
-
-
Nans Lefebvre authored
Commits df2ea31f and 55ed70f4 moved things around, "without any functional change". They made it so that if you add twice a product to the cart, they are added in different lines instead of merged. There are two issues: - the `if line_id: return lines` made sense when the post-filtering was in the same function, since it could readily be avoided - conversely the post-filtering was avoided in the function that was added with the only goal to do it, except in the case where it was useless (the case where lines is an empty recordset). opw 2083729 closes odoo/odoo#38938 X-original-commit: c9c0a0c322f02974bc6395410ca3d7213899c7e0 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com>
-
Denis Ledoux authored
Users sometimes define custom models on SQL views e.g. @nseinlet In such a case, Odoo should not attempt to create foreign keys as it just cannot work on views. This could prevent the migration of a database with such a custom model using a view when it attempted to fix the missing foreign keys when updating the modules. closes odoo/odoo#38988 X-original-commit: dfaea03d Signed-off-by:
Denis Ledoux (dle) <dle@odoo.com>
-
Yenthe666 authored
closes odoo/odoo#38986 X-original-commit: 534e5fbc Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Florimond Husquinet (fhu) authored
- Buy anything with de POS and generate a receipt. Before this commit: The currency symbol is missing everywhere. After this commit: The currency symbol is present next to any price. closes odoo/odoo#38970 Opw: 2083186 X-original-commit: e6528dd8 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Julien Mougenot authored
Before this commit, the account_render_report tour assumed that account_accountant was installed on any enterprise database. Now, the account_accountant steps are only inserted in the tour when the module is installed. closes odoo/odoo#38963 X-original-commit: a45a4b6c Signed-off-by:
Julien Mougenot (JUM) <Arcasias@users.noreply.github.com>
-
RomainLibert authored
Purpose ======= It sometimes happens that the last runbot build is green, but it's impossible to create a basic record (a new user for example) in the interface. This commit adds new tests using the Form tool (so triggering the onchanges, and so on), to check that those basic models can be instanciated without any issue on the interface. closes odoo/odoo#38962 Taskid: 2070350 X-original-commit: e6d8c471 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
jbm-odoo authored
Use the correct function to create answers before strating the survey. closes odoo/odoo#38960 X-original-commit: e9d40cac Signed-off-by:
jbm-odoo <jbm-odoo@users.noreply.github.com>
-
Juan Jose Scarafia authored
The detected errors is about a normal field (l10n_latam_document_type_id) which is written by a computed method (_compute_l10n_latam_documents) making that the normal field value be overwritten the value given by the user everytime the compute field is re computed with the default value given by the compute. We remove this write n the compute method and now we use and onchange instead. IMPORTANT: the l10n_latam_available_document_type_ids computed field is changed from a m2m to a o2m to be able to use it on the new onchange closes odoo/odoo#38973 X-original-commit: 96c70bb1 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Jeremy Kersten authored
closes odoo/odoo#38971 X-original-commit: 562a2ac2 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Colinliz authored
Changes - Modify some account according to 'Accounting Standards for 2017 Small and Medium-sized Enterprises' - Add account translation into .po file closes odoo/odoo#38935 Signed-off-by:
Colinliz <lizheng02@inspur.com> Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
jacksun111 authored
closes odoo/odoo#38918 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
William Henrotin authored
The commit 0679d0d5 introduced a new planning mechanism for the workorder. Two issues have been instroduced since this patch. 1. Cancelling a workorder didn't free the time slot in the workcenter calendar 2. Validation a workorder sooner than the planned date didn't update the workcenter calendar to plan another production sooner. This commit update the date_planned_start and date_planned_finished at cancellation and validation to impact the workcenters calendar. To keep the original planning dates, they are now tracked This commit also fix the button_start() method that always rewrited the date_start even if the production had already been started. Task : 2082442 closes odoo/odoo#38947 X-original-commit: 4ca6c773 Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-
Goffin Simon authored
In 12.0, the function onchange_default defined in odoo/models.py was triggered on model 'account.invoice' for the fields type, company_id, partner_id In 13.0, as the model 'account.invoice' has been removed by 'account.move', the same logic must be applied on this model. opw:2086812 closes odoo/odoo#38925 X-original-commit: 04deb959 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
Naglis Jonaitis authored
Since `check_company` is intended for relational fields. closes odoo/odoo#38939 X-original-commit: bf2f3f6c Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-
Goffin Simon authored
Steps to reproduce the bug: - Create a portal user U - Try to update the details of U from portal Bug: A server error was raised because the country_id was set as a character. opw:2082450 closes odoo/odoo#38924 X-original-commit: 009b632c Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
Goffin Simon authored
Steps to reproduce the bug: - Create a RFQ - Add a line with a product - Add a line with a note and save - Duplicate the RFQ Bug: A traceback was raised because the function _select_seller was called on a line with no product. opw:2085977 closes odoo/odoo#38921 X-original-commit: 4ffc517d Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
Lucas Perais (lpe) authored
On a list view, Add a custom filter on a date Change the operator to "in between" Change it back to "equal" Apply the search Before this commit, the label of the filter still was in between Whereas it should have been "equal to ..." After this commit, the label of the filter is correct OPW 2085951 closes odoo/odoo#38705 closes odoo/odoo#38869 closes odoo/odoo#38936 Original-signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com> Original-signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com> X-original-commit: bb775152 Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
-
Lucas Perais (lpe) authored
In a list view, create a custom filter involving a date or datetime field Before this commit, the domain that was sent to the server contained the date or datetime as the pure string representation that Moment.js constructs that is a ISO compliant one, containing info on timezone After this commit, the format is the one of the server, in UTC and NOT ISO compliant. Also, the format for date is dealt with OPW 2085936 X-original-commit: 1f1fa173
-
- Oct 16, 2019
-
-
Debauche Stéphane authored
Purpose ======= We want to add an option on the widgets - many2many_binary, - binary, - image This option specifies what file extensions the user can pick from the file input dialog box. Examples ======== ```xml <field widget="many2many_binary" options="{'accepted_file_extensions': 'image/*'}"/> <field widget="many2many_binary" options="{'accepted_file_extensions': '.png,.jpeg'}"/> <field widget="many2many_binary" options="{'accepted_file_extensions': 'application/pdf'}"/> <field widget="image" options="{'accepted_file_extensions': '.png,.jpeg'}"/> <field widget="binary" options="{'accepted_file_extensions': '.pdf,.svg'}"/> ``` How === Add an option (accepted_file_extensions) in the template ``HiddenInputFile`` (the widget many2many_binary is using this template) So, we can also use this new option in others widgets using ``HiddenInputFile`` In the many2many_binary, read the ``nodeOptions`` and set the widget attribute ``accepted_file_extensions`` We also have to fix some other widget, because an property ``image_only`` was already existing in the template ``HiddenInputFile`` (we just need to replace ``image_only=True`` to ``accepted_file_extensions='image/*'`` The widget ``FieldPdfViewer`` (pdf_viewer) now use the new option to filtrate PDF (instead of removing the <input/> and adding <input accept='.pdf'/>). Tests ===== We also test if the option is correctly set on the <input/> - binary - image - many2many_binary Impacted widgets =============== - many2many_binary - image: this widget use ``options="{accepted_file_extensions='image/*'}"`` instead of ``image_only=True`` - tablet_image: same as ``image`` Task #2082815 closes odoo/odoo#38351 Signed-off-by:
VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
-
- Oct 17, 2019
-
-
Xavier Morel authored
closes odoo/odoo#38913 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
- Oct 16, 2019
-
-
RomainLibert authored
closes odoo/odoo#38899 X-original-commit: f4dbee9b Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
Lucas Lefèvre authored
SMS reminders are not timezoned closes #38243 closes odoo/odoo#38893 X-original-commit: 93d17be4 Signed-off-by:
lul-odoo <LucasLefevre@users.noreply.github.com>
-
- Oct 17, 2019
-
-
Odoo's Mergebot authored
[FIX] web: Correctly aggregate values in exported parent groups -------------------- When exporting a grouped list view with some nested groups, the aggregate value of parent groups are not correct. It always sums aggregated values of children whether the group operator is 'sum' or not (could be 'max', 'avg', ...). This behavior is wrong and can even lead to a crash if the aggregated field is a date field (e.g. with group_operator='max'). (Try two sum two dates...) To avoid the crash a quick fix was merged 85cf47fc just before OXP. This fix limited the support of aggregates to only int and float fields. This commit remove this limitation. This commit correctly implements the aggregation for parent group for all field types and all group_operator. This commit also improves the export feature tests. [FIX] base export: Manage False in groupby title -------------------- Before this commit, when we export a list with a groupby on boolean, the groupby title 'False' is replaced by 'Undefined' in xls document. After this commit, with an export and groupby on a boolean, we will have correct title: True and False. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#38896 Forward-port-of: odoo/odoo#38373 Signed-off-by:
lul-odoo <LucasLefevre@users.noreply.github.com>
-
- Oct 16, 2019
-
-
Arnold Moyaux authored
Usecase to repdroduce: - Create a manufactured product with route manufacture and a RR - Run the scheduler. Orderpoint will prepare procurement values's date as string. Other module could possibly also use string as date and a call to from_string will not break anything if the value is already a date or a datetime. closes odoo/odoo#38900 X-original-commit: e4c654f8 Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-
Lucas Lefèvre authored
The attribute `self._fields` is not well named. This is not a list of instances of the Field class. It is a list of field names to export. e.g. 'journal_id', 'account_id/name' X-original-commit: 6225ce60
-
Lucas Lefèvre authored
When exporting a grouped list view with some nested groups, the aggregate value of parent groups are not correct. It always sums aggregated values of children whether the group operator is 'sum' or not (could be 'max', 'avg', ...). This behavior is wrong and can even lead to a crash if the aggregated field is a date field (e.g. with group_operator='max'). (Try two sum two dates...) The quick fix 85cf47fc was merged just before OXP to avoid any crash. This fix limited the support of aggregates to only int and float fields. This commit remove this limitation. This commit correclty implements the aggregation for parent group for all field types and all group_operator. This commit also improves the export feature tests. X-original-commit: 5e7e4fa9
-
Lucas Lefèvre authored
In the employee form view and in the employee profile, the stat button displaying the equipment count is wrong. It counts the equipment owned by the user, not equipments assigned to the employee. closes odoo/odoo#38889 X-original-commit: 07bd725c Signed-off-by:
lul-odoo <LucasLefevre@users.noreply.github.com>
-
RomainLibert authored
closes odoo/odoo#38888 X-original-commit: 28dce415 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
RomainLibert authored
X-original-commit: 3a70e7f9
-
RomainLibert authored
We should check that we have a picking_id before calling a method that uses `ensure_one` X-original-commit: e9da1166
-
RomainLibert authored
X-original-commit: 9e0f200a
-