Commit Graph
127612 Commits
Author SHA1 Message Date
Raphael Collet f67649a6d1 [FIX] website: side effects in get_current_website() 2018-08-23 21:38:57 +02:00
Xavier Morel 568dd8f4c6 [FIX] product, uom: add access rights to system group 2018-08-23 21:38:57 +02:00
Raphael Collet 2f7c03d9ca [IMP] base: add regular user admin as uid 2
User 1 simply becomes a technical user (inactive, no password).
2018-08-23 21:38:57 +02:00
Raphael Collet 7ba9acea18 [FIX] fields: context on Many2many field 2018-08-23 21:38:57 +02:00
William Henrotin d78b6f5e25 [IMP] mrp: block updating live BoM
When modifying a BoM that is used in a MO not done, raise a blocking
warning to avoid inconsistenties at production.

Proudly pair programmed with pim <pim@odoo.com>.

Some mrp tests has been adapted to not raise the new error. They used
demo data while they should created inside the test.

This commit is related to task id : 1855566
2018-08-23 20:32:27 +02:00
RomainLibert dc91e3cb0e [FIX] sale: use m2o instead of integer
The field order_id is a many2one on sale.order and not an integer
2018-08-23 17:44:13 +02:00
jem-odoo 02645a6005 [IMP] uom: sql constraint is better than python one
Since we got 2 constraints checking the same
thing (one python, one sql), it is better
to remove the python one, which is not
very performance friendly in case of huge
import.
2018-08-23 17:28:07 +02:00
jem-odoo 69a898cf8b [IMP] uom: add constraints to force reference factor
When importing big amount of data, user can import
a list of uom. There is no constraint in Odoo to
force the factor to be equal to 1.0 for the reference
UoM in a category.
Onchange is not enought to ensure that constraint,
so this commit adds one in SQL for data intergrity
and to avoid problem in '_compute_quantity'
method.
2018-08-23 17:20:47 +02:00
jem-odoo aa1b7072f7 [IMP] hr_timesheet: Analytic account implies UoM
Since the employee is not required on a timesheet, and that
the employee implies the uom, and that the UoM is required
for the timesheet unit amount to be included in the delivered
quantity of a SOL, we now deduce the uom from the company of
the AA, and not from the company of the employee anymore.
2018-08-23 17:20:47 +02:00
Raphael Collet 5701d93624 [FIX] *: decorator returns on message_post 2018-08-23 17:01:22 +02:00
qsm-odoo 883da1d4d7 [FIX] hr_attendance: fix mistake in linear-gradient rule 2018-08-23 16:45:40 +02:00
jpr-odoo 966a13d03f [FIX] website_forum_doc: BS4, restore search bar design 2018-08-23 16:45:40 +02:00
qsm-odoo 9fc771dd5d [FIX] web: BS4, restore slider checkboxes
Take advantage of the new BS4 checkbox structure to simplify the
widget too.
2018-08-23 16:45:40 +02:00
Christophe Simonis 6fd68c28cd [FIX] core: use actual chrome/chromium executable on macOs. 2018-08-23 16:37:17 +02:00
Florent de Labarre d5357e4488 [IMP] uom: force factor to be 1 if reference unit
The _onchange_uom_type was already making sure it was the case but this
constraint ensure it is always the case.

Closes #25465
2018-08-23 16:29:21 +02:00
Aaron Bohy f6e5bd13d4 [FIX] web: Kanban QuickCreate: create on 'ENTER'
Rev. 241704536d highlighted a bug in the Kanban RecordQuickCreate
widget, when a form view is used inside the widget.

Let's assume a quick create form view with a char field. The user
fill in this field and press 'ENTER' (without focusing out). The
record is about to be created. But first, we have to ask all fields
to commit their value (through 'commitChanges'), in case they
wouldn't have yet. The char field thus notifies its parents of its
new value at that moment. The form controller handles this request
in its '_applyChanges' function, but this is done in its mutex (to
prevent overlapping onchange RPCs). Unfortunately, this leads to a
deadlock as the quick create form controller already executed the
'commitChanges' request in this mutex.

Actually, there is no need for the quick create form controller to
execute the 'commitChanges' request in the mutex, as it is already
properly mutexified upstream. This rev. thus remove the use of the
mutex at that spot.

Note that before rev. 241704536d, the bug didn't occur because the
'commitChanges' function of InputField didn't return a deferred,
and thus the mutex was unlocked directly.

To be complete, let us mention that there are still some
concurrency issues with the quick create widget (like multiple
records creation on double clicks or double 'ENTER' keypress).
Those issues will be tackled in a future commit.

Task 1878977
2018-08-23 16:18:32 +02:00
RomainLibert 3f2bc7b11f [FIX] various: adapt code to new datetime fields
Some code was still using the date and datetime fields as if they were
strings, but they are now dates and datetimes
2018-08-23 16:03:55 +02:00
Swapnesh Shah 0562fc0ffd [IMP] point_of_sale: add domain on field
Make sure the selected tip product is one available in the point of sale

Closes #25406
2018-08-23 16:00:26 +02:00
Mitali Patel ac41cd8195 [IMP] mrp: Change the condition 'and' to 'or' in product variants having the same attribute value
For example: I want to consume a component A if the product is grey OR yellow.
Currently,the component A will be consumed if the product is grey AND yellow. But this variant never exists as grey and yellow are values for the same attribute. So if the values are for the same attribute, odoo should check for a product that is GREY OR YELLOW (and not GREY AND YELLOW).

TASK-ID: 1865604
2018-08-23 15:54:23 +02:00
Invitu a19d2c98f4 [FIX] point_of_sale: consider timezone in return orders
Similar to 21575407 for returns
payment_date is a date field, make sure the day is the one of the user

Closes #25342
2018-08-23 15:52:55 +02:00
Nicolas Lempereur 01b1830219 [FIX] mail: access token in received cid images
Following 50ab18176 an access token is added in the URL, but there may
not be an existing access token. If so this commit generate one.

opw-1877347
closes #26526
2018-08-23 15:38:34 +02:00
jem-odoo 5e73d121be [IMP] hr_timesheet: use correct view
When coming from project form view, the user can see
the list of timesheet. Before this commit, the employee
does not appears in the columns, which makes the view
less usefull for users.
2018-08-23 15:32:42 +02:00
Hiral Bhavsar c7899279a2 [IMP] account: usability improvements
- "Balance in GL" renamed "Balance in General Ledger" on dashboard
- "Entries to review" button on dashboard adds 'draft' filter by default
- streamline hover effect of 'import statement' option with other bank journal buttons' on dashboard
- better look for l10n_eu_service setting

Was task 46188
Was PR https://github.com/odoo/odoo/pull/22698
2018-08-23 15:28:35 +02:00
Hiral Bhavsar f3b513303c [IMP] l10n_de: rename "Deutschland" to "Germany"
Was task 46188
Was PR https://github.com/odoo/odoo/pull/22698
2018-08-23 15:28:24 +02:00
Raphael Collet 3ea11e6e6f [IMP] server: flag thread as testing when test-file runs 2018-08-23 15:21:06 +02:00
Divyesh Patel 5ecc390a80 [IMP] stock_account: change account move line description
This commit changes the account move line description created
by changing the cost of a product where inventory valuation is
'automated'. The new message contains the user name, the price before
and after.

Task Id: 1860578.
2018-08-23 15:20:32 +02:00
Toufik Benjaa 61d790d6e2 [FIX] base: avoid crash when acessing image without access_token
- When accessing an image from an "ir.attachment" which doesn't have an
  access_token, the code crashes if you provide the argument access_token
  on the URL.

  This is due to a comparison between a boolean and a string using the
  consteq function.
2018-08-23 15:20:24 +02:00
Kirti Choudhary a6557a2306 [IMP] product: easy creation of packaging from product form
The product.template form view lists all product.packagings containing it.
When we create a new packaging from the product. We don't need to specify
and display the product again.

Task ID - 1862041
2018-08-23 15:20:08 +02:00
Arnold Moyaux aeb038747f [FIX] mrp: split sam pull_push in two routes
Currently if the user want to apply the stock after manufacturing push
rule, he has to select manufacture rule on the product. That could be
easily forget by people not used to rule and route.

In order to avoid the push rule will be applied on warehouse. That means
the user don't have to select the route on the product and it will apply
depending the warehouse.

The pull rule stay on the manufacture in order to avoid confict with
reception route/rule.
2018-08-23 15:09:56 +02:00
Christophe Monniez d4f36c0e8b [FIX] hr_holidays: remove unread meassages filter
Before the models split in a0f4f65 the Leaves Summary report inherited
the message_needaction from mail.thread.  Now the hr.leave.report model
does not have this field and leads to a traceback.

With this commit, the filter is removed from the search view of the
report.
2018-08-23 14:57:14 +02:00
Toufik Benjaa e2310eec60 [FIX] website_crm_partner_assign: display partner ordered by sequence 2018-08-23 14:54:08 +02:00
Olivier Colson 12fbbacc6d [IMP] account: reconciliation widget: format dates depending on user's language preferences. 2018-08-23 14:53:25 +02:00
Swapnesh Shah bb0df02bc1 [IMP] sale_{stock,management}: remove deprecated invoicing method
The option was removed in v9

Closes #22897
2018-08-23 14:45:40 +02:00
Martin Trigaux b303988827 [IMP] maintenant: clarify maintenance view
Previous inline was not very clear
Courtesy of Swapnesh Shah

Closes #22898
2018-08-23 14:40:44 +02:00
Swapnesh Shah d6ee2abb98 [FIX] point_of_sale: force invoice journal if enabled
When the option "iface_invoicing" is enabled, an account journal must be set.

Closes #24380
2018-08-23 14:10:14 +02:00
Jeremy Kersten 5b0327f650 [IMP] website, website_forum: add a class modal_shown on modal once css animation is completed
Use this new class in website_forum to avoid that the tour click during
the animation and fail randomly.

https://getbootstrap.com/docs/4.0/components/modal/#events
2018-08-23 13:49:01 +02:00
Hiral Bhavsar 5830fcf506 [FIX] account: reconciliation: Pass context properly when making RPC call
This way, language formatting is always performed (123.30 becomes 123,30 in French for example).
2018-08-23 13:29:41 +02:00
Vincent Schippefilt 2f4358b921 [FIX] web: view list grouped renders nicely
Before this fix, the list grouped did not render correctly when
the list was not selectable and there was 1 or 2 fields (the sum in the
footer was not aligned on the correct column)

Also fixed the fact that the group pager was not displayed if the list
had only 1 field and it was grouped
2018-08-23 13:10:07 +02:00
Vincent Schippefilt cb019bbb3b [REF] web: normalized indentation in list_renderer 2018-08-23 13:10:07 +02:00
Mitali Patel 62b962da0b [FIX] sale_management: fix override of _get_share_url not passing parameters
Related Task Id #1875591 . Closes PR #26369.
2018-08-23 13:07:51 +02:00
Raphael Collet 303a56e5d9 [FIX] mail: _compute_need_moderation() 2018-08-23 11:50:58 +02:00
Lucas Perais (lpe) 7ea67cea2e [FIX] crm: make sure there is a create date when computing date_open
Display the field date_open in the crm.lead form view
Create a new record

Before this commit, there was a crash because since the record is a virtual one
there is no create_date, hence the crash

After this commit, we make sure we select records that have a create_date, and there is no crash

OPW 1877080
closes #26499
2018-08-23 11:27:26 +02:00
Christophe Simonis b844e9af8b [MERGE] forward port branch 9.0 up to 81f975d3f4 2018-08-23 10:54:52 +02:00
Darshil Trivedi 7e9fc45109 [IMP] product: supplier info list view improvement
Add product uom and currency on product supplierinfo list view.

TASK-ID: 1868182.
2018-08-23 10:26:13 +02:00
Martin Trigaux 44d92b560a [IMP] hr: rephrase help message
Courtesy of Yenthe Van Ginneken
2018-08-23 09:51:11 +02:00
Cedric Snauwaert 1f848bf9d1 [FIX] account: reconciliation tour
the tour was directly stepping to step2 without waiting for 10s due to empty run function. This was resulting in some random in the build depending on the speed
needed to display the widget.
2018-08-23 09:31:05 +02:00
Toufik Benjaa 81f975d3f4 [FIX] mail: channel_get return wrong channel when duplicate partners
- In some cases (merge of partners, etc ...) there might be mail.channel
  that have two mail.channel.partner with the same res.partner.
  When you try to open a discuss window with a partner for which you
  have no existing mail.channel.
  The channel opened is the one where your partner is duplicated.
  This is due to the fact that the SQL request to find the mail.channel
  doesn't take in account that a mail.channel may have twice the same
  partner.

  To fix this issue, we try to exactly match the partners we search.
2018-08-22 17:59:22 +02:00
Prakash Prajapati 123f1d1588 [IMP] stock: readonly for inventoried product
Create an inventory adjustment and select an inventoried product, the
inventoried product should be the only product selectable for inventory
lines.

Task: 1861241
2018-08-22 17:29:09 +02:00
qsm-odoo a754a77bd8 [FIX] web: restore odooBounce once again
The odooBounce (previously openerpBounce) function has been fixed many
times over the years. Each time breaking the layout a different way
after the backend was redesigned.

It is time for the proper fix: no more JS animation relying on jQuery,
instead: a CSS animation. Let's try a bouncing outline instead of a
bouncing button for a change.
2018-08-22 17:11:31 +02:00
Josse Colpaert 92172d0229 [ADD] iot: basic models + controllers server-side, print reports, measure widget
When an IoT box is configured as IoT box, it will
send all the information about itself and its devices
to its server.  This way the server knows which ip and which
devices are on the iotbox.  Reports and in the enterprise
version quality points will be linked to devices.
In the module iot, the models and the controller are defined for this.

There is also a javascript part with a widget for taking
a measure and the possibility to link any report with a printer device.
2018-08-22 16:54:57 +02:00