Commit Graph
103913 Commits
Author SHA1 Message Date
César Castillo 36ef20fe52 [FIX] doc: duplicated text in themes.rst
close #11502
2016-03-29 11:32:00 +02:00
Manuel Vázquez Acosta ad979b71a2 [FIX] account: account balances computation
Commits 7b7f3fa and d6c88b8 filter out special periods from the account
balances. However, this filtering is not necessary anymore for a closed
fiscal year. The result is that the opening balance becomes wrong as
soon as the previous fiscal year is closed.

This commit fix this by computing the balance over all fiscal years.

Closes #11515
2016-03-29 11:17:58 +02:00
Xavier Morel bc4d10f48d [IMP] groupby domains & unformated dates
* ensure groupby domains are normalised, that's significantly more
  convenient for subsequent manipulations and combinations (e.g. OR-ing
  domains of multiple groups)
* split off "raw" groupby which provides ISO-8601 date and datetime
  ranges[0] (half-open) as values for grouped date/datetime fields

  for instance when grouping weekwise on a date field, the group
  including May 11th, 1930 would have the following value for
  the (grouped) date field: `("1930-05-05/1930-05-12", "W19 1930")`[1]

  this means callers can access the programmatic date range value
* fix website_mail_channel and website_blog to *not* go and randomly dig
  into the domains assuming a bunch of unspecified stuff about its
  formatting (such as it not being normalized)

[0] https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
[1] actual week number turns out to be locale-dependent...
2016-03-29 10:34:25 +02:00
Xavier Morel 2fea143b06 [FIX] stock: count of reordering rules
* don't dig into context for data we already have
* don't use mutable value as duplicated default
* try to make the method work correctly in case it's ever called with
  multiple product template ids
2016-03-29 10:34:25 +02:00
Odoo Translation Bot 8d9b309f9a [I18N] Update translation terms from Transifex 2016-03-27 03:14:28 +02:00
Odoo Translation Bot f02b8a76df [I18N] Update translation terms from Transifex 2016-03-27 00:32:16 +01:00
pvy 825c02ff58 [FIX] l10n_nl: 2 taxes were forgotten during the taxes tags overhaul 2016-03-25 17:08:32 +01:00
Goffin Simon 2225a1992d [FIX] sale: _get_advance_payment_method
When there is at least one invoice already linked to the SO, the
default advance payment method must be 'Invoiceable lines (deduct down payments)'

opw:672911
2016-03-25 16:54:40 +01:00
Peter Hahn c2abdbbc37 [IMP] Make many2many widgets in listview usable for one2many
Existings many2many widgets in ListView can be used also for one2many if
the supplementary data is provided for the column.

closes #11282
2016-03-25 16:54:32 +01:00
sha-odoo f23daad44b [IMP] product: Add a barcode-search in all products kanban/list views 2016-03-25 16:49:43 +01:00
Denis Ledoux 949da8affa [FIX] crm: re-apply 71b0a4c
It was somehow lost with
e48c50bb10
and
30a7ef804a

opw-672974
2016-03-25 16:49:10 +01:00
dut-odoo dd80649541 [FIX] web: fix unbound variable utils in view search_view.js 2016-03-25 16:25:59 +01:00
Jigar Patel 5228928877 [IMP] hr: Display color tags on employee kanban view
Also change hr demo data to have some colored tags initially
2016-03-25 15:31:07 +01:00
Martin Trigaux eeffda9689 [I18N] website_quote: missing terms in .pot file 2016-03-25 14:45:12 +01:00
Raphael Collet 2483327236 [FIX] res_lang: do not ormcache a method that returns a record
Use the `ormcache` wrapper on a method that returns a record id instead.
2016-03-25 14:44:34 +01:00
Xavier Morel fc40772926 [FIX] scaffolding: packaging
Packaging doesn't include non-imported python file because
redhat. Oblivious, revision 8e81abfeb5
renamed .py.template files to .py thus breaking scaffolding from
packaged odoo.

Revert that specific change.

Fix #11050
2016-03-25 14:42:32 +01:00
Dhaval Panchal e1eaa29994 [IMP] barcode: On barcode nomenclatures, add a handle widget for rules ordering. 2016-03-25 13:49:42 +01:00
Xavier Morel 4a31f85c5a [FIX] base_import: CSV import error from windows
Missing bit from #10374: because the _read_xls function is a generator
it is *entirely* lazy and Python doesn't execute *any* code when it's
initially called, which means the file is actually (tentatively) parsed
when the first line is requested which happens outside of
_read_file (and thus of the fallback mechanism implemented by #10374).

Fix by splitting _read_xls between the opening of the workbook (eager)
and the actual iteration (which remains lazy).
2016-03-25 13:13:23 +01:00
Thibault Delavallée 3b26d1e2fd [FIX] mail: default reply to with multiple alias
When having multiple aliases matching a record, take the first one coming
in the order instead of the last one. This way the defined order is effectively
taken into account.
2016-03-25 12:40:46 +01:00
Thibault Delavallée 554f70f218 [FIX] crm, hr_recruitment, project_issue: responsible
When using the mailgateway, the responsible of the newly created lead / applicant /
issue is explicitely set to False since the original mailgateway commit in 2010.

However this conflicts with some custom behavior that tries to set the responsible
on the same objects. Notably in recruitment the responsible is set to be the
recruitment responsible set on the job, if any.

In this commit we replace the explicit set of user_id=False to using a
default_user_id=False in the context. This way the admin or mailgateway user
will not be responsible of every new records. And this enables custom behavior
to find a responsible.
2016-03-25 12:40:34 +01:00
Nicolas Lempereur 918e1b06bc [FIX] website_blog: .cover_narrow removed when cover removed
opw-668713
2016-03-25 12:21:33 +01:00
David Monjoie 3ce72701f1 [IMP] sale: avoid replace when not in sale_layout group
Last recommendation in order to avoid breaking invoice
customizations for people who doesn't use sale_layout.
2016-03-25 11:54:05 +01:00
David Monjoie 3bb9b09500 [MERGE] sale,website_quote: merged sale_layout feature as a new group
Also applied sale_layout feature to website_quote.
2016-03-25 11:46:12 +01:00
Nicolas Lempereur 85eda0c55f [FIX] web_editor: two editor and image bar buttons
Some image functionalities of the inline summernote would only take the
first of multiple editor into account when selecting the targeted image
of an image button action (image size, image padding, ...).

This commit select the appropriate editor given the current editable.

closes #11474
opw-668861
2016-03-25 11:39:57 +01:00
David Monjoie f280bfe8a1 [IMP] website_quote: use new pagebreak mechanism 2016-03-25 11:34:26 +01:00
David Monjoie ffc5b1058a [IMP] sale: improved pagebreak mechanism 2016-03-25 11:34:26 +01:00
Julien Louette 293c1c06e6 [IMP] website_quote: adding layout categories to website quotations 2016-03-25 11:34:26 +01:00
Julien Louette b391c8d494 [REM] sale_layout: removed 2016-03-25 11:34:25 +01:00
David Monjoie 27fd3ece28 [IMP] sale: removed sale_layout_category separator 2016-03-25 11:34:25 +01:00
Julien Louette a6b240b6bc [ADD] sale: merged sale_layout into sale 2016-03-25 11:34:25 +01:00
Nicolas Martinelli 62792a8ff6 [FIX] purchase: purchase count
After commit cb01be23, the states have changed.

opw-671989
2016-03-25 10:43:33 +01:00
Srushti Patel 91e8de0b05 [ADD] website_quote: Allow reordering of suggested products on quotations
This commit adds a sequence field on suggested products, allowing to arrange the order in which the suggested products will appear on the quotation
2016-03-25 10:26:17 +01:00
Goffin Simon cb435481c0 [FIX] account: _get_counterpart_move_line_vals
When the move_id was not set in the invoice, the field number
is False and making False + a string raised a type Error.
2016-03-25 09:28:33 +01:00
Martin Trigaux 40a299c580 [FIX] base: mildly privileged user accessing partner form
A user in base.group_erp_manager (Access Rights) but NOT in base.group_system
(Settings), will try to fetch the list of groups to generate selection fields
to represent groups selection.

As the method `_is_admin` only verifies the user belongs to group_erp_manager
and the model ir.module.category requires group_system for read access rights,
`fields_get` method tries to fetch the groups and fails with a security warning.

The user fields are fetched when a res.partner form is loaded as the field
user_ids (one2many) is present in the form view of partner in invisible.

opw-672435
2016-03-24 18:15:32 +01:00
Denis Ledoux e9bcaad09e [FIX] website: partial revert of 6207644
Before this revision, it was possible to use the
`/website/image` controller using kwargs only
e.g.
`/website/image?field=datas&model=ir.attachment&id=718207`

After, it's no longer possible.

It was assumed `/website/image` without any argument
in the route itself (`<xmlid>`, `<field>`, ...)
could simply never be called,
but this is not the case.

We therefore restore it by retro-compability purposes.
2016-03-24 18:05:31 +01:00
Christophe Simonis 7826b35ce5 [FIX] sale_stock: use correct product in test
The product has been renamed by e03943a8df
2016-03-24 17:59:28 +01:00
Nicolas Lempereur a23e850f63 [FIX] website_blog: narrow_cover and overriding header
The narrow cover option new in 9.0 has no meaning if the content can
overflow it (it would overflow the cover and hide the blog content).

opw-668713
2016-03-24 17:29:57 +01:00
Christophe Simonis da1fafff32 [FIX] models.py: correct code indent
Error introduced by kdiff3 during previous forward-port.
2016-03-24 17:11:55 +01:00
Christophe Simonis ddb0fb2739 [MERGE] forward port of branch saas-9 up to 59d3f63 2016-03-24 16:53:45 +01:00
Olivier Dony 8ef8bfdc7d [MERGE] Forward-port saas-7 up to 0221ac7745 2016-03-24 16:40:48 +01:00
Olivier Dony 0221ac7745 [MERGE] Forward-port 9.0 up to 5ab43773cb 2016-03-24 16:39:17 +01:00
Christophe Matthieu 5ab43773cb [FIX] ir.qweb: can't edit t-field content if modified by inherit xpath 2016-03-24 16:20:28 +01:00
Joren Van Onder 5fe5618b7e [FIX] point_of_sale: make invoices use the fiscal position on pos.order
We have to ensure that the invoices generated through the POS always
reuse whatever fiscal position is set on the pos.order. Both in the
front- and backend a user can change the fiscal position to be different
from what is set on the customer of the order.

opw-668155
2016-03-24 16:12:13 +01:00
Christophe Simonis 59d3f63c58 [MERGE] forward port of branch saas-7 up to 9e4157b 2016-03-24 15:12:00 +01:00
Christophe Simonis 9e4157b648 [MERGE] forward port of branch 9.0 up to a2c5fe4 2016-03-24 15:10:36 +01:00
Christophe Simonis 21337b43a8 [MERGE] forward port of branch 8.0 up to d519dac 2016-03-24 15:03:55 +01:00
Christophe Simonis d519daca1d [MERGE] forward port of branch 7.0 up to f1b9b30 2016-03-24 15:02:45 +01:00
Damien Bouvy a2c5fe4a64 [FIX] website_portal_sale: ACL are too wide for employees
In revision 15b8f35, we decided to 'let ACL and ir_rules
do their job', which is an excellent idea for portal
users but a catastrophe for employee users (since, with
ACLs and rules, they have access to an giganormous amount
of SO, invoices, etc.), which made the server timeout for
big databases.

This commits reintroduces a limitation of the search that
matches ir_rules for portal users but which should limit
the number of elements visible to employees.
2016-03-24 14:34:23 +01:00
Denis Ledoux 5e84021cbb [FIX] product: fixed price decimal priecision in pricelist
The fixed price decimal precision must use the same precision
than the other price field referencing a product price,
as this field is expected to contain a product price.

opw-672877
2016-03-24 14:31:40 +01:00
Tanguy Charlier 1ae7f735c5 [FIX] web_kanban: float_time widget did not work
* This is a forward-port of 4c1c1ec4d4
2016-03-24 13:47:37 +01:00