Commit Graph
129839 Commits
Author SHA1 Message Date
Antoine Prieels 0a551bd243 [FIX] pos_epson_printer_restaurant: IoT printer selected
When selecting an Epson ePOS printer, the POS tried to print of a
printer connected to an IoT Box.

This happened because the override of create_printer was executed
before its declaration in pos_restaurant.
2019-09-06 09:12:25 +00:00
Antoine Prieels 1e06b56c84 [FIX] point_of_sale: Support RTL languages
The layout of the printed tickets was wrong when using an RTL language.
We fix this and use an older version of html2canvas because the new one
introduced layout issues.
2019-09-06 09:12:25 +00:00
Antoine Prieels e5c66b758a [FIX] point_of_sale: Receipt color after print
The color of the displayed receipt slightly changed after clicking on
"Print Receipt".
2019-09-03 13:51:30 +00:00
Antoine Prieels f9b52670e8 [FIX] pos_{*}: Reprint receipt with ePOS printer
The "Reprint receipt" button was not showing if an ePOS printer was
selected.

When the pos_reprint module was installed, the "Reprint Receipt" button
was always present, even if the checkbox in pos_config was unchecked.
2019-09-03 13:51:30 +00:00
Antoine Prieels dc4090a3b4 [FIX] hw_drivers: Status of network printers in POS
When selecting a network printer in the POS the status of the proxy
showed "Printer Disconnected" because the list returned by the driver
only contained USB printers.
2019-09-03 13:51:30 +00:00
Antoine Prieels 937a7e95b7 [FIX] pos_epson_printer: Error on invalid IP not showing
When the IP address of an Epson printer is wrong the error message was
displayed before the POS was loaded so the user would never see it.
We now wait that the UI is loaded before showing it.
2019-09-03 13:51:30 +00:00
Antoine Prieels b780549f91 [FIX] point_of_sale: Don't scan network without IoT Box
We use the same "Cashdrawer" field for the printer connected to the IoT
Box and the one without IoT Box. When you checked this box, the POS
scanned the network to find an IoT Box, even if you want to use an
Epson ePOS printer.
2019-09-03 13:51:30 +00:00
Yenthe666 2977b2c5a8 [IMP] hr_recruitment: fix typo's and improve source terms
closes odoo/odoo#36040

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-10 12:59:28 +00:00
qsm-odoo 64c943b8a8 [REF] website: reorganize the snippets order a little
Part of https://github.com/odoo/odoo/pull/36515

closes odoo/odoo#36515

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-10 11:49:34 +00:00
qsm-odoo 623d7358d8 [REF] web_editor, *: review the whole snippets options UI system again
* website_form

Now, the snippets options are still displayed in the left panel but all
the parent options are also shown (and do not require to toggle them
anymore). On hovering them, the overlay style is turned in preview mode
(even for the sticky one) allowing to see which part of the DOM the
option is editing.

Part of https://github.com/odoo/odoo/pull/36515
2019-09-10 11:49:34 +00:00
qsm-odoo 53e428aa45 [REF] website: remove anchor option on columns
The anchor option was available on column so that you can target a
column which wraps on a new line in mobile... but we decided to remove
the feature as it complexify the UI.

Also fix a small bug: it was not possible to hit "save" when not
changing the anchor name of an element (an error message was displayed
to say it is already used in the page... while it is in fact used by
itself).

Part of https://github.com/odoo/odoo/pull/36515
2019-09-10 11:49:34 +00:00
qsm-odoo fb6b7013c9 [REF] web_editor: transform border-like move handles into button handle
Part of https://github.com/odoo/odoo/pull/36515
2019-09-10 11:49:34 +00:00
qsm-odoo 092409edc1 [REF] web_editor, website: review UI labels and icons
Part of https://github.com/odoo/odoo/pull/36515
2019-09-10 11:49:34 +00:00
qsm-odoo 1d22cac139 [FIX] web_editor: make dashed purple overlay visible over purple
When hovering a set of options we display a purple dashed overlay, the
problem is that it was not visible over purple-like colors. Now it is
an alternance of purple and white.

Part of https://github.com/odoo/odoo/pull/36515
2019-09-10 11:49:34 +00:00
qsm-odoo d174ed0a83 [IMP] website, *: combine first dropzone and editor messages
* web_editor

When starting a drag and drop in the editor, a series of dropzones
appear to indicate to the user where he can drop the block being
dragged. In the website editor, when an editable structure is empty,
it is filled with a message to indicate we can drag and drop something
in there. The problem was that this message and the design that comes
with it disappeared when starting a drag and drop as it was replaced by
the editor dropzones. Now, the 2 are combined: when a dropzone appears
in an empty editable structure, the message and its design are kept and
just changes color and animation to match the one of an editor dropzone.

Part of https://github.com/odoo/odoo/pull/36515
task-2057320
2019-09-10 11:49:34 +00:00
Sébastien Theys f492a13c20 [IMP] website_sale: clean up unused compute_currency
Those methods are not used anymore and can be removed.

closes odoo/odoo#36242

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-08-29 14:34:14 +00:00
Josse Colpaert 336b422286 [FIX] product: pricelist creation security on company update
One of the little advantages of sharing pricelists
(putting company False) is that we can use it also
to create an invoice in another currency in any of
the companies.

Before, when you adapted a company to use another currency,
it sometimes created a pricelist with and sometimes without company.
Now, we always share it.

We also need to create the associated properties in sudo
as you want someone with access to changing the "Companies"
to be able to add these properties even if the company is
not in the allowed companies at that moment.

closes odoo/odoo#36602

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2019-09-10 08:06:38 +00:00
Florian Gilbert 939bf9a25d [FIX] account: Change the invoice report file name.
The file name follows this format: Invoice_Name_YEAR_Number.pdf

Task id: 2060475

closes odoo/odoo#36600

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-09-10 08:05:28 +00:00
RomainLibert 39e5d93c97 [FIX] web: use New as default value for breadcrumb
Before this commit if `display_name` was in the view, the breadcrumb when
creating a new record, the breadcrumb would display either `Unnamed`,
either the last value of `_title` in `action_mixin`.

The default value when creating a record should be `New`, but the return
was ignored because `display_name` was found in the view

closes odoo/odoo#36565

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-09 12:53:52 +00:00
Martin Trigaux 68c753af55 [I18N] *: export saas-12.5 source terms
Still without demo data

closes odoo/odoo#36559

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-10 08:58:33 +00:00
Martin Trigaux 27a59776ca [FIX] mail,website_twitter: typos, wording
Courtesy of translator team
2019-09-10 08:58:33 +00:00
Thanh Dodeur 554c0bce74 [FIX] web: searchPanel style tweaks for the panel selectors
Moves the custom documents search panel style to the search panel
of community to improve usability and fix several visual glitches.

closes odoo/odoo#36496

Task: #2061957
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-09-09 11:54:44 +00:00
Lucas Lefèvre 04bf0ed963 [FIX] im_livechat: Style button to submit review
When a visitor close the livechat and submit a review,
the "Send" button is not styled.

closes odoo/odoo#36487

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-05 14:46:19 +00:00
Lucas Lefèvre cb80d0533e [FIX] website_livechat: Use correct image field
Go to the frontend "Live Support" menu => server error.

Since commit f0ffbea `im_livechat.channel` no longer has a field
`image_64`.
2019-09-05 14:12:14 +00:00
Simon Lejeune d6dcbce4fb [FIX] mrp: view mobile friendly
rev [0] was incomplete, the
possible_bom_product_template_attribute_value_ids field was not computed
in mobile because parent_product_tmpl_id was not sent to the server.

rev[1] broke the normal produce wizard

[0] 5d5644c721
[1] 916b49381b

closes odoo/odoo#36595

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-10 08:06:49 +00:00
Jigar Vaghela 44221cffac [FIX] base_address_extended: Fix cache miss bug
Before this commit:
-The company have 3 street fields have separate inverse method this all method is update same partner fields
-Partner also has same 3 street fields but have the same inverse method for all street fields
-Now the problem is when user company street inverse call then partner inverse also call at that time partner inverse try to access other street fields that not available in a cache so an error occurred.

After this commit:
-Company 3 street fields have the same inverse method so no cache problem when accessing all street fields in partner inverse method

task-2068145
Closes #36568

Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-09-09 13:41:00 +00:00
Kevin Baptiste 9407383a56 [FIX] web: correctly position "no records found" in modal dialog
Before this commit, the message "No records found!" was positioned above
the search filters.

closes odoo/odoo#36537

Taskid: 2067797
Signed-off-by: Romain Libert (rli) <rli@odoo.com>
2019-09-09 07:09:48 +00:00
Barad Mahendra 7420e6041e [FIX] base_setup: load demo data does not works
While moving web_settings_dashboard to base_setup in
commit: https://github.com/odoo/odoo/commit/78565b1dc933692abba46a73f2298b7ea8e03c88#diff-2ac1c5a222c5332be62450c099440fd6L292
the load demo data click event was missing.

so added event to load the demo data in base_setup.

Task-2062477

closes odoo/odoo#36275

Closes: #36275
Signed-off-by: Romain Libert (rli) <rli@odoo.com>
2019-08-30 10:58:03 +00:00
Robin Heinz d2ad483850 [FIX] point_of_sale: barcode field visible
Before the fix, the display of the barcode field on the contact form was always invisible.
Now this field will be visible.

closes odoo/odoo#36548

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-09 09:49:56 +00:00
Lucas Lefèvre 25ab04ed59 [FIX] base: Assign value in attachment name
Try to open an attachment without a `res_model` and `res_id`
=> warning.

Since the new ORM changes, a compute method always needs
to assign a value.

closes odoo/odoo#36460

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-05 11:29:01 +00:00
Joseph Caburnay d6543adc05 [IMP] point_of_sale, pos_adyen, pos_mercury: payment terminal per method
For now when you are using payment terminals in the point of sale, you
have different way to configure payment temrminals, for the IOT, you
have to select the payment terminal in the pos config, and for adyen and
ventiv you have to configure them in the payment method.

So we've modified it to always configure payment terminal on payment
mehthod, and not on the pos config anymore, with iot you'll be able to
select the specific device you want to use, even if it is not on the iot
box set on the pos config.

closes odoo/odoo#35665

Task-id: 2042382
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-09 14:08:51 +00:00
Robin Heinz 7c6c76d021 [FIX] delivery: free over display change
Before the fix, the display of the boolean was bad.
Now the text is align with the checkbox and the amount related to this if true is on the next line.

closes odoo/odoo#36408

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-04 09:07:31 +00:00
wan 2ad8d8c964 [REF] web: add public API to open the selectCreateDialog of a many2many
Part of task 2005972
It is used in account_asset, when the o2m field is hidden and at the end of the form, but we need the user to see it at the beginning of the form

closes odoo/odoo#36315

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-09 14:22:27 +00:00
Thibault Delavallée 4ba77c52f5 [FIX] phone_validation: fix MRO issue with phone.validation.mixin
Issue is that when a model inherits from phone.Validation.mixin, then from
mail.thread.phone (which inherits from phone.validation.mixin) we have
an issue :

TypeError: Cannot create a consistent method resolution
order (MRO) for bases BaseModel, base, mail.thread, phone.validation.mixin,
mail.thread.phone

As fixing it could be complicated we have a way to avoid it: move conflicting
code as it is used only in mail.thread.phone .

In this commit we also import a file forgotten at d2809cbd94 which triggers
the issue itself.

Task 2063049 (bug spotted)
Task 2061765 (triggering the issue)

closes odoo/odoo#36580

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-09 15:54:45 +00:00
Simon Lejeune 5ed25aadb6 [FIX] sale_stock: cannot see a dropship picking
since 1a33056557

closes odoo/odoo#36579

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-09 15:41:04 +00:00
Simon Lejeune 5d5644c721 [FIX] mrp: bom view mobile friendly
closes odoo/odoo#36577

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-09 15:17:06 +00:00
Simon Lejeune 916b49381b [REF] mrp: produce wizard mobile friendly 2019-09-09 15:17:03 +00:00
Arnaud Baes ef30bd438c [FIX] stock: preserve context in scrap wizards
Context was overwritten in the wizard warning for insufficient
quantity when trying to scrap a componenent from a MO. This had a
side-effect on the move creation of the scrap where the move was
not linked to the MO, thus ignored by the cost analysis report.

closes odoo/odoo#36563

Tasks: BugLogistics
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-09 12:39:29 +00:00
Simon Lejeune cc8994a4ef [REF] stock_account: consider consumable product for anglo saxon entries
closes odoo/odoo#36560

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-09 12:35:32 +00:00
Raphael Collet 36346afd96 [FIX] models: callable in api.depends() sees valid _rec_name
Determine `model._rec_name` before the dependencies of the fields.  The
compute method of the automatic field `display_name` uses a callable
depends that retrieves `model._rec_name`.

closes odoo/odoo#36484

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-09 13:42:45 +00:00
Sébastien Theys 331e1f70ec [IMP] (website_)sale(_comparison): remove 12.0 compatibility code
This code was introduced for fixes in stable version but it is not used now.

closes odoo/odoo#36365

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2019-09-09 12:54:41 +00:00
Vincent Schippefilt 029dd1a214 [IMP] web: edit translations in new dialog
Before this commit, translations were edited in a list view with a filter
on the field that needed to be translated.

After this commit, the translations for each fields are translated in a
dedicated dialog. The changes done to the current language are taken
into account immediately, both ways, from the dialog to the form and
from the form to the dialog.

Translating terms is also available in create mode, the user will be
prompted to save before editing a translation

Task ID: 2028152

closes odoo/odoo#36185

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-09-09 13:09:53 +00:00
Raphael Collet 263849c336 [FIX] models: optimize modified() in the context of record creation
This prevents a bunch of queries that are useless when creating a
record.  Indeed, right after a record has been created, no other record
has a many2one reference to it.  In other words, inversing a many2one
field from the record just created always gives an empty recordset.
Those useless inversions generate about a dozen queries when creating a
`res.partner`, for instance.

This saves queries, but not much time.

closes odoo/odoo#36566

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-09 13:18:53 +00:00
Raphael Collet cfb08e87b0 [FIX] models: use transitive triggers instead of recursion
On average, this reduces the total time spent in method `modified` by
half (times measured on invoice creation and post).
2019-09-09 13:18:48 +00:00
Simon Lejeune 3d2df88ffd [FIX] stock: default company on lot created in inv adj
closes odoo/odoo#36564

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-09 12:52:48 +00:00
Odoo's Mergebot 03f1750824 [MERGE] base_setup, phone_validation: improve and fix SMS integration
PURPOSE

Allow auto install of all SMS-based feature. Move partner onchange formatting
directly inside phone validation.

SPECIFICATIONS

Phone validation: set as auto install. Phone validation module is a direct
dependency of SMS which is integrated in more and more business apps. As such
we want sms to be auto-installed, hence making phone_validation auto-install
as well.

Send SMS feature should not be an option anymore. Move SMS settings it to the
left of the Partner Autocomplete one and remove field. Since SMS is now
integrated with several business apps we do not want the user to uninstall that
module "by inadvertence".

Move the onchange on the phone field of contact model directly inside phone
validation to have it available in all SMS based applications.

LINKS

Task 2061765
FP/AJU request

closes odoo/odoo#36481

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-09 16:27:50 +02:00
Thibault Delavallée d2809cbd94 [IMP] phone_validation, crm: move onchange on phone fields
PURPOSE

Allow auto install of all SMS-based feature. Move partner onchange formatting
directly inside phone validation.

SPECIFICATIONS

Move the onchange on the phone field of contact model directly inside phone
validation to have it available in all SMS based applications.

LINKS

Task 2061765
2019-09-09 12:45:47 +00:00
Rémi Rahir f6c2d7ebba [IMP] base_setup : remove install button of SMS
PURPOSE

Allow auto install of all SMS-based feature. Move partner onchange formatting
directly inside phone validation.

SPECIFICATIONS

Send SMS feature should not be an option anymore. Move SMS settings it to the
left of the Partner Autocomplete one and remove field. Since SMS is now
integrated with several business apps we do not want the user to uninstall that
module "by inadvertence".

LINKS

Task 2061765
2019-09-09 12:45:44 +00:00
Rémi Rahir 1ad04f2180 [FIX] phone_validation: set module as auto install to auto install SMS bridges
PURPOSE

Allow auto install of all SMS-based feature. Move partner onchange formatting
directly inside phone validation.

SPECIFICATIONS

Phone validation: set as auto install. Phone validation module is a direct
dependency of SMS which is integrated in more and more business apps. As such
we want sms to be auto-installed, hence making phone_validation auto-install
as well.

LINKS

Task 2061765
2019-09-09 12:45:40 +00:00
oco-odoo 5cf9d55bbc [FIX] account_facturx: retrieve attachments in the right way to create an invoice
Before that, we relied on the fact the call to super() assigned the attachment_ids field, which was wrong outside mail.compose.message. Hence, we fix that by directly browsing the attachment.

closes odoo/odoo#36552

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-09 10:54:11 +00:00