Commit Graph
98626 Commits
Author SHA1 Message Date
Richard Mathot fb39656bb6 [FIX] delivery: hide carriers search_more 2015-09-28 17:25:42 +02:00
Martin Trigaux 3498f2287a [IMP] account: better label 2015-09-28 17:24:29 +02:00
Martin Trigaux 70c93bf6d2 [FIX] OpenERP -> Odoo
In description source module
2015-09-28 17:21:26 +02:00
Raphael Collet 67ff58ade0 [REM] base/ir_ui_menu: remove unused field needaction_enabled 2015-09-28 17:19:06 +02:00
Josse Colpaert 7f9e6993a7 [IMP] sale_stock: Better sale_id implementation 2015-09-28 16:10:06 +02:00
Martin Geubelle 5946623d3f [FIX] website, web_planner: shared help comportement in frontend/backend
Help has been moved to web_planner, but only in backend. The comportement needs to be defined in website also so it is now shared in frontend and backend (mixin in common)
2015-09-28 15:42:44 +02:00
Christophe Matthieu d459359e87 [IMP] web_editor: Convert font-awsome into picture before convert class into style to remove unnecessary style attributes 2015-09-28 15:23:35 +02:00
Christophe Matthieu bdf58adb46 [FIX] web_editor: send mail to outlook and keep image size
Office Outlook doesn't take into account the [style] attribute, and it
doesn't manage width/height in percent value.

This commit set width/heigth attribute in pixels and also always set the
width/height in style attribute (keeping them in the original unit and
setting them to auto if not present).
2015-09-28 15:23:35 +02:00
Christophe Matthieu 6ebcc06152 [FIX] web_editor: remove 'lang' from the context to save master website xml 2015-09-28 15:23:35 +02:00
Christophe Matthieu 8c9cf9eb38 [FIX] web_editor: can upload a product image with the editor and save it (without 'out of range error' because new web controller /web/image/). 2015-09-28 15:23:35 +02:00
Christophe Matthieu 9e428ae849 [FIX] web_editor: media trigger content_changed when change the media 2015-09-28 15:23:35 +02:00
Raphael Collet f9679d80c7 [FIX] expression: partial implementation for binary fields stored in attachments
Implement conditions `('image', '=', False)` and `('image', '!=', False)`.
2015-09-28 15:19:47 +02:00
Raphael Collet 3f374d54f8 [IMP] models: do not create a column for a binary field stored in attachments 2015-09-28 15:19:47 +02:00
Raphael Collet 284d2914f1 [FIX] test_new_api: rewrite test_related to avoid changing binary fields
In the former test, a stored binary field was recomputed.  Changing its value
meant changing an attachment, and the latter was deleting a file in the
filestore, because that file was not used by another attachment.  The problem
was: that operation is rolled back from the database (test transactions are not
committed), but not from the filestore!
2015-09-28 15:19:47 +02:00
Raphael Collet 5a6e136172 [IMP] addons: adapt binary fields to store images in attachments 2015-09-28 15:19:47 +02:00
Raphael Collet 5232fb9e24 [IMP] base: adapt binary fields to store images in attachments 2015-09-28 15:19:47 +02:00
Raphael Collet 1bb61c970e [ADD] fields: add option to store binary fields into attachments
Such a field is declared as:

    image = fields.Binary("Image", attachment=True)

With this option, the value of a binary field F is stored in an attachment with
`res_field=F`.  When attachments are stored into the filestore, binary fields
are consequently stored in the filestore as well.  Note that the option does
not work on old-API function fields.

By default searching on `ir.attachment` filters out attachments for binary
fields: the condition `res_field=False` is added to the domain unless a
condition on field `id` or `res_field` is already present.  The client uses
`search_read` with a domain like `[('id', 'in', ids)]` for reading the data on
a form view.  In that case, we should not filter out attachments that store
binary fields.

Also, do not filter search results for the superuser.
2015-09-28 15:19:47 +02:00
Simon Lejeune 6327cda0a7 [FIX] ir_qweb: assets: write in ir.attachment outside of main transaction
If, in the same transaction, we need to render a template and read its
associated assets, they are unreachable because the writes in
ir.attachment are not yet commited. Workaround this issue by commiting
manually with new cursors.

This issue occurs when you want to print a pdf report for the first
time.
2015-09-28 14:35:26 +02:00
Simon Lejeune 2e16296099 [REF] base, report: preview internal/external qweb reports
Added two dummy reports to print an empty internal and external report
and added direct link to edit header/footers template in the form view
(in technical features) for convenience.

Also moved the 'preview rml report' under the rml configuration and
tried to make the company form as clean as possible but i think it's
failed.
2015-09-28 14:35:22 +02:00
Simon Lejeune 62cd475293 [REF] base_setup: remove rml configuration
Everything has already been moved (read: duplicated) under "company >
report configuration" and only appears in technical features, plus
displaying "Report Font" in "general settings" is really confusing, as
it is a deprecated field.
2015-09-28 14:32:31 +02:00
Simon Lejeune f26988cf7a [REF] report: use assets
Three assets: assets_common for shared assets (html/pdf), assets_editor
for editor styles and scripts, assets_pdf to tweak only the pdf output
2015-09-28 14:32:31 +02:00
Simon Lejeune 0e304bf77e [HACK] report: return html when a pdf is requested with a test cursor 2015-09-28 14:32:31 +02:00
Richard Mathot c02ff8aebd [FIX] sale_stock: reintroduce field sale_id on stock.picking
This field has been removed by e57ac16476
(let's break everything, it is more fun!). But some people needeed it...

This patch proposes thus a new-API version of the sale_id field.
2015-09-28 12:44:37 +02:00
Arthur Maniet 4530e5d61c [FIX] account: deleting a bank journal also deletes its bank account
Fixes #8739
2015-09-28 11:40:04 +02:00
Leonardo Rochael Almeida bf4b47c94d [IMP] JSONDecodeError > ValueError
JSONDecodeError extends ValueError, and is not available in the Python
Standard Library.
2015-09-28 10:53:53 +02:00
Leonardo Rochael Almeida 60af7cac02 [IMP] replace simplejson with stdlib json
The stdlib version of the json library is more recent than the 3.5.3
version we are pinning in `requirements.txt`

There is no reason to use it.

Closes #6940
2015-09-28 10:53:32 +02:00
Leonardo Rochael Almeida 06b3026bcd [IMP] unittest2 > unittest
The `unittest2` package is simply a backport of `unittest` from the
Standard Library of Python 2.7 to previous versions.

There is no reason to use it any longer.

Closes #6941
2015-09-28 10:37:27 +02:00
Martin Trigaux 864ac67905 [FIX] base: missing spaces in help message 2015-09-28 10:26:13 +02:00
Yannick Tivisse 0f16318f1e [IMP] mass_mailing: Add a setting to enable the popup snippet on the website
[FIX] mass_mailing: Display attachments in a proper way
[IMP] mass_mailing: set default value for popup_redirect_url, as it's sometimes required
2015-09-28 10:19:51 +02:00
Yannick Tivisse 432c01c076 [IMP] project: count the project tasks correctly
Also, we should be able to set a customer on a project, whatever the access rights,
for example, if we're managing services by using internal projects.
2015-09-28 10:19:51 +02:00
Yannick Tivisse c543e1be8b [IMP] web_settings_dashboard: Jump on Apps or Users view by clicking on the fa icon 2015-09-28 10:19:51 +02:00
Yannick Tivisse 0d0c4802c9 [REM] base: Remove Companies Structure tree view.
Modify test test_ir_values.py also, as the action was used in it.
2015-09-28 10:19:50 +02:00
Yannick Tivisse 833ebdcdb9 [IMP] base: lang in context when creating a contact for a partner 2015-09-28 09:59:50 +02:00
Joren Van Onder f0f45c8fa2 [FIX] point_of_sale: set taxes when creating pos_order from form view
When creating pos_orders from the form view, tax_ids on the
pos_order_lines were never set.

This was kind of fixed in 5327869356. But
in there it was in onchange_qty, because the way the fiscal position was
taken into account required it to be. Because we take the fiscal
position into account in a different way now we can assign the taxes in
onchange_product_id which makes a bit more sense.
2015-09-28 09:00:21 +02:00
Joren Van Onder 358e285fd8 [IMP] point_of_sale: fiscal position per pos_order
Allows a user to set multiple fiscal positions per pos_config. Orders
created on that config can then be assigned one of these fiscal
positions. In the POS this can be done through a button that will appear
above the numpad when fiscal positions are set on the pos_config.
2015-09-28 09:00:21 +02:00
Joren Van Onder a208007502 Revert "[IMP]point of sale: added fiscal_position_id field in pos config to set fiscal postion on each shop."
This reverts commit 5327869356.

Reverting this because we would rather want to be able to set a fiscal
position per pos_order, not per pos_config.
2015-09-28 09:00:21 +02:00
Odoo Translation Bot 3dec9e5804 [I18N] Update translation terms from Transifex 2015-09-27 03:07:16 +02:00
Fabien Pinckaers e49d0cd74d [IMP] Typo 2015-09-26 11:34:18 -07:00
Fabien Pinckaers adbfed5bbb [IMP] typo 2015-09-26 08:26:23 -07:00
qsm-odoo 5209bb255d [FIX] mrp: remove useless layout-breaking group
* Adding a new group in a group of fields is breaking enterprise layout
* Moreover the group was useless: useless colspan, unique field with
colspan>>>col in it, double access-right, ...
2015-09-25 18:10:55 +02:00
qsm-odoo 4e20e44303 [FIX] web_calendar: calendar height
Calendar height was again a problem since the introduction of the
bootstrap layout (the .row had not height 100% and thus the calendar
was not able to compute its height anymore).
2015-09-25 18:10:55 +02:00
qdp-odoo 9091c5efc0 [FIX] account: 'invoiced' button on partner now opens the tree view of customer invoices instead of the vendor one 2015-09-25 17:40:33 +02:00
Tanguy Charlier 93e9a4dce7 [IMP] res_partner : optimize name_get 2015-09-25 17:11:49 +02:00
qdp-odoo c078f71646 [FIX] account: allow supplier bills and refunds to share the same reference 2015-09-25 17:01:49 +02:00
Thibault Delavallée dec333d8a4 [FIX] hr_equipment: rename from it assets to equipments
This is a partial revert of 132dcc9786. Indeed the
hr_equipment module can be used to track any kind of equipment, not only
IT assets.
2015-09-25 16:30:12 +02:00
Thibault Delavallée a4869fce23 [FIX] hr_equipment: form view
Category is a classic m2o, not a statusbar. Moreover fixed category_id being twice
in the form, leading to one of them being impossible to use.
2015-09-25 16:28:38 +02:00
Christophe Matthieu 1acd86a45d [FIX] website_blog: display cover and cover options 2015-09-25 16:06:21 +02:00
Christophe Matthieu 4ba0232bf8 [FIX] web_editor: apply o_dirty class on change
Before: if a user blur a editable area without editing, the editor is removed and all bind are remove.
The 'content_changed' bind are removed and the 'o_dirty' class is never apply.
2015-09-25 16:06:21 +02:00
Christophe Matthieu 743f26a796 [FIX] web_editor: display editable area placeholder 2015-09-25 16:06:21 +02:00
Christophe Matthieu 7ffd1954e4 [FIX] im_livechat: display live chat button in one line 2015-09-25 16:06:21 +02:00