Commit Graph
107296 Commits
Author SHA1 Message Date
Nicolas Martinelli 939b2a00cf [IMP] sale_stock: store sale_id
We store the `sale_id` field to ease the creation of custom related
fields between picking and sales order.

opw-703429
2017-01-05 16:21:17 +01:00
Yannick Tivisse 16d973bee4 [IMP] website_slides: Add an arrow before the link on config view 2017-01-05 16:11:31 +01:00
Yannick Tivisse d5dcb4ea1e [IMP] sale: improve sales config settings 2017-01-05 14:01:06 +01:00
Christophe Simonis ca475e08eb [MERGE] forward port branch 10.0 up to 799e7f7740 2017-01-04 19:43:24 +01:00
Christophe Simonis 799e7f7740 [FIX] core: leftover openerp use from last forward-port 2017-01-04 19:24:16 +01:00
Christophe Simonis 2217b37130 [MERGE] forward port branch saas-11 up to 573293a06d 2017-01-04 19:15:31 +01:00
Fabien Pinckaers 3d04e44880 [ADD] report,base: custom report layouts
External layout for reports can be customized. 4 Layout are currently
proposed, selectable from General Settings.
An onboarding popup is shown to select the layout to used if none has
been shown nor a company logo chosen.

Joint works by Fabien Pinckaers, Antony Lesuisse and Christophe Simonis.
Design by Csaba Fazekas.
2017-01-04 18:51:17 +01:00
Fabien Pinckaers 1d6fa1b2fd [IMP] report: increase bottom margin of A4/US Letter paperformat 2017-01-04 18:51:01 +01:00
Fabien Pinckaers 66638b6838 [IMP] account: improve invoice report
* better wording
 * show at least 5 lines
2017-01-04 18:51:01 +01:00
Fabien Pinckaers 2d5ff1cb3d [IMP] stock: better position for the barcode in picking report 2017-01-04 18:51:00 +01:00
Jérome Maes b9f4a98774 [IMP] account,payment: account journal visibility
Remove field 'display_on_footer' to stop displaying
account journal on report documents.
As the field is removed but also used in payment to
generate default 'Thanks Message', put a new field
on account.journal in payment module, to keep the
role 'display_on_footer' had in payment.
2017-01-04 18:51:00 +01:00
Christophe Simonis 573293a06d [MERGE] forward port branch 9.0 up to cbff8629fa 2017-01-04 18:41:22 +01:00
Denis Vermylen 4f49da2da9 [IMP] report: add multi-company icon to settings 2017-01-04 17:30:58 +01:00
qdp-odoo 4a8b088773 [ADD] xml_utils: utilitary file for common xml operations 2017-01-04 16:30:50 +01:00
Pierre Masereel ae2838521c [FIX] stock: onchange picking type use wrong variable
The onchange code calls the variable 'partner' before assignement,
this error comes from the migration in rev: https://github.com/odoo/odoo/commit/d45996c9

We fix it by calling the right 'self.partner_id' variable
2017-01-04 16:09:46 +01:00
Denis Vermylen 8509db6485 [IMP] sale,crm: improve sales channel options tooltips 2017-01-04 16:01:10 +01:00
Denis Vermylen e8ff3bf2b2 [IMP] sale: rename field
quick quick before the feeze (saas-14)!

to_invoice_ unnecessarily added to the field names.
2017-01-04 16:01:10 +01:00
Denis Vermylen 79d73bc8a6 [FIX] sale*: remove wrong o_quotation_view_button classes 2017-01-04 16:01:09 +01:00
Denis Vermylen a95b4a5398 [FIX] website_sale: fix abandoned carts action
It was checking the partner ID wasn't the public user ID, instead of the public
user's partner ID.

Date domain was also no applied correctly.
The action has been transformed into python method to have
access to both flexible datetime constraints + references.
2017-01-04 16:01:09 +01:00
Denis Vermylen 93bb16367a [IMP] sales_team: give access to sales channels links to all 2017-01-04 16:01:09 +01:00
Denis Vermylen db35822c35 [IMP] pos_sale: add group by point of sale option
for dashboard graphs of sales channel of type point of sale.
2017-01-04 16:01:09 +01:00
Denis Vermylen 44fc5570fa [FIX] crm: correct menuitem name "my pipeline"
Menuitem took the name of the action as it didn't have one himself.
Action's name got changed but menuitem didn't need to change, so a name
was added for the menuitem.
2017-01-04 16:01:09 +01:00
Christophe Simonis cbff8629fa [IMP] core: allow declaration of end migration scripts
These `end` migration script will be executed when all modules have
been updated and models setup.

Also accelerate the search of migration scripts, speeding up registry
loading.
2017-01-04 15:49:02 +01:00
Denis Ledoux b201da493d [FIX] sale: Ukrainian translation instead of English (UK)
opw-702022
2017-01-04 14:31:55 +01:00
Nicolas Martinelli 56517a6ca9 [FIX] website_quote: invoice generation
To reproduce:
- Configure an external payment provider (e.g. Ingenico) with "Authorize
  & capture the amount, confirm the SO and auto-validate the invoice on
  acquirer confirmation"
- Create a quotation with a product linked to a subscription
- Send the link to the customer
- Click on "Accept & Pay", use the configured provider

The SO is confirmed, but the invoice is not generated.

By calling `action_confirm` in the callback of the transaction, we
validate the SO before `form_feedback` is called. Therefore, the method
`_confirm_so` will do nothing since the SO is not in state 'draft' or
'sent' anymore.

The solution is to manually call `_confirm_so`instead of
`action_confirm`. This is necessary to do it at this moment since we
might not go through `form_feedback` (e.g. if we pay thanks to wire
transfer).

opw-694273
2017-01-04 14:01:43 +01:00
Mansi Gandhi f5d53190d5 [IMP] pad: Change the pad settings info label
Because the configuration of pad is moved in general settings.
2017-01-04 13:50:11 +01:00
Yannick Tivisse 61e4290aea [IMP] account: Apply some fine tunings on new account settings form 2017-01-04 13:47:37 +01:00
Richard Mathot 5099856064 [FIX] calendar: display filter "[Me]" before others
The previous code actually returned the filter whose partner_id was the
lowest one (using '_.first' on an object that is not an array is quite clunky)
2017-01-04 12:09:57 +01:00
Richard Mathot 68bb843ccb [FIX] calendar: strengthen data model for contacts
It makes no sense to have twice the same calendar contact (=calendar
favorite filters) for one user.
2017-01-04 12:09:57 +01:00
Christophe Simonis 53beafef4e [IMP] base_address_city: mixins limited to a single model are not mixins 2017-01-04 12:04:29 +01:00
Yannick Tivisse 44e1f9ab96 [IMP] website,website_sale: Apply some fine tunings for the new website settings form 2017-01-04 12:03:44 +01:00
qdp-odoo aecf89c0e0 [FIX] base_address_city: fish crash in crm as city_id is defined only on res.partner object 2017-01-04 11:35:56 +01:00
Yannick Tivisse 1b316359cb [FIX] Sales: Apply small fine tunings on new settings form 2017-01-04 11:11:05 +01:00
qdp-odoo 9553970b40 [IMP] base_address_extended: improve inheritancy.
In case we extend this module by adding new field, the reset of street by an empty value will now reset all fields defined in street_fields.
2017-01-04 10:36:30 +01:00
Martin Geubelle 742cadaea8 [IMP] *: clean technical views (usability)
This closes the task #30074.
2017-01-04 10:22:48 +01:00
Martin Geubelle 7c7e825591 [IMP] base: allow to set an icon on ir.ui.menu
Before this commit, the field `web_icon_data` was a computed field
that depended on `web_icon` (which either specify a path to an image
or an icon).

We can now directly set the image binary value on the field.

The previous behaviour in which the binary is computed based on the
path is kept at the menu creation/edition, but the field is not `compute`
anymore.
2017-01-04 10:22:39 +01:00
qdp-odoo c7542a9f15 [FIX] base_address_city: _fields_view_get() now working properly 2017-01-04 09:55:49 +01:00
Goffin Simon da54837420 [FIX] hr_holidays: "Absent Today" filter for normal users
Normal users has the rights to use the "Absent Today" filter.

opw:703389
2017-01-04 09:50:11 +01:00
Thibault Delavallée 7039d70581 [MERGE] ir_actions, ir_cron, base_automation: refactor server, scheduled and automated actions
This commit simplifies server code execution by allowing only server
actions to execute code. Scheduled actions (ir.cron) and automated
actions (base.action.rule renamed to base.automation) now delegate all
code execution to their own server action, using inheritance. Those
models now contain only fields related to cron details for scheduled
actions, or triggers and filters for automated actions.

Server actions have been simplified. Main options stay the same but
complex options in creation / update have been removed. Those should
be done using code-based server actions. A server action type to add
followers has been added.

Views have been updated accordingly. Base form view of server action
is used as a base for scheduled and automated action. Editing a cron
or an automated action looks like editing a server action with some
added fields.

Thanks to @fpodoo for the original idea and preliminary work. Thanks to
@jpr-odoo for first developments and @tivisse for improving and cleaning
the work. Thanks to @jem-odoo and @rco-odoo for reviewing.
2017-01-03 19:36:29 +01:00
Thibault Delavallée 99959e0f07 [IMP] various: add module name in server action name
Purpose is to ease their ordering and understanding.
2017-01-03 19:11:08 +01:00
Yannick Tivisse aedde9a46c [REF] base_automation: cleaning and refactoring
Purpose of this commit is to continue to clean server actions, scheduled
actions and automated actions. Server actions hold code execution and
automated actions hold triggers and conditions.

This commit make automated action inherits from ir_actions_server.
Automated actions do not hold several server actions anymore. Instead
each new automated action creates its own server action holding the code
or actions to perform. Automated actions that held several server actions
should now simply use a server action of type multi. This commit also
features:

 * rename 'kind' field to trigger
 * remove 'act_user_id' as this should be done by the server action itself
   not the automated action. This can be achieved using a write or code
   server action;
 * remove 'act_followers' as this is replaced by a followers server action;
 * use a primary form view inherited from server action. This way automated
   actions use the same base form as server actions with triggers and
   conditions added;

Thanks to @fpodoo for the original idea and preliminary work. Thanks to
@jpr-odoo for first developments. Thanks to @jem-odoo and @rco-odoo
for reviewing.
2017-01-03 19:11:08 +01:00
Thibault Delavallée ab13808949 [REF] calendar: remove dependency to base automation
Indeed there is no need to have a dependency.
2017-01-03 19:11:08 +01:00
Thibault Delavallée b9c37e794b [IMP] hr_contract: remove dependency to base_automation
Purpose of this commit is to remove the link between Hr Contracts and
base automation. This has two consequences

 * automated actions used to compute contracts state are transformed
   into scheduled actions. Crons will do the job just as fine;
 * option to use employee contract in automated actions is removed
   and put in its own bridge module;

This allows to remove the dependency between the two addons.
2017-01-03 19:11:08 +01:00
Thibault Delavallée b03e810a88 [REM] crm: remove dependency to base_automation
CRM module depends on base automation only to have some automated
actions as demo data. To avoid having unnecessary dependencies
automated action demo data have been removed. This allows to remove
the dependency between CRM and base automation.
2017-01-03 19:11:07 +01:00
Yannick Tivisse 319a939339 [MOV] base_action_rule: rename and move base_action_rule to base_automation
First step towards cleaning and improving automated actions is to
correctly name things. base_action_rule module is therefore renamed
to base_automation. Model is also renamed to base.automation.
2017-01-03 19:11:07 +01:00
Thibault Delavallée 1c79c5ee30 [REF] ir_cron: make scheduled actions inherits from server actions
The purpose of this commit is to handle code execution only in server
action and delegate schedule management to ir_cron model.

ir.cron model now inherits from ir.actions.server. Fields model, function
and args are removed as well as the logic to handle them. There is no
more code manipulation and evaluation in ir_cron, only a call to the run
method of ir.actions.server.

Cron form view use server action form view as primary view. This way
automated actions use the same base form as server actions with
cron details added.

Thanks to @fpodoo for the original idea and preliminary work. Thanks to
@jpr-odoo for first developments. Thanks to @jem-odoo for reviewing.
2017-01-03 19:11:07 +01:00
Thibault Delavallée 870974effe [IMP] ir_actions, mail: add add_followers server action
Add a server action allowing to add followers, either partners or
channels, to documents.
2017-01-03 19:11:07 +01:00
Yannick Tivisse 8fa9f7d6d4 [REF] ir_actions: refactor and simplify ir.actions.server
Main idea of this commit is to simplify the various options of
ir.actions.server model. Purpose is to make it a simple tool to
execute some actions or python code. This has two main consequences

 * create and update server actions are simplified to update only the
   current record. Complex options can always be achieved by python code
   instead of error-prone option building mechanism;
 * condition of server actions is removed. If a condition is necessary it
   can either be included in a code server action, or integrated in an
   automated action;

This commit features :

 * remove 'client_action' server action type. Indeed this can be achieved
   with a code server action returning an action;
 * remove 'condition' on ir_actions_server model. From now on conditions
   and triggers are managed in server action code or using automated
   or scheduled action;
 * clean 'create and copy a record'. Create and link are the proposed
   options. Copy of the record or of a selected record is removed. Link
   is simplified by removing the parsed expression that allowed complex
   path update. It is simpler to write code than write python-like
   expression in char fields;
 * remove 'use_write' options. It now simply updates a record;
 * remove 'write_expression' as it is replaced by code actions;
 * remove 'ref_object' not used anymore with the removal of "choose
   a record";
 * remove helper to build an expression not used anymore with the removal
   of "write expression";
 * remove object ID finder;
 * removed template display when choosing an email template; just go
   on the template if you want more details;
 * refactor server action form view to reflect changes. It will be used
   in future commits as base view for automated and scheduled actions;
 * add 'sequence' in list view;
 * add new 'usage' selection field allowing to distinguish which model
   uses the server action. Indeed as server action will soon be used
   in scheduled or automated actions having a clue about the usage
   is always helpful;

Thanks to @fpodoo for the original idea and preliminary work. Thanks to
@jpr-odoo for first developments. Thanks to @jem-odoo and @rco-odoo
for reviewing.
2017-01-03 19:11:06 +01:00
Thibault Delavallée 452a97d9d4 [REF] ir_actions: remove usage field
This field is now informative only and not used through the codebase. As
an usage field could be defined on various inheriting ir.actions.*
models, let us remove it from the base model and give some freedom
to sub-models.
2017-01-03 19:10:28 +01:00
Thibault Delavallée bcc0212bfb [IMP] ir_actions: perform small code cleaning
* use selection and selection_add to replace old indirection for state
   field and ease code understanding
 * update various strings and helps
 * update Python code helper to match new API changes, notably model,
   record and records being recordsets
2017-01-03 19:10:28 +01:00