Commit Graph
99917 Commits
Author SHA1 Message Date
Kinjal Mehta f0db2d72f7 [IMP] auth_signup: split files. 2015-12-16 12:20:45 +01:00
Kinjal Mehta 327de507a7 [MOVE] auth_signup: Moved files in related models and views directory. 2015-12-16 12:20:41 +01:00
Martin Trigaux ae505b16ab [MERGE] sale_margin: merging to the new api
Closes #8024
2015-12-16 10:30:29 +01:00
Anand Kansagra 2e4fce618e [MIG] sale_margin: Converted test case from yml to python. 2015-12-16 10:29:09 +01:00
Anand Kansagra 1ca86e70de [IMP] sale_margin: Migrate into new api. 2015-12-16 10:29:03 +01:00
Anand Kansagra 332aded356 [MOV] sale_margin: Re-organised file structure. 2015-12-16 10:28:14 +01:00
cod-odoo 924ca78068 [IMP] account: add origin as invisible field
Add the source of the invoice on the invoice lines.
It's an hidden field as it's already present on the invoice but this is a
frequent customization request, adding it as invisible to help them.

Closes #9416, task 21073
2015-12-15 10:22:45 +01:00
Thibault Delavallée f65a7ba618 [ADD] mail: res_partner message_bounce
Add the message_bounce field on res.partner. This allows bounced emails to increment
the counter and thus to filter / exclude / archive partners whose email is invalid.
2015-12-14 11:57:13 +01:00
Thibault Delavallée 4aabc43fab [IMP] hr_applicant: shared stages
Like in CRM, stages in recruitment process are now shared accross jobs.
It is still possible to have stages specific to a job using a job_id
field on the stage.

Various heuristics to find the default stage and stages to display have
been updated accordingly.
2015-12-14 11:49:15 +01:00
Cedric Snauwaert 01e7ed3494 [ADD] account: when installing a localization, create xml_id for object that are created from templates 2015-12-11 10:34:33 +01:00
Raphael Collet 2373cadc36 [FIX] web_kanban: in menu of kanban column, always display "Archive Records"
Do not hide the menu entries when the column is empty, because the column is
not re-rendered after you quick-create records in it.
2015-12-10 16:53:57 +01:00
Damien Bouvy 1bb822ca32 [IMP] project_issue_sheet: remove domain from analytic account in issue form view
This domain forced you to choose an analytic account with the same customer. While useful (you search less), it is quite limiting; the case where you need to register your timesheets on an internal account or the account of another partner are not that rare.
2015-12-08 13:45:42 +01:00
Richard Mathot c4dca1dec6 [FIX] mail: allow edition of channel memberlist 2015-12-08 13:26:25 +01:00
Martin Geubelle da169ed620 [IMP] base: use image_small on res_partner_view
Closes #9731
2015-12-07 16:51:05 +01:00
pvy 727a700720 [ADD] account: added the trust field to partners for followups 2015-12-31 16:32:08 +01:00
Nicolas Lempereur de5a00ac92 [FIX] website{,_forum}: add summernote for non designer
In saas-6 the editor assets were always included.

In 9.0 it was only included depending on groups, but should be available
to be overwritten (for example by website_forum which needs to always
include the editor for message posting).

fixes #9402
2015-12-04 12:01:33 +01:00
qdp-odoo 7f71611215 [FIX] account, fixed previous commit (silly me): the default on tax_group_id was refering to unknown method + the field value wasn't copied from the template to the tax 2015-12-03 11:14:47 +01:00
qdp-odoo bdf088d349 [FIX] account: added tax_group_id field on tax template, which is already present on account.tax object but was forgotten on the template. Fixes #9859 2015-12-03 10:59:49 +01:00
qdp-odoo 40bd4a2f05 [IMP] stock_account: let the user choose the counterpart account used in price adjustment wizard for products in perpetual inventory. Fixes #9856 2015-12-02 17:26:47 +01:00
Yannick Tivisse b278b2c431 [REM] mail: Remove field 'chatter_needaction_auto', which seems useless
since the chat refactoring
2015-12-02 11:28:39 +01:00
Simon Lejeune dc41163e77 [FIX] packaging: debian: missing comma in control file
introduced by rev c1ff5d894c
2015-12-01 15:24:42 +01:00
Darshan Kalola 2317e853cc [FIX] point_of_sale: wait on invoicing to finish before printing receipt
After this commit was introduced 4a72a70302 , When you click on validate with invoicing enabled without customer,
the popup for select a customer open and immediately we switch to the  receipt screen, that gets rid of popup.
In this commit we print the receipt after invoice process done in backend when validate an order with invoicing enabled so that it's work like before.
2015-12-01 15:00:42 +01:00
Martin Trigaux 87f96c942a [MERGE] forward port of branch saas-7 up to 90254bee 2015-12-01 10:54:51 +01:00
Martin Trigaux 90254beedb [MERGE] forward port of branch 9.0 up to 00ee6e7b 2015-12-01 10:30:44 +01:00
Martin Trigaux 00ee6e7ba4 [FIX] base: wrong term in .pot
As the name of the module has changed
2015-12-01 10:25:13 +01:00
Martin Trigaux 253437f81f [FIX] base: set module when creating translation
Port revision 70287d4 to 9.0

When creating missing translations on an object (e.g. using blue flag icon on a
field), the value of the module was not set.
This was problematic as could create a duplicated translation when the module
was updated or the translation reloaded (as the module is used in find_expr).

opw 654036
2015-12-01 10:19:25 +01:00
Nicolas Lempereur 516c8de3e9 [FIX] web_settings_dashboard: set undefined installed_apps
opw-657865
2015-12-01 10:14:56 +01:00
Damien Bouvy 8469a4dea0 [FIX] sale: make the field visible when needed, instead of always invisible
The group group_analytic_accounting is actually part of analytic, not sale.
2015-12-01 10:07:11 +01:00
Yenthe 1bb62470e4 [IMP] l10n_be: accounting translations
Extra accounting translations
Closes #9821
2015-12-01 09:57:21 +01:00
Martin Trigaux a9ec2894de [MERGE] forward port of branch saas-6 up to 19fe77b 2015-12-01 08:41:52 +01:00
Martin Trigaux 0ee11f23f1 [FIX] project: undecember is not yet supported by python
But this should probably move to demo
2015-12-01 08:30:40 +01:00
Fabien Pinckaers fb2a549798 [IMP] improved module name 2015-12-01 03:50:43 +01:00
Denis Ledoux 53ae4a3169 [FIX] project: avoid to remove the default partner_id
The onchange of the project field
removed the default partner loaded of the task
if there was no project set on the task, or if the
project was not associated to a specific partner.

There is no obvious reasons to do so,
and the revision 3fe06da634
introducing the regression doesn't explain why
it has been done. At first sight, there is no reason.

opw-657876
2015-11-30 17:46:31 +01:00
Martin Trigaux 19fe77b7d7 [MERGE] forward port of branch 8.0 up to 1f07b942 2015-11-30 16:57:14 +01:00
Martin Trigaux 35f3dea5d2 [FIX] stock_dropshipping: do not raise a warning for dropshipping product
When selling a product with a dropshipping route, the available stock was
checked and a warning got raise if it was the case.
The _check_routing was not working properly as is called in a context of an
onchange and 'self' was the record in the database, not in the browser.

Just use check there is a dropshipping route on the product instead of checking
it on the routes of the sale order line (not reliable info anyway).

Add a todo for master to improve it to change the signature of the method.

opw 657760
2015-11-30 16:55:45 +01:00
Martin Trigaux 1f07b9429c [FIX] base: update translations should not duplicate the terms
When a translated term is modified (e.g. content of an email.template),
reloading the translations of the module (e.g. when updating the module) used to
recreate a new, duplicare translation for the modified term (instead of ignoring
the existing one).

This was due to the fact the matching expression (find_expr), when loading
translations, used the field 'src' (source term) as criteria for (almost) all
ir.translation records.

While this is true for type 'code' or 'selection', this is not true for 'model'
where the source content may have been changed.
In case of translation of type 'model', matching on the name and res_id should be
enough for the matching expression and then, avoid creating duplicated
translations.

Note: this patch must NOT be present in 9.0 due to the xml_translate
attribute that splits an xml content into small parts.

opw 654031
2015-11-30 16:41:56 +01:00
Martin Trigaux a70287d42c [FIX] base: set module when creating translation
When creating missing translations on an object (e.g. using blue flag icon on a
field), the value of the module was not set.
This was problematic as could create a duplicated translation when the module
was updated or the translation reloaded (as the module is used in find_expr).

opw 654036
2015-11-30 16:41:56 +01:00
Xavier Morel e3a2448ebe [ADD] form builder whitelisting: ACL check
Only users who can edit the website's structure should be allowed to
whitelist fields.
2015-11-30 16:39:13 +01:00
Xavier Morel 2afb5b43ef [IMP] form builder fields blacklisting
* blacklist all fields by default
* don't use blacklist in get_authorized_fields which is called to see if
  a field can be added to a form, instead only use it afterwards to see
  if the field can be written to by the formbuilder. That way
  formbuilder can whitelist fields which are actually added to forms
  on-demand resulting in a more secure interaction
2015-11-30 16:39:13 +01:00
Xavier Morel 2769029eef [IMP] make form builder opt-in update
In noupdate, the opt-in setting is ignored by migrations and breaks the
corresponding feature. If the feature is undesirable, don't install the
module.
2015-11-30 16:39:13 +01:00
Thibault Delavallée d025251c7e [IMP] crm: stage management update 42
Stages are now shared by default between sales team. As the sales flow should
be quite the same whatever the sales team, stages are now shared and not
sales team dependant.

The possibility of customizing the flow by adding stages specific to a sales
team still exist. Stages have a team_id field that can be set in the stage
form, in configuration. However this is not the default behavior. A stage
is either common to all sales team, either specific to only one sales team.
This is why there is no team_ids field anymore, only team_id.

Moreover leads do not use stage anymore. A lead is either alive or archived.
The type field on stages is then removed, as all stages are now used in
opportunities only.

A small hack has been introduced in crm_stage default_get. Indeed when going
from the pipeline, creating a stage with a sales team in context should not
create a stage for the current sales team only. Therefore unless specified
in the context, default_team_id is discarded in the default get context.
2015-11-30 15:30:54 +01:00
Denis Ledoux 37c95517c7 [MERGE] forward port of branch 8.0 up to eb5d95b 2015-11-30 15:06:41 +01:00
Denis Ledoux eb5d95b135 [FIX] product: _get_image_variant is used for the field image
This revision is related to 93d4db9d1e.

Usually, for models with an image, the original `image` is stored
in the field `image`, and then the resized value are in the fields
`image_medium` & `image_small`.

In the specific case of the product variant, this is not the case,
the original image is stored in the field `image_variant`,
and the `image` field uses as well the method `_get_image_variant`.

The `image_get_resized_images` must therefore return the "big image"
as well, which is returned with the key `image`, by default.
This is done using the method argument `return_big`.
2015-11-30 13:51:25 +01:00
Denis Ledoux 6175a1b8cf [FIX] website_sale_stock: access rights to print the delivery order
A portal could not print the delivery order report
if the products of the picking were not published.

opw-657743
2015-11-30 13:40:14 +01:00
Martin Trigaux 44248a07a5 [FIX] base,share: error in_group_xx on user form
res.users form contains virtual fields in_group_ID to be added in res.groups.
Groups with boolean share=True (added by share module) must not be displayed in
the form and should not be modifiable through the user interface.
However, if a module adding/modifying a res.group is earlier in the dependency
graph than 'share' (e.g. only depends from 'base'), the update of the user view
is done before share is loaded and the overrride of 'get_application_groups' is
never executed.

As we can not guarantee that the module is share loaded, put the logic of
hidding the module in base instead of share.

This workaround is quite hacky but is necessary in stable version.
Better fix in 9.0 at cf63d4d

Fixes #6324
Fixes #5820
2015-11-30 13:11:02 +01:00
Nicolas Martinelli f2aea91b4a [IMP] stock: add picking partner_id
Add a related field to the partner_id of the picking. Note that
partner_id on stock.move is different from partner_id on stock.picking
in case of dropshipping, therefore we need to show both fields.

opw-656298
2015-11-30 13:07:27 +01:00
Denis Ledoux 93d4db9d1e [FIX] product: resized variant images
This is possible to set an image for a specific variant
When this was the case, the image displayed was always the
image within its original size, it wasn't resized
to small and medium sizes.

opw-657055
2015-11-30 13:06:16 +01:00
Thibault Delavallée cf8a59c250 [FIX] res_partner: default image in testing
When in testing mode there is no need to compute the default image. Indeed
this information is rarely necessary for testing purpose. For the whole set
of Odoo tests, removing the default image computation in test mode makes
a gain of ~10 minuts of computation.
2015-11-30 12:50:47 +01:00
Denis Ledoux 6b772af15c [FIX] crm: on leads/opp, keep team if user is member of it
If a user was in multiple team,
and the salesman of a lead was changed to this user,
the team assigned to the lead might change even
if the user was part of the team already set.

opw-657814
2015-11-30 11:31:58 +01:00
qdp-odoo 901a3e030c [FIX] hr_expense: generation of accounting entries now work when selecting several expenses 2015-11-30 11:28:58 +01:00