Commit Graph
117975 Commits
Author SHA1 Message Date
qdp-odoo e2864c87a2 [FIX] account: tax cash basis for supplier vendor bill
Fixes #24743
2018-05-18 17:04:09 +02:00
Christophe Simonis bfda65d894 [MERGE] forward port branch 9.0 up to 612fd33fb1 2018-05-18 16:19:21 +02:00
Christophe Simonis 612fd33fb1 [FIX] http: correct protocol parsing 2018-05-18 16:15:55 +02:00
Erick Birbe 9d1083829f [IMP] base: Mexico VAT labels is RFC
For Mexico country the VAT label is RFC that stands for "Registro
Federal de Contribuyentes" (Federal Taxpayer Registry Code).

* https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Mexico-TIN.pdf
2018-05-18 16:15:29 +02:00
SEINLET Nicolas 0b6182de38 [FIX] mail: speed up search on followers (#24737)
Odoo puts in cache all stored fields of a recordset when you access the
first stored field not already in cache.  In this particular case, Odoo
will put in cache all stored fields of 'mail.followers', which is
unnecessary and time consuming, especially on models where user follows
plenty of records.

With thousands of followed records, using a read() when searching on
followers is around 2.5 times faster than using mapped().

Record rules based on followers are speed up the same way.
2018-05-18 15:05:22 +02:00
Prakash Prajapati 3cd7cf96d1 [IMP] im_livechat: improve live chat rating screen
Currently, layout for rating a chat is not looking so well.
This commit improves the rating layout. It will
 - Center the content (including smileys)
 - Enlarge the fonts (a little bit)
 - Underline the link instead of using italics (more intuitive)

Task : 1838321
PR : #24413
2018-05-18 15:00:15 +02:00
Fabien Meghazi 3862c03ec2 [FIX] base: honor registry/cache signaling for multiple threaded servers
Before this patch the registry and cache signaling was only activated
for PreforkServer. In case Odoo was deployed in a multi process/multi
threaded architecture the signaling was not ensured, causing registry
de-synchronisation amongst threaded servers.

Backported from fd4939dc78
2018-05-18 14:33:22 +02:00
Fabien Meghazi c60b22335b [FIX] base: honor registry/cache signaling for multiple threaded servers
Before this patch the registry and cache signaling was only activated
for PreforkServer. In case Odoo was deployed in a multi process/multi
threaded architecture the signaling was not ensured, causing registry
de-synchronisation amongst threaded servers.
2018-05-18 14:20:35 +02:00
len-odoo 8194e2cb80 [FIX] web: correctly handle admin svg images in channel
When posting an svg image, Odoo tries to resize it for thumbnailing
(like any image).
However this is of no interest since this is a vectorial file format, and
furthermore it distastefully makes the image library Pillow crash, since it only
supports raster formats.
The result would be a broken thumbnail instead of the image itself.

By not setting the thumbnail size if the mimetype contains svg,
we ignore the thumbnailing altogether.

Note that this only applies to the admin user, as otherwise the file is
treated as binary and thus no thumbnailing occurs anyway.

opw 1841153
2018-05-18 13:33:30 +02:00
Rishabh Jadia 799b10eca5 [IMP] pos,purchase,sale,stock,website_sale: show variant
We recently hid the Variants menu items in debug mode. We want to revert
this because the users need to see that menu for business operations.

  eg : Check the inventory per variant

This partially reverts commit 62900064c0

Related to task #1839980
Closes #24553
2018-05-18 13:29:50 +02:00
len-odoo cb4c2be377 11.0 fix negativewos jco (#24781)
* [FIX] mrp: negative workorder issues

- In the onchange of the qty_producing in the wo,
we need to add the date to the stock.move.line as
it is a required field.
- When starting a workorder, check first if it has
not already been done.
2018-05-18 13:20:29 +02:00
Thibault Delavallée ec5885ae5b [REF] mail: remove unnecessary headers in notification emails
Several contextual data is added in notification emails in their headers.
We consider as not necessary to put some of them, notably db uid. It should
not be used outside of Odoo and having Odoo-Objects should be sufficient
for people that want to categorize their emails.
2018-05-18 13:09:56 +02:00
Lucas Perais (lpe) abda3464ed [FIX] web: get_file handles arbitrary AND serialized exceptions
Commit bcd4c90 was intendend to make get_file handle uncaught/unserialized exceptions
in the context of a http request

The drawback is that when get_file received a serialized exception (route: /report/download)
the JS modal was empty in that case

This commit handles both the cases

OPW 1848606
closes #24794
2018-05-18 13:03:31 +02:00
Denis Ledoux 36d45175b0 [FIX] mail: translate activity type in kanban
When opening the activity dropdown in the kanban view
of the opportunities,
the activity type names were not translated in the user language.

In addition, when marking it as done, the message
posted in the discussion thread of the opportunity
was not translated either.

opw-1847908
2018-05-18 12:31:07 +02:00
qsm-odoo 7e59d30d9c [MERGE] web_editor: add the image cropping feature
Thanks to this merge, users are now able to crop their images using the
editor. This is done by clicking on a content image and then the crop
button appearing in the editor bar. Cropping an image will only crop the
image at the location it was clicked by creating a new image for that
location. Cropped images do not appear in the media dialog.

task-43706
Closes https://github.com/odoo/odoo/pull/22473
2018-05-18 12:16:28 +02:00
Kishan Gajjar d66e260391 [IMP] web_editor: allow cropping content images 2018-05-18 12:15:42 +02:00
Kishan Gajjar fd5cffe235 [ADD] web_editor: add new cropper lib 2018-05-18 12:15:42 +02:00
Nicolas Martinelli 8116756e51 [FIX] website_sale_delivery: price display consistency
- Use a shipping method costing $ 1.00
- Buy a product costing $ 1.00

In the payment page, the delivery cost is displayed `$ 1.00`, while the
subtotal is displayed `$ 1`.
2018-05-18 11:58:08 +02:00
Nicolas Martinelli 8243549bf6 [FIX] website_sale_delivery: display delivery price
- Set up as a shipper with the highest priority one which will cause an
  error (e.g. service not available for customer address)
- Order a product on eCommerce, go to Payment page
- No delivery amount is set
- Change shipper to one which doesn't cause an issue
- The delivery amount is set
- Switch back to the shipper with error

The delivery amount stays set, while it should change back to zero.

Every time we update the carrier, we automatically remove the delivery
line. One will be added back if the rating succeeds. Moreover, we update
the prices even if the rating doesn't succeed. Since the delivery line
was removed, the price will be updated without delivery.

opw-1838765
2018-05-18 11:58:08 +02:00
Nicolas Martinelli 3bf8e75379 [FIX] website_sale_delivery: display delivery price
- Set up as a shipper with the highest priority one which will cause an
  error (e.g. service not available for customer address)
- Order a product on eCommerce, go to Payment page
- The 'Delivery' amount (next to the total/subtotal) is not displayed
- Change shipper to one which doesn't cause an issue

The 'Delivery' amount is still not displayed.

The amount is displayed if there is no issue at first rendering of the
page, but never re-evaluated afterwards.

The 'Delivery' amount is now displayed if there is a shipper on the
order.

opw-1838765
2018-05-18 11:58:08 +02:00
Nicolas Martinelli cc878d029a [FIX] website_sale_delivery: remove error
- Set up as a shipper with the highest priority one which will cause an
  error (e.g. service not available for customer address)
- Order a product on eCommerce, go to Payment page
- The error "Ouch, you cannot choose this carrier!"
- Change shipper to one which doesn't cause an issue

The error is still displayed.

The error is displayed at first rendering of the page, but never
re-evaluated afterwards.

There is no other choice than removing it. Anyway, in the opposite case
(default shipper is OK, and then select one which causes an error) the
error doesn't appears.

opw-1838765
2018-05-18 11:58:08 +02:00
Ignacio Ibeas - Acysos S.L 794df3cadf [CLA] Acysos S.L. 2018-05-18 11:46:07 +02:00
Ignacio Ibeas - Acysos S.L 10ac023707 [ADD] l10n_es: special taxes for agriculture, ranching and fishing 2018-05-18 11:46:07 +02:00
Christophe Monniez c28a998d3d [IMP] server: intercept SIGXCPU and shutdown gracefully
When the runbot spawns an Odoo instance, a CPU TIME limit is set.
When this limit is reached, the kernel kills the Odoo instance and no
message appears in the logs leaving the dev in a deep smoke cloud.

With this commit, the signal sent by the kernel when the soft
limit is reached (SIGXCPU), is intercepeted and Odoo shutdown gracefully with a
nice message for the dev.
2018-05-18 11:26:46 +02:00
Olivier Dony 406df78f43 [FIX] hr: make field-level groups consistent
a696f84f1f adds a few extra fields to the
Private information tab of the employee form. As a result, HR personnel
and employees could reasonably expect these fields to be protected in
the same manner as the other private fields. Make it so.

Cherry-Pick of odoo/enterprise@533db05b5e

Fixes #18610
2018-05-18 11:21:46 +02:00
Darshil Trivedi ffb79761c1 [IMP] stock: rework of immediate transfers.
The transfers are either 'planned' or 'immediate' but the process are sensibly the
same. This commit separate clearly the two possible pickings (with a new boolean field)
and simplify the view of immediate ones. This kind of transfer is pretty straightforward
so only the 'Done' column remains and the text stays written in black.
2018-05-18 08:28:11 +02:00
Darshil Trivedi d9feb74ae8 [IMP] mrp: set default product quantity and unit of measure
At the creation of a manufacturing order, the default values for product_qty
and uom is respectively 1 and the product's one. We now use the the values
given by the bom
2018-05-18 08:28:11 +02:00
Darshil Trivedi 142e8fca2e [IMP] purchase: create purchase order without any purchase order lines.
On purchase orders, the scheduled date is mantadory. This date is computed from
the purchase order lines and hidden. If there is no purchase order line, the date
stays empty and it's not possible to save the PO.
This commit uses the order date as scheduled date if there are no PO lines
2018-05-18 08:28:11 +02:00
Fabien Meghazi 866d1e7190 [FIX] server: fix support for systemd socket activation in threaded server
This patches fixes the untested and broken draft of inetd and systemd
activation support in the threaded server.

This patch also fixes the loss of the process environment in the
`_reexec()` function when Odoo is respawning during the following events:

    - SIGHUP signal is received
    - one click install has been triggered
    - code reload needed when using `--dev=reload`
2018-05-17 18:38:13 +02:00
RomainLibert 31227289d2 [FIX] hr_holidays: remove group by manager/validator
Since the renaming/split of model hr_holidays, the report does not
contain fields `manager_id` and `second_approver_id` anymore, hence
using the filters was crashing the client.
2018-05-17 17:50:07 +02:00
Josse Colpaert 4e71bd5caf [FIX] stock: customer/vendor location empty
When creating a new company, the fields customer/vendor location
were empty.

Now, these fields are set with the internal transit location for the company
of the partner and set with Partners Locations/Customers and Partners Locations/Vendors
for the other companies.

opw:1845753
2018-05-17 17:07:24 +02:00
Olivier Dony 0ee73b1cc3 [FIX] payment_ogone: use correct ECI code
According to Ingenico's documentation, the right transaction origin
(ECI) code to use for recurring transactions is 9.
ECI value 2 is used for recurring MOTO transactions (mail/telephone
orders), which require special authorizations.

Switch to the eCommerce code 9 to make Ingenico subscriptions/contracts
easier to obtain.

Source: https://payment-services.ingenico.com/int/en/ogone/support/guides/integration%20guides/directlink#requestparameters
2018-05-17 16:51:04 +02:00
Goffin Simon eac4c0badf [FIX] purchase: Print RFQ and status does not change
Due to this commit: 98cb4719db

When printing a RFQ, the status of the quotation didn't change in SENT.

opw:1849139
2018-05-17 15:38:27 +02:00
Toufik Benjaa f1330d0709 [FIX] hr_holidays: Add form view type on leaves
- The leaves list had the view mode form missing, which means we were unable to access the leaves in the form view.
2018-05-17 15:26:30 +02:00
Nirali Sapra 47c34d2932 [IMP] stock: hide the source and destination location
This commit hide the column source location if the type is incoming and hide the
destination one if the type is outgoing. When picking type is 'vendor' then no
need of source location. If picking type is 'custmomer' there is no need of destination location.

This commit is related to task ID 59417
2018-05-17 15:02:05 +02:00
Nirali Sapra 2d8607bea7 [IMP] purchase : remove stat button with link to PO on the reordering rules
This commit is related to task ID 59417
2018-05-17 15:02:05 +02:00
Nirali Sapra fcb9fafcad [IMP] stock: remove force_assign method
This commit remove force_assign method in every tests of point_of_sale, purchase, sale_mrp,
sale_stock, stock and stock_account . This method is not longer used since V11.

This commit is related to task ID 59417
2018-05-17 15:02:05 +02:00
Nirali Sapra ec37a48013 [IMP] stock: 'validate' button in primary mode
This commit change the validate button in stock picking. It's now primary only when the
picking is in ready stage. Before this commit, this button was primary on waiting stage too.

This commit is related to task ID 59417
2018-05-17 15:02:05 +02:00
Nirali Sapra dc151cbd1c [IMP] mrp: remove the work order messages
This commit removes work order messages menu as it's not used anymore since V11 in the new WO screen

This commit is related to task ID 59417
2018-05-17 15:02:05 +02:00
Denis Ledoux f8d0efee92 [FIX] stock: use product qty decimal accuracy in Picking Operations
Since revision f6144fe1f3,
the decimal accuracy for the product quantity in
the picking operations report was no longer applied,
leading to display a bunch of numbers after the comma
in some cases.
e.g. 15404.000000000002 Unit(s)

opw-1846723
2018-05-17 14:27:11 +02:00
Christophe Simonis 644f0959d0 [MERGE] forward port branch saas-11.2 up to 1655202924 2018-05-17 14:23:37 +02:00
Christophe Simonis 1655202924 [MERGE] forward port branch 11.0 up to 59a8a1cd8e 2018-05-17 13:19:49 +02:00
Denis Ledoux 59a8a1cd8e [FIX] account: accounting advisers can create taxes
Since revision 4acec418ce
it was no longer possible for an accounting adviser
to create taxes.

This is because when creating a taxes,
as the related field `hide_tax_exigibility` wasn't readonly,
it attempted to write on the field
`tax_exigibility` of the model `res.company`,
and the adviser do not has that access right.

There is no reason for this field not to be readonly,
as it is used only to compute an invisible attrs
for the tax form view.

opw-1846265
2018-05-17 12:56:00 +02:00
Thibault Delavallée 7313ce7d3c [FIX] mail: correctly fetch needaction partner ids in chatter
Why y push too fast.
2018-05-17 12:34:46 +02:00
Thibault Delavallée 0897195f91 [FIX] mail: improve implementation of message format fix
This is a better implementation of 19fb650863. It seems we did not
see the fix was inside a loop meaning not really optimized when thinking about
Inbox fetching a lot of messages.
2018-05-17 12:27:38 +02:00
Toufik Benjaa fc3177af9e [FIX] hr_timesheet: Use analytic account company on timesheet line
- When creating an analytic line for a timesheet that uses a project linked with an analytic account, we copy the company_id of the account to the line.
2018-05-17 12:05:44 +02:00
Christophe Simonis 935043dda1 Revert "[FIX] website_quote: make 'Pay & Confirm' work without website_sale"
No dependency change in stable version

This reverts commit 65a589eb54.
2018-05-17 11:37:01 +02:00
Goffin Simon a16114efb4 [FIX] mrp: Two fields with the same label on stock.move
The field quantity_done_store had the same label as the field product_uom_qty
on model "stock.move" and there were confusions in the pivot view of
"stock.move".

opw:1841097
2018-05-17 09:54:37 +02:00
Nicolas Martinelli 77aa313b14 [FIX] mail: XHTML
In case an email received contains XHTML, `fromstring` fails because of
the following error:
> Unicode strings with encoding declaration are not supported. Please
> use bytes input or XML fragments without declaration.

opw-1832683
2018-05-17 09:27:38 +02:00
Lucas Perais (lpe) cd26eb8e7c [FIX] l10n_fr_fec: EcritureLib should not be empty
Make an account move with two move lines.
In those lines' label, just hit the space bar, and post your entry.

Now, get the FEC report.

Before this commit, the EcritureLib field was empty

After, it has the value '/'

closes #24734
2018-05-17 09:24:31 +02:00