- Oct 17, 2019
-
-
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
-
RomainLibert authored
X-original-commit: 1adae2e5
-
RomainLibert authored
We should avoid crashing in case active_ids is not in the context X-original-commit: b528cf82
-
RomainLibert authored
A compute method should always assign something to the computed field(s) X-original-commit: f58f7b85
-
- Oct 10, 2019
-
-
ryv-odoo authored
The link tracker model (link.tracker) contained favicon (store) and icon_src computed fields. Computing favicon took {3-6.5%} of installing odoo (with demo data) due to syncronous http call to a external link (google). Moreover, these fields had no sense to be store in odoo and only used in one template. This template was modified to display the same information (icon) as before but without storing fields and with a lazy loading of icons. TASK_ID: 2083715 closes odoo/odoo#38405 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Oct 16, 2019
-
-
fw-bot authored
It is possible to get to a situation where Odoo would try to send an email without a `From:` header address. In such case, you're unlucky if you don't have access to the underlying deployment, or if you use multiple databases in a single Odoo instance and each of them uses a different mail configuration. To make this configuration easier to use and cover those use cases, here I add support for a new ICP: `mail.default.from`. It will be used when present, so it shouldn't affect existing deployments. When present, it will allow a admin to configure the default sending address just with Odoo itself. closes odoo/odoo#38874 X-original-commit: 5010ce63 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Lucas Lefèvre authored
With a Right to Left lang. Go to an employee form view. Click on the small pill with the number of subordinates (in the org chart). The popover opens but on the right side of the window instead of next to the pill. Fixes #38722 closes odoo/odoo#38873 X-original-commit: 292d4e7b Signed-off-by:
lul-odoo <LucasLefevre@users.noreply.github.com>
-
jbm-odoo authored
Before this commit: Private email and phone are related of partner 'address' fields. But the phone was read-only and the email is editable. After this commit: As phone and mail are related, they are read-only. We must edit them on the partner of Address field. close #38518 closes odoo/odoo#38872 X-original-commit: ed6fb25c Signed-off-by:
jbm-odoo <jbm-odoo@users.noreply.github.com>
-
jbm-odoo authored
Before this commit: When there few elements in kanban and a search panel, all kanban cards try to take a maximum of height and become deformed. After this commit: The behaviour of dimensions of kanban cards must be the same with or without searchpanel. closes #38556 closes odoo/odoo#38871 X-original-commit: a95cbbd6 Signed-off-by:
jbm-odoo <jbm-odoo@users.noreply.github.com>
-
wan authored
When a reconciliation proposition's amount is computed from a regex, we cannnot be sure the regex captured something. If it didn't we don't want to display a badly formatted line so we set the amount to 0. closes odoo/odoo#38870 X-original-commit: 11149579 Signed-off-by:
Cedric Snauwaert (csn) <csn@openerp.com>
-
fw-bot authored
base_vat: Correct management of the check of peruvian VAT without prefix. l10n_pe: Correct income account the last one is not correct. l10n_pe: Forced Round globally for peruvian companies once l10n_pe is installed, and with the onchange. l10n_pe: For peruvian companies it does not make sense a sequence per year and the year in the prefix is incorrect, we must force XXX- as a sequence prefix. closes odoo/odoo#38854 Forward-port-of: #38764 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Arnold Moyaux authored
In a barcode environemtn or a situation with a lot of stock.move.line the subcontract is hard to use with record components because a line is created each time the produce wizard is proccessed. Then each line is duplicate, one with reservation and the other with effective transfer. This commit try to merge them in order to limit the number of lines. Task 2073383 closes odoo/odoo#38689 Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-
Arnold Moyaux authored
Usecase: - Set details operations on picking type - Create a receipt for a subcontracted product with tracked components - Records production - Go to details operations The move line is created however the lot name is invisible. It happens due to produce_wizard line creation. It will set the lot_id but the field lot_id is invisible if the picking type use the option 'use_create_lot' and uncheck 'use_exisiting_lot' In order to fix it set both lot_name and lot_id after the produce operation.
-
Arnold Moyaux authored
When the action is called by a javascript function the view is not correctly rendered because the tree type does not exist in the registry but the correct type is list.
-
- Oct 11, 2019
-
-
ryv-odoo authored
After the refactor of mail sending with the newest python API (18299d7e), the order of multipart/alternative was wrong for email. Indeed, in the MIME protocol [1], for The Multipart/alternative subtype the order is significant: "In general, user agents that compose multipart/alternative entities should place the body parts in increasing order of preference, that is, with the preferred format last". This bug caused some issues with mail marketing (see related task) with Gmail web client (see the plaintext instead of html mail). The fix is to inverse the order of adding alternative in the mail content. [1] https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html TASK_ID : 2084989 closes odoo/odoo#38490 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Oct 16, 2019
-
-
qsm-odoo authored
closes odoo/odoo#38862 X-original-commit: 0a396623 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Géry Debongnie authored
The fieldbinary widget has an internal max upload limit set to 25mo. This was set a long time ago, probably more than 5 years ago. Since then, a lot of things have changed and it may be more frequent for users to hit the limit. And it happens for some users, we had to increase locally their limit. Also, nginx is configured to accept files up to 64 mo, so it makes sense that the web client also uses that same limit. closes odoo/odoo#38856 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-