Commit Graph
99161 Commits
Author SHA1 Message Date
Christophe Simonis 7ea9691e2a [MERGE] forward port of branch 7.0 up to 1cfe191 2015-09-04 17:09:43 +02:00
Goffin Simon ba8ef420eb [FIX] account: Put Money In
When a account.bank.statement.line is created by clicking on "Put Money In"
(Accounting(Menu)>Bank and Cash(Menu)>Cash Registers(Menu)>More(Button)>"Put Money In"),
the account.bank.statement linked to this line must be updated(by passing in the write of
this model) to compute the real closing balance. This fix allow to have the same
behaviour than when a line is manually added (with "Add Item) in an account.bank.statement.

opw:647631
2015-09-04 16:52:40 +02:00
Adrien Peiffer (ACSONE) b429621676 [FIX] hr: Show address doesn't work without always_reload option
The address of the company is supposed to be displayed
in the form view. Without this, it's not the case.

Closes #8373
2015-09-04 16:25:42 +02:00
Adrien Peiffer (ACSONE) a519527c72 [FIX] hr: Set name field translatable
The job name can be displayed on the
website, which can be translated in several
language. It must therefore be translatable.

Closes #8373
2015-09-04 16:25:42 +02:00
Damien Bouvy e0157008f0 [FIX] sale_margin: test: call multi function with list of ids 2015-09-04 16:08:22 +02:00
Damien Bouvy 063ad00442 [FIX] sale: function changed name in refactoring is now applied everywhere
Somehow, we forgot to change some calls to action_button_confirm the to new action_confirm on the sale.order object
This applies to the following modules:
portal_sale
website_event
website_quote
website_sale
2015-09-04 16:08:22 +02:00
Damien Bouvy 526f27ddac [IMP] payment,payment_*,website_quote,website_sale: new rendering mechanism compatibility for payment providers
merge *ALL* the dicts

The form rendering used to receive a dict for partner information and a dict for tx information and to transmit another dict to the qweb template; now everything is done in a single dict
2015-09-04 16:08:22 +02:00
Deep Bundela f76c78d598 [IMP] payment_*: use standard fields to store tx information instead of adding specific fields for every.payment.provider 2015-09-04 16:08:22 +02:00
Damien Bouvy cf394d953c [IMP] website_portal_sale: payment from portal
- replace the portal_sale blue ribbon by a website_portal_sale link from the portal home
- remove all fields and methods related to banner in portal_sale
- remove "validation" field in payment_acquirer since it was only used here
2015-09-04 16:08:22 +02:00
Damien Bouvy f341ca62ab [IMP] website_payment: generic payment controller
- generate payment from the frontend using a simple form
- send a payment with a simple url
- define a default provider for payments
2015-09-04 16:08:22 +02:00
Damien Bouvy f8a98d977e [IMP] payment: usability improvements
- general:
    - add payment.method and payment.transaction menu in invoicing
- payment.acquirer:
    - add image field
    - add stat button to see payment.transaction objects
- payment.transaction:
    - language field is now a selection instead of a char
    - rename s2s_cb_eval field in callback_eval
    - form view cleaning
    - on_change_partner_id now fills in the partner details
    - add an ir.sequence for transaction name
    - add a many2one to payment.method
    - country defaults to the country of the company
- payment.method:
    - add a one2many to payment.transaction
    - add a stat button to see payment.transaction objects

[IMP] website_quote: rename s2s_cb_eval payment.transaction field to callback_eval

[IMP] payment_* (all providers): add image data and rename s2s_cb_eval field to callback_eval
2015-09-04 16:08:21 +02:00
Jérome Maes 4bdfa3b6ca [IMP] mail : invite follower wizard have 2 appearances
The wizard is the same object, but to add channel as follower, some fields was not required. Via the 'mail_invite_follower_channel_only' context key, the unrelevant fields are hidden.
2015-09-04 15:55:46 +02:00
Jérome Maes 7674536713 [IMP] mail : message_post_with_template helper
Create `message_post_with_template` helper method to factorize the simulation of a mail.compose.message wizard.

Also, fix the generated attachments of mail.compose.message wizard by returning ORM command (6, 0, ids) instead of the list of attachments ids. In order to standardize the behavior of the wizard, and since the ORM support command assignation in onchange api.v8, all the x2many fields of the wizard return a command.

FYI, that was tde's idea !
2015-09-04 15:55:38 +02:00
Darshan Kalola 5f8663cdb6 [FIX]point_of_sale: fix the issue wrong invoice total when create the invoice from pos order form 2015-09-04 15:16:35 +02:00
Nicolas Lempereur bc8e91b2aa [FIX] web_editor: update .o_form_field_empty when loaded 2015-09-04 14:45:14 +02:00
rsi-odoo c858722949 [FIX] l10n_de, l10n_de_skr03, l10n_de_skr04: add new tags for taxes in l10n_de
that are used in l10n_de_skr03 and l10n_de_skr04 modules for enterprise report
2015-09-04 13:34:03 +02:00
Denis Ledoux 50f915f3ac [FIX] models: oversight introduced in 1658bee8d4 2015-09-04 13:27:29 +02:00
Raphael Collet f5e5bbdae0 [FIX] expression: fix search on one2many field with inherited inverse field
Consider the following setting:
 - on model A, field F is computed, stored, and depends on field G
 - on model A, field one2many G to model B, with inverse field H
 - on model B, field many2one H is inherited (_inherits) from model C
 - on model C, field many2one H is stored

When adding records of model B, the field F must be recomputed.  In order to
determine which records to recompute, one searches model A with a domain like
[(G, 'in', ids)].  In expression.py, this is resolved with an SQL query like

    select H from B where id in {ids}

This query fails, since the field H is not stored in model B.  This happens in
general if H is not stored (it may be any computed field).  In that case, one
should instead browse records from B, and read field H through the ORM.

A test case has been added: it introduces a many2one field in a parent model,
and a one2many field using the inherited many2one on a child model.  The test
checks whether one can search on the one2many field.
2015-09-04 13:25:51 +02:00
Denis Ledoux 1658bee8d4 [FIX] models: copy_data call in new API.
Context are frozendict in the new API.
Therefore, they cannot be altered.
Any attempt to alter a frozendict
will lead to a crash.

Fixes #7362
2015-09-04 13:17:34 +02:00
Adrien Peiffer (ACSONE) 67b1be7f57 [IMP] website_hr_recruitment: recruitment form customization
Add the possibility to add some fields on website recruitment form

Closes #8049
2015-09-04 13:08:48 +02:00
Parth Gajjar c6a0af45ef [ADD] web_settings_dashboard: Settings Dashboard 2015-09-04 13:03:21 +02:00
Xavier Morel bd0c6a2b24 [FIX] website_crm and website_hr_recruitment tours
* run tours as public users since these screens should be accessible to
  and used by public users
* fix access rights issues in website_crm tour (default value of team_id
  when creating a crm.lead requiring read access on crm.team, which the
  public user does not have)
* remove duplicated crm.lead field (phone declared as char(size=64) then
  as char() a few lines below, removed first instance)
2015-09-04 12:59:27 +02:00
Xavier Morel 4d44b33ffe [IMP] crm & hr_recruitment tours: remove unnecessary tours
To check for result of a tour, would run a second tour performing
JSON-RPC calls to check if the first tour had correctly impacted the
database.

Tours are expensive, an empty tour takes ~6s without doing anything.

Replace second tour by regular ORM calls.
2015-09-04 12:59:27 +02:00
Denis Ledoux bd9cbdfc41 [FIX] web: sql constraint translation
The `check` decorator expects the context to be in the `kwargs`
or to be the last arguments of the method.

The `call_kw` route, which is decorated by the `check` decorator,
like every route,
expands its kwargs arguments.

Therefore, once in the `check` decorator,
the context is located in the `kwargs` key
of the kwargs.
(More simply, instead of
`kwargs.get('context', {})`
it's
`kwargs.get('kwargs', {}).get('context', {})`

As the context is not retrieved correctly,
the lang is not set correctly either,
and the sql constraints were not translated.

In 7.0, it worked, because there was a double
check, as the call_kw was called trough an rpc
(`dispatch_rpc`) call,
which was decorated by the `check` as well.

As a fix for 8.0, we apply the same logic,
we perform a double check, with an indirection.

The check decorator should probably be
refactored, but this cannot be done
in a stable release such as 8.0.

Closes #3634
2015-09-04 12:58:00 +02:00
Fabien Pinckaers 3658a894bc [IMP] modules description, no external link 2015-09-04 11:59:55 +02:00
Damien Bouvy c1fdede6aa [IMP] sale, sale_timsheet, sale_service: create analytic account when adding lines that need it even after SO validation 2015-09-04 11:54:37 +02:00
Nicolas Lempereur a134c88d00 [FIX] web_editor: do paste after removing selection 2015-09-04 11:54:05 +02:00
rsi-odoo 65585c7589 [FIX] l10n_uk: fix taxes and tags 2015-09-04 11:48:13 +02:00
Nicolas Lempereur 6672e45ba4 [FIX] website: better text node if delete and whitespace
If the node is a text node containing only empty space, we must replace
some of these space by an   so it can be selected.
2015-09-04 11:35:11 +02:00
Christophe Matthieu bd3fa786b0 [FIX] base: remove wrong line, template must keep all generated css files 2015-09-04 10:32:57 +02:00
Yannick Tivisse 152325e7b1 [IMP] Still placeholders, labels are back
fp request
2015-09-04 10:28:44 +02:00
Goffin Simon 64e1c28e35 [FIX] resource: get_working_intervals_of_day
To compute start and end date of a working interval this function replaced
hour in datetime object without taking into account the time zone. The start and end date
taking respectively from calendar_working_day.hour_from and calendar_working_day.hour_to are
in the time zone of the user and the datetime object are compared in UTC to avoid schedule's gap.
This is why the start and end must be converted in UTC after being replaced by these hours.
The tz_info must be removed from dates because it's forbidden to compare naive and aware dates.

opw:648349
2015-09-04 10:01:20 +02:00
qsm-odoo fcf9c0c4c9 [FIX] web_kanban: many2many_kanban, crash on record creation
When creating a record from a many2many_kanban, it did not contain all
the data the kanban view asked to render itself. This fix extends the
record data with undefined value for unknown (but asked) data.
2015-09-04 09:15:56 +02:00
qsm-odoo 4cb0a3584a [FIX/REF] hr_timesheet_sheet: broken WeeklyTimesheet FormWidget
The FormWidget "WeeklyTimesheet" was broken since the changes in the
account.analytic.line model and onchange API.

+ Some refactoring of the JS code
2015-09-04 09:15:56 +02:00
Michael Vercruyssen 1992043686 [FIX] pos_loyalty: Point cost help
To make the tooltip more clear and understandable for the user.

opw:645760
2015-09-04 09:11:41 +02:00
Christophe Matthieu 38d7e563aa [IMP] base: add public field on attachment 2015-09-03 19:31:01 +02:00
Christophe Matthieu 522fcacb21 [IMP] base: assets now directly use /web/content url 2015-09-03 19:31:00 +02:00
Christophe Matthieu 952b03e32d [IMP] web: boot.js display the log only on error or with the debug mode 2015-09-03 19:31:00 +02:00
Fabien Pinckaers 207f863d33 [IMP] oe_readlony --> oe_edit_only: once you click done/cancel, you have to set and change the next action. So, it has no sense in non edit mode 2015-09-03 18:16:51 +02:00
Simon Lejeune 30e07438b5 [FIX] web: view manager: sanitize type
by ignoring the views which types aren't in the view registry
2015-09-03 18:05:19 +02:00
Simon Lejeune 1962fe73ed [FIX] mrp, mrp_operations: reintroduce gantt views 2015-09-03 18:04:33 +02:00
Yannick Tivisse aa8f063c07 [FIX] ir_attachment: wrong assert in invalidate_bundle method
If the css file was splitted into several css.0,... files,
the assert was crashing.
Introduced by commit 37959d4
2015-09-03 17:24:20 +02:00
Aaron Bohy 2f125cd936 [FIX] mail: followers: correctly redirect to partner form view 2015-09-03 16:31:20 +02:00
Yannick Tivisse c42c752b04 [IMP] mail: Improve the mail.channel helper to be more convenient for end-users 2015-09-03 16:20:04 +02:00
Christophe Matthieu f962b0f628 [IMP] base: flexibility for attibutes inheritance ('add' and 'remove')
Can use 'add' or 'remove' on attribute tag.
'add' values are stripped and add to the current value preceded with a space.
'remove' may contain more than one value separate by spaces.
'separator' by default space the string are splited by spaces.

E.g.:
  <attribute name="thing">bob tata lolo</attribute>
  <attribute name="thing" add="bibi" remove="tata"/>
  thing contains: bob lolo bibi
2015-09-03 16:17:53 +02:00
Christophe Matthieu c239616164 [FIX] base: add missing is_company field in view_partner_simple_form
parent_id field in the view need is_company to compute invisible domain
2015-09-03 16:11:44 +02:00
Yannick Tivisse c9f497e046 [IMP] Replace labels by placeholders in some form titles
Impacted modules : event, gamification, hr, hr_equipment, hr_timesheet_sheet
                   mass_mailing, product, survey
2015-09-03 15:45:48 +02:00
Yannick Tivisse 020426ec68 [IMP] crm: Hide 'Done' and 'Cancel' button for Next Actions in edit mode
This was confusing because some users were clicking on it in edit mode, the selection
was disappearing and logged in the chatter, when the user didn't know what happened
2015-09-03 15:45:48 +02:00
pvy 5e00141582 [FIX] l10n_fr: some tags were wrong; needed to change them for the enterprise tax report for l10n_fr to work 2015-09-03 15:23:23 +02:00
Raphael Collet dafbdb276b [IMP] ir_model: add documentation for computed fields in form view 2015-09-03 15:07:04 +02:00