Commit Graph
112661 Commits
Author SHA1 Message Date
Olivier Dony bb0404ea30 [IMP] website_mail: simplify helpers for external post
After removing the `sha_in` params a while ago, we get rid of
the deprecated `token_field` option.

- Make `token_field` a model attribute, so that each model can easily
  define the token field that should be used, and it does not need
  to be passed around all the time anymore.

- Rename `_special_access_object()` to `_has_token_access()`, much more
  readable since it returns a bool

- Do not forward the `attachment_ids` keyword arg to message_post,
  as it sometimes contains unrelated IDs (the helper is not meant
  to post attachments anyway)

- Update callers accordingly
2017-09-21 23:42:45 +02:00
Christophe Simonis 5c51a0ad4d [MERGE] forward port branch saas-17 up to bf4ccb21f6 2017-09-21 18:14:55 +02:00
Christophe Simonis bf4ccb21f6 [MERGE] forward port branch saas-16 up to 88395bdb8e 2017-09-21 17:18:49 +02:00
kujiu (@havelock.kujiu.org) 1fbaa11c6f Revert "Add attributes and elements on XML views' checks to avoid errors with Studio (renamed_field and studio_groups) (#19623)"
This reverts commit fc5d6e1ab9.
2017-09-21 16:40:16 +02:00
kujiu fc5d6e1ab9 Add attributes and elements on XML views' checks to avoid errors with Studio (renamed_field and studio_groups) (#19623) 2017-09-21 16:21:53 +02:00
Raphael Collet c6b184bb23 [FIX] fields: optimize many2many command (6, 0, ids) on new records
The command does not need to remove existing relations, as there is no relation
yet on new records.  This saves one query per many2many field with that command
in a `create`.
2017-09-21 16:10:13 +02:00
Raphael Collet 59a8234fbc [FIX] mail performance: avoid useless queries
Avoid making queries that are known to return empty recordsets, and do not
format messages to be notified on no channel.
2017-09-21 16:10:13 +02:00
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
Christophe Simonis 88395bdb8e [MERGE] forward port branch saas-15 up to 3ad3b34df6 2017-09-21 16:00:27 +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
Christophe Simonis 3ad3b34df6 [MERGE] forward port branch saas-14 up to 537d1ec0d2 2017-09-21 15:08:34 +02:00
qsm-odoo b51b0d66c2 [FIX] web: open domain selector's datepicker at the right position
Before this commit, and since the combination of new views + datepicker
library update, the datepicker opened at the top left of the window
when using it in a domain selector. It also could not be used at all.

This was because the current scenario occured:
1) Click on the datepicker
2) The datepicker triggers that it has changed on opening
3) The whole domain selector is rerendered
4) The datepicker computes where it should open... on basis of the
   old destroyed domain selector

As the main cause of the problem here was the (2), this commit changes
the datepicker odoo widget to only notifies that it has changed when it
has really changed.
2017-09-21 14:51:12 +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
Christophe Simonis 537d1ec0d2 [MERGE] forward port branch 10.0 up to e245135421 2017-09-21 14:01:41 +02:00
Christophe Simonis e245135421 [MERGE] forward port branch 9.0 up to d53a201987 2017-09-21 13:55:52 +02:00
Christophe Simonis d53a201987 [MERGE] forward port branch saas-6 up to 43a47dbc93 2017-09-21 13:51:19 +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
axj-odoo 6d373b109d [FIX] report_intrastat: removed create button in kanban view
PR #19292
2017-09-21 13:47:57 +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
Christophe Simonis 43a47dbc93 [MERGE] forward port branch 8.0 up to 35441cfd62 2017-09-21 13:25:42 +02:00
Haresh Shyara 5b216c03c1 [FIX] account: wrong default journal on vendor credit note 2017-09-21 12:01:51 +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
Aaron Bohy c3a32fc98c [FIX] web: keep settings form view in edit mode
when coming back using the breadcrumbs.

The settings form view should always be displayed in 'edit' mode.
Before this rev., it was re-rendered in 'readonly' when the user
clicked on a link in a setting view (opening another view stacked
in the breadcrumbs), and then came back to the settings view using
the breadcrumbs. For instance, go to 'General Settings', click on
'Activity Types', come back.
2017-09-21 08:12:15 +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
Aaron Bohy 130c47bc0a [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-20 17:07:04 +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
Christophe Simonis e0ad21dbdd [FIX] auth_ldap: P3 compatibility 2017-09-20 16:25:41 +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
Goffin Simon 776e77b67c [FIX] account, point_of_sale, purchase, sale, website_sale: correctly set included tax in multi-company
A product can have multiple included taxes (i.e. one by company).
When computing the product price with function _fix_tax_included_price,
only the taxes of the company should be considered. Otherwise it could remove
all the included taxes of all companies.

ps: When no company is set on the SO, all the taxes visible from the company of the user
are set for the product of the line. Same behavior as in _compute_tax_id.

Closes #19566

opw:770464
2017-09-20 15:53:14 +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