Commit Graph
106440 Commits
Author SHA1 Message Date
Christophe Simonis 7dc7c306c1 [FIX] odoo.py: handle call without arguments 2016-09-08 11:54:15 +02:00
Martin Geubelle 7fe89d08b3 [FIX] account_asset: asset in company currency
When the asset is created from an invoice line it should be in company currency and not in invoice currency
2016-09-08 11:21:29 +02:00
Martin Geubelle f5e3a52236 [FIX] account_asset: generated account.move.line name
If `method_time` is set to end, `method_number` is not the reference for the number of depreciation lines.
Take directly the number of depreciation lines is more correct.
2016-09-08 11:19:08 +02:00
qdp-odoo d08c947440 [FIX] account_tax_cash_basis: set the entry date for tax_cash_basis as the maximum of involved operations, instead of the reconciliation date.
Also refactored account_tax_cash_basis and account_tax_exigible to have the minimum code lines in the bugfix module
2016-09-08 10:46:46 +02:00
Nicolas Martinelli 86eee6246b [FIX] hr_timesheet: task creation on project
When creating a task on a project which is accessible to followers only,
an access error pops up.

This comes from the `subtask_project_id` field on the task, which is a
related to a `project.project` field. When a task is created, the ORM
tries to write on the related field, and hence on `project.project`.

opw-687252
2016-09-08 10:43:25 +02:00
Martin Geubelle 3f0fc7219c [REF] sales_team, web: remove sales_team_dashboard view
The view `sale_team_dashboard` (which extends kanban) has been removed
and replaced by a default kanban view.

To use it in the ViewManager, an option `js_class` is added
on the arch description and this class be used as the View.

This avoids creating a new view type just for one view.
2016-09-08 09:15:30 +02:00
Simon Lejeune 76c7041c5b [REF] server: remove the openerp-gevent file
* use a special arg in odoo.py
* note that the previous implementation was relying on the fact that
  the openerp-gevent file was located in the same directory than the
  odoo.py file. This was no longer true since rev a0eb172cab
  This commit brings back this behavior.
2016-09-07 18:09:46 +02:00
Denis Ledoux 49b807d877 [FIX] product: force empty context in product_template_action_all
This revision removes the context from the action:
afd29b277d

The thing is, in saas-11, the `product.template.type`
no longer has in its selection values `product`,
in the module `product`,
there is only `consu` and `service`.
the type `product` is added in the module `stock`

Therefore, this `product` cannot be used as default value
when only the module `product` is installed and not
`stock`.

We force the empty context for migration purposes,
so bases in ealier releases than saas-11 do not have
`'default_type': 'product'` within this action
when they are upgraded to saas-11.

opw-687986
2016-09-07 18:04:48 +02:00
qsm-odoo e0784ee0b7 [FIX] web_tour: lower step delay to 10ms (instead of 300ms)
300ms was used during development but now 10ms seems to be high enough
to prevent bugs.
2016-09-07 17:37:23 +02:00
Cedric Snauwaert 2e72e4f27f [FIX] res_currency: wrong import that broke reconciliation view
fix error introduce in commit 7596fa3ee3
The get_format_currencies_js_function return javascript code and the openerp.web should not have been replaced by odoo.web. The result is that reconciliation view was broken.
2016-09-07 16:30:38 +02:00
Martin Trigaux d22676dc07 [FIX] typo 2016-09-07 16:19:39 +02:00
Yannick Tivisse f7495294cb [FIX] website_quote: fix due to module migration
Coming from https://github.com/odoo/odoo/commit/232eea36ab98eb268f712b2083c637a7cb463e2c
2016-09-07 15:50:08 +02:00
Raphael Collet 5b99b36022 [FIX] ir_attachment: implement garbage collection of the filestore 2016-09-07 14:58:06 +02:00
Raphael Collet cdd03c3afe [FIX] in all python code, rename openerp to odoo 2016-09-07 14:45:08 +02:00
Thibault Delavallée 8802994964 [FIX] hr_holidays: take employee resource when computing days of leaves request 2016-09-07 13:30:53 +02:00
Nicolas Martinelli a666cd06bd [FIX] point_of_sale: round globally
Commit 06754b32 brings an inconsistency between the PoS frontend, the
pos_order and the account_invoice tax calculation. Part of the commit is
correct since it corrects the matching between the `compute_all`
methods, however.

opw-680891
2016-09-07 13:08:31 +02:00
qsm-odoo 8476d99101 [FIX] website: make the well snippet grow when putting an image in it 2016-09-07 13:00:02 +02:00
stefanorigano e1022f38a3 [IMP] web_editor, website: add colorpicker palettes customizations
* Add the ability to define palettes custom selection.
* Add the ability to define a custom title for the colorpicker dropdown
* Define a custom layout for single (unique) palette layout

* Define overlay color options based on new colopicker for
Cover and Banner text containers

* Define default palettes
2016-09-07 13:00:01 +02:00
stefanorigano 5b8c93f073 [IMP] web_editor: change design of transparent colors palette
* Add a "transparent" button
* Add a special background for transparent background buttons

+ Some minor colorpicker design change
2016-09-07 12:58:50 +02:00
qsm-odoo e696def3c5 [FIX] website: properly allow to remove slide from banner snippet
Removing a slide was buggy :
* Removing the last slide left the slide handles (and the user had to
click on remove slide again)
* There was an ugly delay before the removal
* Changing the bg image of a slide was not possible anymore once one
slide was removed
* ...
2016-09-07 12:30:40 +02:00
Denis Ledoux d94c449547 [FIX] account: improve usability journal refund sequence
WHen checking `Dedicated Refund Sequence` in a
sale / purchase journal,
the field `Refund Entry Sequence` must be filled with a sequence.

Otherwise, later, when issuing a refund invoice, it won't be able
to generate the number of the refund invoice as it won't be able
to find the sequence to use.

opw-687839
2016-09-07 12:05:07 +02:00
Martin Trigaux 79a19c1eb8 [I18N] sale_expense, remove website_google_map from translatable modules
As there is no translation for them
2016-09-07 12:00:10 +02:00
Damien Bouvy 23d8ab5ec9 [FIX] rating: use t-att-value instead of t-esc to display textarea
When using t-esc, if the value is False/not set, the element is not
added to the DOM. Therefore the page asked for feedback but never
actually displayed a textarea input.

Using t-att-value simply prefills the input.
2016-09-07 11:59:14 +02:00
Damien Bouvy 259cc9a708 [FIX] rating: fetch the rated partner when applying the rating
A function named rating_get_rated_partner_id is there, let's use it.
2016-09-07 11:44:42 +02:00
Martin Trigaux 360a2c5724 [FIX] web: untranslatable term
Do not translate variables content, does not make sense
Its value should be translated earlier
2016-09-07 11:19:21 +02:00
qsm-odoo 0eafeab183 [FIX] website: colorpicker option for banner snippet 2016-09-07 11:18:04 +02:00
Martin Trigaux fb74fec3f5 [I18N] export 10.0 source terms 2016-09-07 11:08:42 +02:00
Martin Trigaux 05d91ea4e9 [I18N] update saas-11 translations by merging 9.0 and master
Without fuzzy-matching that is too flexible and error prone.
Was matching on wrong source and got translation without '%s'
2016-09-07 09:40:37 +02:00
Nicolas Martinelli 06754b3237 [FIX] point_of_sale: tax calculation
Inconsistencies can arise between the tax calculation performed in the
PoS and in the backend (e.g. in a SO). For example:
- Unit price: 9.479
- Tax: excluded, 5.5 %
- Buy 5 units
- Round globally

In the backend, the result is 47.40 + 2.60 = 50.00
In the PoS, the result is 47.40 + 2.61 = 50.01

We make the PoS apply the same logic than in the backend. First, at the
level of the `compute_all` method, especially to use the appropriate
rounding precision before starting the calculation (so we move the
rounding of `total_excluded` after the rounding precision adjustment).
Then, by calculating the taxes amount as the difference between
`priceWithTax` with `priceWithoutTax`. This is mandatory since they
contain the result of `compute_all` in which the rounding logic has
already been applied.

opw-680891
2016-09-07 09:13:03 +02:00
Nicolas Lempereur b4e829f96e [FIX] stock: @api.model on _prepare_values_extra_move
In saas-11 stock was migrated to new API, but some old API still called
_prepare_values_extra_move so it needs to be callable via both API
version.

opw-687958
2016-09-07 09:02:18 +02:00
Pierre Masereel 8e65b57df7 [FIX] web, web-kanban: update dataset size at record's drop in a column
When we drag and drop a record in a folded column, the number of elements
in this column displayed  in the column title is not updated.
This issue is present because when a record is droped in a column
its id is not added to the dataset of its new column.

To fix this, we had to add the id of the record in the dataset, and
override the method 'add_ids' in 'DataSetSearch' to have the size
of the dataset equal to the number of ids in it. We have replicated
the behaviour of the function 'remove_ids' in the new function 'add_ids'.
2016-09-06 17:15:44 +02:00
Simon Lejeune 826ee79384 [FIX] web: kanban: click on action in a vignette
It is possible to put a clickable object in a vignette that opens
an action, for example the kanban_status class used in the CRM
pipeline. This thing presents an issue as it opens a wizard, but
when the wizard is closed the vignette is not reloaded.

When you click on this item, it will go through `on_kanban_action_clicked`
in kanban_record.js that will trigger up a `kanban_do_action` custom
event. The kanban_view have an handler for this custom event and
will call the `do_execute_action` method defined on the view.

This method can take a callback as its last argument that will run
when the wizard is closed. Before rev ae583ba1, the behavior was
to reload the entire kanban view but this rev tries to only reload
the kanban record. Unfortunately, it didn't use the argument
in `do_execute_action` but in a then of this method. So it
didn't work. This commit put the onclose callback at its right place.
2016-09-06 17:15:13 +02:00
This Is Banana a5e03c1bf4 [FIX] product: avoid having data depending on demo 2016-09-06 16:33:12 +02:00
Christophe Simonis 69991e0654 [FIX] marketing_campaign: call super() using kwargs
Without this patch, the new-api/old-api adatpter will invert the
context and count attributes (takes always the context as last positional
argument). This lead to having the count argument being the context,
always returning the count of elements.
2016-09-06 15:55:22 +02:00
Simon Lejeune a84070f3ba [REL] 9.saas~13 2016-09-06 14:56:08 +02:00
Yannick Tivisse 7fa2691175 [IMP] hr_*: Split the HR access rights by application
PURPOSE
=======

For each and every Hr application there should be one user category (One app = one category).

SPECIFICATION
=============

HR remains as it is : Employee, Officer, Manager

Each Application should have 2 access rights: User and Manager. Example for Recruitment:
- The user has access to the recruitment process
- The manager has access to the job position configuration

Each Application should grant the employee user access right (Namely the 'HR Officer')
2016-09-06 14:35:09 +02:00
Jeremy Kersten 93cc51a10b [FIX] product: fix default values for pricelist
Bad migration to new api... All values was resetted ith 'forumla'.
Why not formula as default value directly in product.pricelist.item ???
2016-09-06 13:59:35 +02:00
Jeremy Kersten f2db00d7ac [IMP] website_sale: improve data to be multi currency, multi pricelist and fix tests according to new data 2016-09-06 13:59:35 +02:00
Jeremy Kersten 3db0fd7cf3 [IMP] product: make property_product_pricelit dynamic for res partner
Now the porperty product pricelist is computed automatically.

Based on the res_country of the res_partner, and the pricelist available
for this country.

It is always possible to force another value (property) that the computed.
2016-09-06 13:59:35 +02:00
Jeremy Kersten fb860c11b5 [IMP] product, website_sale: add field sequence on pricelist.
Now that property is computed automatically.
In some case, the compute will take the first on available.
So, the order (sequence) allow to specify the priority.

Test from point of sale are base on currency $,
So we force for the test to use a pricelist in dollard (My company, Chicago)
2016-09-06 13:59:35 +02:00
Jeremy Kersten a26a84f9c0 [IMP] website_sale, website_sale_event: adapt views to respetc the show_discount
Now, the user can choose on the pricelist if the price should be displayed as a
discount or not (price striked red).

cart_update and confirm_order recompute unit price by default.
So we need for website_event_sale to be able to ask to don't recompute the price.
Else the price of product will be used instead of the price of ticket.
2016-09-06 13:59:35 +02:00
Jeremy Kersten 53abb4a277 [REF] sale,product,website_sale: merge website.pricelist and product.pricelist
Make it generic... It is not only a concept to website !

Update tests
2016-09-06 13:59:35 +02:00
Jeremy Kersten 7854105b31 [FIX] sale: fix old product_visible_discount to be multi_currency compatible
Without it, currency was ignored
2016-09-06 13:58:09 +02:00
Jeremy Kersten 583521f39c [REF] sale: Merge product_visible_discount in sale module 2016-09-06 13:58:09 +02:00
Denis Vermylen (dve) e9426b03e7 Revert "[IMP] website, doc: replace eCommerce by e-Commerce"
This reverts commit b4d7b7e6dc.
Odoo always uses term eCommerce
2016-09-06 13:55:12 +02:00
qsm-odoo 60b11d6d60 [IMP] web_tour: add useful logs when a tour fails 2016-09-06 13:35:01 +02:00
qsm-odoo fa3f529d80 [FIX] web_editor: stop resetting bg image of parent snippet on color change
Commit 404ed0f788 tried to solve the
problem but only solved a part of it. Indeed, if the snippet child
has a bg color option but not a bg image option, the event propagation
stops in the parent handler, when it is too late.

Solution is checking that the event comes from the same element on
which the callback is attached to.
2016-09-06 13:00:56 +02:00
Ravi Gohil 5bd4218454 [IMP] payment_payumoney, payment_stripe: set private fields accessible to employees only
In 8.0 private fields have been recently set as visible only to employees
at commit b226510840.

However between v9 and v10 two new payment acquirers have been implemented
payumoney and stripe. Those addons now have their credential set as private.

Methods using the acquirers have been sudoed accordingly to avoid access
issues when rendering the buttons. Other payment modules will be updated when
the forward port from 8 to 9 and pre-10-master will be done.
2016-09-06 12:39:33 +02:00
Raphael Collet 9374892bb9 [IMP] tools: make OrderedSet implement the full set API 2016-09-06 12:23:06 +02:00
Raphael Collet 1e5ecfd183 [REF] models: add methods to efficiently concatenate and union recordsets 2016-09-06 12:23:01 +02:00