Commit Graph
112618 Commits
Author SHA1 Message Date
Raphael Collet c21fed6ea4 [FIX] performance: use IrModel._get instead of search 2017-09-21 16:10:13 +02:00
qsm-odoo 0b5087011b [FIX] hr_attendance: use correct appswitcher background
See https://github.com/odoo/enterprise/commit/7d48e44a88cc54ddba0fa98e5ba914aaeb54c9b7
2017-09-21 16:05:31 +02:00
ppr-odoo d7b073d427 [FIX] base_setup,stock: Rename 'Multi-Companies' into 'Multi-Company'
As well as 'Inter-Companies' into 'Inter-Company'
2017-09-21 15:41:06 +02:00
qdp-odoo 09d3b269a3 [FIX] account: fixed sale/purchase journal traceback 2017-09-21 15:29:08 +02:00
qdp-odoo 9ded3765bb [FIX] account_voucher: default account should be payable/receivable 2017-09-21 14:40:34 +02:00
amoyaux a2ade50fd7 [FIX] stock: quantity done not invisible with show_operations
Quantity done should be readonly but not invisible when the user
uses the details operation view and work on directly on move lines
2017-09-21 14:02:47 +02:00
qdp-odoo 00d2dde537 [FIX] account: default journal base on company
In multi-company environments the default journal wasn't taking in consideration the user's company. PR . #19618
2017-09-21 13:51:08 +02:00
Hetashree Chauhan 83f4e72f04 [FIX] purchase: Import res_config_settings.py after res_company.py
Purpose
=======

Steps :
- Blank DB (without demo)
- Install inventory, Sales
- Create some products + update qty + activate serial number from setting and create some products (I tried this step and faced traceback)
- Now try to install Purchase app
It gives traceback..

Specification
=============

As the field po_lock is defined on the res_company and a related field is defined on the res_config_settings.py file, modify the import order.

change the position of res.company file, so that fields of po_lock will define first and then it will not generate field's error in res.config.settings file.
2017-09-21 13:33:04 +02:00
qdp-odoo 0267b0ac50 [FIX] account: generate accounts with group_id set 2017-09-21 11:45:19 +02:00
Géry Debongnie bd113d0709 [FIX] web: properly destroy field widgets in some cases
Before this commit, the web client did not properly destroy field
widgets when updating a one2many after an onchange.  This is rarely an
issue, because in general, there are no other field widgets besides the
row currently in edition.  However, if we specify explicitely a widget,
or if we use a custom widget, it may be a problem.
2017-09-21 10:55:09 +02:00
Aaron Bohy a8bc2a8bf8 [FIX] web: several minor issues with editable list
- correctly update the pager when a record is added or removed
- destroy the widgets of the removed row when the user clicks on
  'Cancel' when creating a new record
- ensure that the list always contains 4 rows (before this rev.,
  in list views with less than 4 records,   if the user created a
  new record, then clicked on 'Discard', there were only 3 rows
  left
- properly destroy field widgets when removed from the DOM

Note that the change of parent.parentID to parent.static is not a
bug fix, but it's better to use the key that indicates the type of
list element, instead of implying it from other attributes.
2017-09-21 10:55:09 +02:00
Pierre Masereel 332eb431c5 [FIX] mrp: don't show lines of serial with qty_done set
When you open the produce wizard, see all the move lines for a product
to consume with a serial number, we should only see the ones that have
not been already process.
2017-09-21 10:46:13 +02:00
Pierre Masereel d97b35f37a [FIX] mrp: check that a SN as not already been used
When you are processing a MO or WO, you can set two times the same serial
number for the same product.

To avoid this behavior, we created a onchange on the stock move line to
warn the user when he enter two times the same SN. We also create a
constraint on stock move line to avoid having two times same SN in a
picking.
2017-09-21 10:46:13 +02:00
Pierre Masereel 482407464a [FIX] stock: check that a SN as not already been used in picking
When you are processing a picking, you can set two times the same serial
number for the same product.

To avoid this behavior, we created a onchange on the stock move line to
warn the user when he enter two times the same SN. We also create a
constraint on stock move line to avoid having two times same SN in a
picking.
2017-09-21 10:46:13 +02:00
Pierre Masereel fa269824ad [FIX] mrp: label user error 2017-09-21 10:46:13 +02:00
amoyaux 993de2d354 [FIX] stock: move without initial demand/quantity
When processing picking containing moves without
quantity done and without initial demand. These moves
were moving automatically to a new backorder.

It was also possible to validate picking without
quantity done for all moves.

This commit raise an error if the user try to valiate
a picking with all moves without quantity done and without
initial demand. Or cancel all these moves if the picking
is validate with correct moves.
2017-09-21 10:35:49 +02:00
Lucas Perais (lpe) 3505ca73d2 [FIX] website: change link url google analytics doc 2017-09-21 10:16:09 +02:00
qdp-odoo 234cfcdc89 [FIX] account: fix type of journals in account.payment. 2017-09-21 10:12:38 +02:00
Jeremy Kersten 0b5a743641 [FIX] website_sale_pricelist: fix js loading
dom_ready is required to don't reject the js code
2017-09-21 10:11:15 +02:00
Jeremy Kersten e55399d8e8 [TYPO] website_slides: Odoo office move to number 6 2017-09-21 10:11:14 +02:00
Lucas Perais (lpe) 46d87b9d4e [FIX] website_sale: website price is not necessarily an INT
before this commit, when retrieving the price for a variant for the shop, a floor division was operated, giving out the wrong result.
Now, a standard division is operated
2017-09-21 09:26:39 +02:00
rar-odoo bbe5bd291b [FIX] Website_sale_comparison: fix frontend js (#19593)
js that interact with dom now need to explicitely wait for it to be ready
-> add dom_ready as required.
2017-09-20 17:44:19 +02:00
qsm-odoo 76405ba6d0 [FIX] web: restore hovering effects on folded kanban columns
There are two kind of hovering effects:

(1) When the user hovers the column with the mouse

It was broken with https://github.com/odoo/odoo/commit/f1370dfa0abac2b50315e47dccd0daf906336fc5
because the "o_kanban_header" class was renamed to
"o_kanban_header_title" and the effect still applied on the
"o_kanban_header" element.

(2) When the user is about to drop a kanban record

It was broken with https://github.com/odoo/odoo/commit/6e0234819e496d7deb352aea0d867c54104c6c20
because styling the "o_kanban_hover" class was removed by mistake.
2017-09-20 17:13:36 +02:00
qsm-odoo 93bf26abc1 [FIX] web, *: review kanban record sizes
* account, maintenance, mrp, payment, point_of_sale, sales_team

Previous system was:
- `flex: 1 1 300px;` on kanban records
- If a specific record needs a different size, add custom style to
  either change the `flex` rule or set a `min-width` for >=SM screens

Now:
- `flex: 1 1 auto;` and `width: 300px;` on kanban records
- If a specific record needs a different size, add custom style to
  change the `width` rule.

This allows some standardization of the way to customize the suited
width and also allow lesser LESS code (as the previous version required
either the use of the flex mixin or the use of a media query).

Note:
- Also remove useless app record rule
- Also fix MRP Work Centers record width

Note2:
This system should be improved for version 12.0.
2017-09-20 16:57:50 +02:00
Martin Trigaux 9d2e825340 [I18N] export saas-18 source terms
saas-18 will be the future version 11
2017-09-20 16:14:08 +02:00
Martin Trigaux 289b6046d6 [FIX] tools: py3k export translations
Previous code was converting the text to bytes which fails below

AttributeError: 'int' object has no attribute 'isalpha'
2017-09-20 16:13:37 +02:00
amoyaux 08316eb455 [FIX] stock: complete/push move without initial demand
It exists a different behavior when moves do not have an
initial demand. It will not set the initial demand to the quantity
processed once the move is done. It will also not propagate the
extra quantities to next moves.

This commit modify _create_extra_move method in order to
use the same behavior than other usecases. It will create
a move without quantity done and without initial demand
(which do not make sense) but this move will be merged in
the new one and will not be visible for the user.
2017-09-20 15:08:37 +02:00
Joren Van Onder 46cfc2e41d [IMP] stock: limit user actions on planned stock.picking form views
Don't allow immediate edition of quantity_done, marking as todo and
immediate validation.
2017-09-20 15:08:36 +02:00
Joren Van Onder 2e837d6951 [IMP] stock: confirmed moves without an initial demand are assigned
To allow users to easily process immediate transfers.
2017-09-20 15:08:35 +02:00
Joren Van Onder 5ae754754f [IMP] stock: display check availability only when a move can be checked 2017-09-20 15:08:34 +02:00
Joren Van Onder a2a361f7e0 [IMP] stock: ask confirmation when validating overprocessed moves 2017-09-20 15:08:34 +02:00
Joren Van Onder 54ad8297af [IMP] stock: rename test_immediate_validate_ to something more sensible
Introduced by forward-port in c5f680200c.
2017-09-20 15:08:33 +02:00
Joren Van Onder 2f959e8769 [FIX] stock: add ensure_one to action_toggle_is_locked 2017-09-20 15:08:32 +02:00
Joren Van Onder 340a3e03d1 [IMP] stock: remove force_assign buttons 2017-09-20 15:08:31 +02:00
Joren Van Onder d58fb4d38c [IMP] stock: reduce steps required to process a stock.picking
When pickings are created or modified they will be automatically
'Marked as todo'. Draft pickings can still be created through the
'Planned transfer' link on the stock.picking.type kanban card.
2017-09-20 15:08:31 +02:00
Joren Van Onder 6e931e4e3c [IMP] stock: simplify stock.picking states
Remove 'partially_available'. This particular state is now also
represented by the 'assigned' state.
2017-09-20 15:08:30 +02:00
qsm-odoo bada5a7300 [FIX] web: statusbar margins in in-dialog form views
Form views with a chatter in a dialog on a large screen are styled by
the side chatter feature. This is not a problem as it is made to be
automatically adapted whether a chatter is displayed or hidden, but
in-dialog only rules had to be adapted.
2017-09-20 15:03:56 +02:00
qsm-odoo 63425459b6 [FIX] web: better project kanban_status inactive color
- Use a lighter color so that the red and green ones are more visible
- Use the same color for the column progressbar's inactive state
2017-09-20 15:03:56 +02:00
qsm-odoo 9e051adbf7 [FIX] mail: properly style suggested partner checkboxes in chatter 2017-09-20 15:03:56 +02:00
qsm-odoo 7b965a9673 [FIX] mail, web: chat window and emojis
- Fix several contexts where the emoji popover was hidden by a webclient
  element (control panel / ...). To solve this bug, the design has been
  improved to not use popover but instead use custom design (better
  integrated with new chatter design)

- Chat window is now still usable when a modal is opened

- Simplify chatter LESS
2017-09-20 15:03:56 +02:00
qsm-odoo 26e079f246 [FIX] mail: make clicking on chat window's emoji button properly work
Before this commit, clicking on the button opened the emoji popover
then closed it immediately. This was because of a handler which said
that clicking on any part of the composer should focus the input
element. This is indeed required when the UI is blocked (thanks to
the `blockUI` function). Solution is to not force this focus when
clicking on any composer's button element.

To prevent breaking those two behaviors (blockUI focus and emoji), two
tests were implemented.
2017-09-20 15:03:56 +02:00
Laurent Smet 85a0399d4f [FIX] web/report: fix header/footer css style in pdf reports (#19579)
After the refactoring of the wkhtmltopdf engine, the headers/footers are managed in a very different way to be able to call wkhtmltopdf only once. The subst JS function must select the right header/footer corresponding to the current page company. However, a <div> was suppressed during the process and then, some external customization might be ignored (see github issue for more details).

-issue: https://github.com/odoo/odoo/issues/19544
2017-09-20 14:38:35 +02:00
Raphael Collet 69161ed69c [FIX] mail: performance, replace filter() by condition in domain 2017-09-20 13:30:56 +02:00
Raphael Collet 8ffe241bee [FIX] *: incorrect many2many commands
Those cases worked by chance until the former commit.
2017-09-20 13:30:56 +02:00
Raphael Collet 49f6a1b544 [FIX] fields: improve performance of many2many fields
An update by a list of commands is now guaranteed to have at most three SQL
queries to update the relation, whatever the number of commands and records.
2017-09-20 13:30:56 +02:00
Raphael Collet 87970ea344 [FIX] mail: add cached method to retrieve message subtypes
This saves queries to retrieve message subtypes for a given model.
2017-09-20 13:30:56 +02:00
Raphael Collet 38193456d4 [FIX] test_performance: log when number of queries is less than expected 2017-09-20 13:30:56 +02:00
qsm-odoo 09c35696a3 [FIX] *: dashboards automatic colors
* account, hr, hr_recruitment, maintenance, mrp, sales_team, stock

Adaptation of https://github.com/odoo/odoo/commit/a79d83e436e5e965d59663d4a06a0f8a62d8f694 for saas-18 new colors.

Also change back all color defaults to 0 instead of 1 (see
mentioned commit: they were changed from 0 to 1 as in saas-16
the color was applied to kanban headers which had to be gray
(the old color 1) by default).

Also add default violet color for 'Customer Invoices' and 'Vendor Bills'
dashboards.
2017-09-20 12:32:48 +02:00
qsm-odoo d7bc8877bd [FIX] account: allow to click on dashboard header's "done" buttons
A design commit thought that "done" buttons should not be able to be
clicked anymore and forced this with LESS code.
(see https://github.com/odoo/odoo/commit/38a1a452cfd59ad8e7f7359f43ee779e8a3f8329)
2017-09-20 12:32:48 +02:00
qsm-odoo c798f0f744 [FIX] web: style only one kanban hovered link at a time
Hovering a link in a kanban record was adding an hover effect on all the
links which were in the same <div/> parent.
2017-09-20 12:32:48 +02:00