Commit Graph
99161 Commits
Author SHA1 Message Date
Raphael Collet 4a60a3f942 [IMP] ir_model: improve form view of ir.model.fields 2015-09-03 14:31:00 +02:00
Raphael Collet 9558dc409b [ADD] ir_model: add compute and depends on custom fields 2015-09-03 14:31:00 +02:00
Raphael Collet 7812397d57 [IMP] ir_model: by default, related fields are readonly and not copied 2015-09-03 14:31:00 +02:00
Nicolas Lempereur a69af9c908 [FIX] addons: propagate context when get sequence
With 3e82c94d we use the timezone in the context to format date
sequences when formatting an ir.sequence.

This commit adds the other missing context when getting a sequence, so
these sequences are also dependant on the timezone.

closes #8351
opw-646487
2015-09-03 13:58:01 +02:00
Simon Lejeune e374844808 [REM] web_gantt 2015-09-03 13:35:31 +02:00
Jeremy Kersten 443447a2b1 [FIX] website: set oe_manipulators at top of top-bar
Without this, oe_manipulator could be under the bar and so impossible to move, duplicate, delete, ... the snippet
2015-09-03 13:18:52 +02:00
Nicolas Martinelli e4d14110ad [ADD] purchase: auto add partner to vendors
If a product has no vendor, the partner of the PO will be added as a
vendor for the product during the confirmation of the PO.
2015-09-03 13:15:16 +02:00
Nicolas Martinelli 3f48d2b6c4 [ADD] purchase: add the two-step validation process
Two-step validation process is set up at the level of the company.
2015-09-03 13:15:16 +02:00
Yannick Tivisse e87144b255 [IMP] project: improve tests to consider a task created in a project with and without stages 2015-09-03 13:11:19 +02:00
Yannick Tivisse a10ae1bfb8 [FIX] web_kanban: crash on project kanban loading if a task in in undefined stage
kanban_normal cannot be loaded on the js side because 'Undefined' is not a stage,
which was leading to an rpc call with null id
2015-09-03 13:11:19 +02:00
Yannick Tivisse e404528c15 [IMP] Project: No default stage 2015-09-03 13:11:19 +02:00
Xavier Morel ec2d1f9f1d [IMP] sale_mrp: remove stray print in a test
also modernificate code a bit using set literals and set
comprehensions.
2015-09-03 12:45:39 +02:00
Goffin Simon ea2745b866 [FIX] delivery: conversion rate according to the date
When using compute in model "res.currency", the date must be set in the
context to have the right conversion rate.

opw:647799
2015-09-03 11:35:24 +02:00
Arthur Maniet cdb30b507a [ADD] stock_barcode: field widget with barcodes scan + manual input
Barcodes are detected by catching keypresses. When a keypress is not
part of a barcode, it is 'released' by forging a keypress event.
For security reasons, a non-native keypress doesn't trigger the native
input mechanism. So in order to make both barcode-scanning and manual
keypresses work in a field, it is necessary to have a handler listen
to the 'false' keypresses and simulate the native input behaviour.
2015-09-03 11:23:38 +02:00
Arthur Maniet 27e237346d [IMP] barcodes: BarcodeEvents uses reserved barcodes prefixes
Export a list of barcodes prefixes used for software functionss
2015-09-03 11:11:56 +02:00
Raphael Collet dce836c3aa [FIX] project: move kanban_state outside of button box 2015-09-03 10:27:19 +02:00
Nicolas Lempereur c32ea33632 [FIX] web_editor, translate: xml translate encoding
lxml.HTMLParser detect the content encoding by itself if not specified.

in the issue leading to this fix, content in a mail with u'\xa4'
( ) was transformed intto u'\xc2\xa4' ( ) since HTMLParser
selected the wrong encoding (latin-1 instead of utf-8 for example).

this commit specify the known encoding and revert 3d00c210f which was
another attempt at this issue.
2015-09-03 10:21:20 +02:00
Cedric Snauwaert e6b7be9bab [FIX] account dashboard: small template mistake
link in dashboard should not look like a button + remove <br/> between link for better aesthetic purpose
2015-09-03 09:59:06 +02:00
Nicolas Martinelli ffa4027a4e [FIX] purchase: _get_name_price_quantity_date takes date string 2015-09-02 19:35:12 +02:00
Nicolas Martinelli 834721e708 [FIX] product: context in _select_seller
It should contain 'partner_id' instead of 'partner' as it was the case
previously
2015-09-02 19:35:12 +02:00
Nicolas Martinelli bc1663ff53 [FIX] purchase: remove double validation from config 2015-09-02 19:35:12 +02:00
Nicolas Lempereur ea07b7dc2b [FIX] website: don't escape if embedded html field
We should escape arch ir.ui.view arch content, but we should not escape
embedded html field content.
2015-09-02 18:36:19 +02:00
Josse Colpaert 56a6483477 [FIX] stock: inventory filters check used the wrong groups 2015-09-02 18:21:31 +02:00
Cedric Snauwaert 9e2077480c [FIX] account: change the default CTA in dashboard to show reconciliation action in priority 2015-09-02 16:27:38 +02:00
pvy 40c9471ede [FIX] l10n_in: added tags that were missing on subtaxes and corrected the amount of some taxes 2015-09-02 16:21:47 +02:00
Denis Ledoux c3ee6e6c1d [FIX] website_mail: mass mailing with fontawesome on GMail
- GMail caches the images contained in emails
 - It seems to take the opportunity to replace `%20` by `+` in the images URLs
 - Werkzeug doesn't seem to handle '+' in URL as spaces (at least not as a %20)
   (See https://github.com/mitsuhiko/werkzeug/pull/756)

When inserting a fontawesome character/image,
there are spaces in the CSS color,
e.g. `rgb(255, 255, 255)`.
And window.encodeURI, doing its job, encode this as
`rgb(255,%20255,%20255)`
This, in the URL, is supported by Werkzeug.
However, Google changes this to
`rgb(255,+255,+255)`
which is not supported by Werkzeug.

The fontawesome images were therefore not available in
mass mailing sent to GMail addresses.

This revision removes the spaces from the CSS color.
This is not the best fix, but
 - We cannot really ask Google to not change %20 by +
 - We cannot afford to wait the support of the '+' as spaces in Werkzeug

opw-648456
2015-09-02 16:16:32 +02:00
Xavier Morel 070aaa0105 [FIX] hr_payroll: replace non-ascii help string by unicode literal
Would trigger a UnicodeWarning when looking to update ir.model.fields
in _field_create (final loop): the unicode value from the database
would be compared with the str value from the model, the str would
fail to decode triggering the warning and assuming a False test,
probably also triggering an unnecessary database UPDATE.
2015-09-02 15:20:06 +02:00
Cédric Snauwaert fb1c52778d [ADD] account_tax_cash_basis module 2015-09-02 14:53:38 +02:00
Christophe Simonis 87ab8eadb1 [FIX] *: correct .po and .pot files 2015-09-02 14:46:11 +02:00
Raphael Collet ed95043d7e [IMP] *: add archive/unarchive feature on some models
Add the statbutton, search filter, and enable the kanban column archiving on
models `res.partner`, `crm.lead`, `event.event`, `hr.employee`, `hr.applicant`,
`mail.mass_mailing`, `mail.mass_mailing.list`, `product.product`,
`project.project`, `project.task`, `project.issue`.
2015-09-02 14:29:42 +02:00
Raphael Collet 8af431d906 [ADD] web, web_kanban: add archive/unarchive
In kanban views, add archive/unarchive for all records in a column.
In list views, add archive/unarchive in sidebar.
2015-09-02 14:29:42 +02:00
Raphael Collet ec181361f0 [IMP] project, project_issue: discard project templates 2015-09-02 14:29:42 +02:00
Yannick Vaucher c9924feb17 [FIX] sale: Remove useless states attributes on user_id
This one has been settled there for ages
but gives the wrong impression it is only editable in draft and sent state.

Nevertheless readonly=True is not define.
Thus this confusing dict is useless.

Closes #3734
2015-09-02 14:26:55 +02:00
Matthieu Dietrich 1cfe1910db [FIX] account: Remove superfluous bracket for analytic account domain
With the bracket in place,
the domain does not consider the last part,
"('state','not in',('close','cancelled'))".

Closes #3714
2015-09-02 14:10:19 +02:00
qsm-odoo 86f62ee559 [FIX] web_calendar: Calendar LESS layout (bootstrap)
Calendar row was not in a container and had so alignement problems
since the reintroduction of bootstrap grid gutter.
2015-09-02 13:22:36 +02:00
qsm-odoo bc11426ab0 [IMP/FIX] *: Kanban dashboard LESS layout
* Fix alignement/layout problems since the reintroduction of
bootstrap grid gutter.
* Fix mobile layout problems.
* Fix various Firefox problems.
* Use odoo variables and simplify LESS.
* Use input type="text" instead of input without type.
2015-09-02 13:22:13 +02:00
qsm-odoo 4ea032e055 [IMP] web: Backport of useful odoo variables 2015-09-02 12:32:06 +02:00
Goffin Simon c3b847daa8 [FIX] delivery: total passed to get_price_from_picking
The total used to check which delivery.grid.line to apply must be in
the currency of the company because the delivery.grid.line records with
variable == Price are expressed in the currency of the company.

opw:647799
2015-09-02 12:17:01 +02:00
matt454357 f243a01795 [FIX] hr_timesheet_sheet: Attendances & timesheets timezone
When creating timesheet,
default from-date and to-date are adjusted for user timezone.
Fixes #3627

User timezone considered when assigning attendance records to timesheet
Fixes #3628

Closes #3632
2015-09-02 11:48:55 +02:00
Damien Bouvy 1b962f9692 [IMP] analytic: add "Analytic Entries" menuitem in accounting 2015-09-02 11:14:29 +02:00
Damien Bouvy 585bda9206 [IMP] project_timesheet: display a link to timesheets in the kanban "more" pullup 2015-09-02 11:14:29 +02:00
Damien Bouvy d4afe59a8c [IMP] sale_service, project: when confirming a so with a "task" product with no project assigned, create the project (and the analytic account) of the so 2015-09-02 11:14:29 +02:00
Damien Bouvy 54b7724a52 [IMP] sale: when encoding analytic lines, do not enforce uom category equality; convert when possible and if not simply encode the entered amount 2015-09-02 11:14:28 +02:00
Yannick Tivisse 1388db411b Revert "[IMP] crm: Your Pipeline, open the list view first"
This reverts commit 8c5f512ec6.
2015-09-02 10:18:17 +02:00
Yannick Tivisse 6f1e8abbc7 [IMP] crm: Added stages by default for a new crm.team
Now we'll have 'New', 'Qualified', 'Proposition' and 'Won' which is folded
2015-09-02 10:18:17 +02:00
Nicolas Martinelli 26ae933544 [MERGE] New Purchase V9 2015-09-02 10:03:32 +02:00
Nicolas Martinelli c64cd05cd1 [IMP] warning: adaptation due to the new Purchase module
Reason: complete rewrite of the Purchase module.

Responsible: fp, nim
2015-09-02 09:37:04 +02:00
Nicolas Martinelli 5fa1ccdcce [IMP] stock_dropshipping: adaptation due to the new Purchase module
Major changes:
- Adaptation of tests

Reason: complete rewrite of the Purchase module.

Responsible: fp, nim
2015-09-02 08:26:03 +02:00
Nicolas Martinelli 280f911350 [IMP] stock_calendar: adaptation due to the new Purchase module
Major changes:
- Rewrite some methods for new api

Reason: complete rewrite of the Purchase module.

Responsible: fp, nim
2015-09-02 08:26:03 +02:00
Nicolas Martinelli a206a693c9 [IMP] stock: minor improvements
Responsible: fp
2015-09-02 08:26:03 +02:00