Commit Graph

93707 Commits

Author SHA1 Message Date
Lionel Sausin 08fabb1d64 [FIX] product: Don't force arbitrary precision on weights
The product view forces the decimal accuracy to 3 digits on weight and
weight_net, but the accuracy can actually be set using the 'Decimal Acuracy'
feature so it must not be forced here.
2015-06-03 17:49:04 +02:00
Denis Ledoux 815f91b951 [FIX] google_calendar: remove event in google while being only attendee
If User A created an event In Odoo, inviting User B,
Then, if User A sync his calendar with Google,
user B have an invitation to this event in Google,
if user B refuses the event AND remove it from his Google calendar
and then syncs his calendar to Odoo,
the event was removed from the Odoo calendar, of all attendees.

opw-641356
2015-06-02 15:04:00 +02:00
Yannick Vaucher 37f3d08c18 [IMP] Add a way to bypass check on dropshipping with both invoice policies on delivery. This improve #6824 as it procures no way to implement the missed feature and bypass the check. 2015-06-02 13:46:04 +02:00
Goffin Simon eabf7df5f9 [FIX] website_event: format event periode
The format period defined by the start_date and end_date of an event
can be set according to the language.

opw:640011
2015-06-02 10:42:46 +02:00
Denis Ledoux a9e3d74713 [FIX] google_calendar: event duplication during sync to google
With User A <a@gmail.com> and user B <b@gmail.com> both syncing
their calendar with Google.
If User a created an event X, adding as attendee himself and user B,
and then synced his calendar to Google, a new event was
created in User B Google Agenda automatically, representing the
invitation.
At this stage, X appears only once, in the four calendars
(Odoo cal for A, Odoo cal for B, Google Cal for A, Google Cal for B)

If user B then synced his calendar to Odoo, the event X was
duplicated in three of the calendars (Odoo cal for A and B, Google cal for B)

If then user A synced again his calendar with Google, the event X
was duplicated in the four calendars.

From then, a duplicate loop began, at each sync of the both user calendars.

opw-639419
2015-06-01 18:14:50 +02:00
Nicolas Martinelli e26bfd9d13 [FIX] hr_payroll: add copy=True to worked_days_line_ids
Method refund_sheet relies on the fact that on 7.0, copy=True was the default
behavior for one2many fields.

Bonus: remove the call to compute_sheet since that what is done by
self.signal_workflow(cr, uid, [id_copy], 'hr_verify_sheet')

opw-640348
2015-06-01 16:16:35 +02:00
Nicolas Lempereur 69f87cd34c [FIX] account: get uom at account invoice creation
For commit c63230d0d if there is no uom, it should not fail.

closes #6920
2015-06-01 16:03:46 +02:00
Nicolas Lempereur c63230d0d0 [FIX] account: force uom from product category
When we change a product line of an account invoice, a current unit with
a invalid unit category was not dropped which should be since:

- it is different from a sale.order,,
- there is a domain on the unit of measure only allowing units from the product's unit category.

This fixes drop the current unit of mesure in this case.

opw-640985
2015-06-01 15:27:58 +02:00
Nicolas Lempereur c3464e958e [FIX] membership: free_member get free when paid is dropped
When a paid membership is finished, a free_member partner should get a
free membership_state.

related to opw-640440
2015-06-01 14:54:12 +02:00
Goffin Simon 6792376f39 [FIX] hr_applicant_document: resume and letters
When an ir.attachment is created from the ir.action.window "Resumes and Letters"
then the res.model must be set by default with 'hr.applicant'.

opw:641070
2015-06-01 13:36:09 +02:00
Nicolas Martinelli 9ce57d55e7 [FIX] purchase: add a trigger to minimum_date_planned
This triggers allows the minimum_date_planned to be calculated when PO are
merged.

opw-640541
2015-06-01 11:22:23 +02:00
Jeremy Kersten daa69fb838 [FIX] http: avoid that request.not_found crash
return request.not_found crash with a internal error, because get_response
takes a environment as param.

Werkzeug Documentation:
Keep in mind that you have to pass an environment to get_response() because
some errors fetch additional information from the WSGI environment.
2015-06-01 10:30:16 +02:00
Goffin Simon 7f8cd01431 [FIX] product: Product field
"product.product" model inherits from "product.template"  model then
all the float fields in "product.product" include those from "product.template".
A list is used to conserve the order of the fields.

Fixes #2067
opw:639766
2015-06-01 09:11:22 +02:00
Jeremy Kersten 1bc328317a [FIX] website: display 'Show Sign In' option
Commit 4ff1af4 moves the groups attributes on the ir ui view/template.
So the option is no more available in customize menu if user is logged.
No luck, because when your are not logged you don't have the menu.

Groups on template are the best practice to hide the content of a view
to a group of poeple, except in this case where a customize_show is set
to True.

Maybe that customize_show should ignore groups on ir ui view in a future
version ?
2015-05-30 16:00:28 +02:00
Martin Trigaux 7def86fcc7 [I18N] spring cleaning of untranslated languages
Remove languages that were not translated fro, the list of installable languages.
Installing languages with no translations (en_CA) has no effect and having a too
long list is misleading. Sorry Klingon.

Adding languages that were translated but not installable (fr_CA, en_AU)
2015-05-29 23:40:40 +02:00
Martin Trigaux 4528ccf148 [I18N] First sync of translations from Transifex
Translation is that which transforms everything so that nothing changes.
 -- Grass Günter
2015-05-29 21:58:20 +02:00
Martin Trigaux 409ca3e009 [I18N] Update translations from Transifex
Now I am become Death, the destroyer of worlds
2015-05-29 18:28:10 +02:00
Goffin Simon 50182d0dfe [FIX] website_event: month in local events
The month inside the local events snippet must be in the user language.
Inspired from def _read_group_format_result in models.py

opw:640011
2015-05-29 16:56:14 +02:00
Frédéric van der Essen 19eda68547 [IMP] web, point_of_sale: basic implementation of the cordova integration.
This time without a new js file
2015-05-29 15:33:13 +02:00
Nicolas Martinelli 46eb9e2639 [FIX] product: cut date to keep format '%Y-%m-%d'
Ensures the date format is '%Y-%m-%d', since it is the format of
pricelist.version_id.date_start/date_end.

opw-640436
2015-05-29 13:58:53 +02:00
Nicolas Martinelli 3274f8c94c [FIX] point_of_sale: remove deprecated field account_receivable
property_account_receivable should be configured by default.

opw-639766
2015-05-29 13:39:29 +02:00
Nicolas Lempereur 27834a6e9b [FIX] web_calendar: keep default name if event name empty
The name of an event is the name a created record will get.

If the event name of a new event is left empty, the edited record will
also be empty which could be less user friendly.

closes #6896
fixes #6869
opw-640921
2015-05-29 13:18:09 +02:00
Olivier Dony b17c7d66c7 [I18N] Final sync + cleanup of Launchpad Translations, moving to Transifex
See https://github.com/odoo/odoo/wiki/Translations
2015-05-29 11:22:32 +02:00
Olivier Dony 1cea0dc4e9 [I18N] Final sync + cleanup of Launchpad Translations, moving to Transifex
See https://github.com/odoo/odoo/wiki/Translations
2015-05-29 10:55:06 +02:00
oalca ad36836e3c [CLA] Oscar Alcala, Vauxoo 2015-05-29 00:13:40 +02:00
oalca db4056026e [I18N] website_sale: Translation to es_PA Spanish (Panama)
Closes #6732
2015-05-29 00:12:38 +02:00
Nicolas Lempereur 52aee9a8e7 [FIX] stock_landed_costs: splitting and decimals
When splitting landed costs against the picking line, the decimal
precision was not taken into account.

For example: with a landed cost of 5.01 split equally over two lines,
the cost for each line is 2.505 which is rounded to 2.51 with a decimal
precision of the fractional part of 2. Hence the total was wrongly of
5.02 (which is an issue when wanted to validate the landed costs).

With this commit, the split landed costs are restrained to stay under
the whole landed cost price.

closes #6882
fixes #5568
opw-639503
2015-05-28 16:37:07 +02:00
Martin Trigaux 916525fbf3 [FIX] web: Kabyle localization file
datejs is looking for the file named with a dash and not an underscore
Fixes #6165
2015-05-28 16:33:04 +02:00
Denis Ledoux f6f55d66b3 [FIX] google_calendar: get_param returns a string
while `timedelta` argument `weeks` expects an integer

opw-640976
2015-05-28 16:02:34 +02:00
Denis Ledoux 9fe059027e [FIX] website: seo, auto detection of keywords with accents in boundaries
Javascript regex \b is not unicode aware,
and words beginning or ending by accents won't match \b

We therefore use a custom regex to replace \b.
Basically, it's a regex matching all words separators
such as dot, comma, spaces, etc. and other unicode
separators as well.

opw-641005
2015-05-28 15:15:53 +02:00
Nicolas Martinelli 4fec2447ec [FIX] account: default tax can be of type 'all'
opw-640984
2015-05-28 15:07:29 +02:00
Christophe Simonis 970f9466aa [MERGE] forward port of branch saas-3 up to 55d6c19 2015-05-28 14:45:30 +02:00
Christophe Simonis 55d6c190da [MERGE] forward port of branch 7.0 up to e33bcde 2015-05-28 14:41:30 +02:00
Goffin Simon 1da3a8b353 [FIX] stock_account: description for extra moves
The extra moves must take into account the field description_sale or description_purchase and
the field default_code set on the product.

opw:640387
2015-05-28 13:59:11 +02:00
Denis Ledoux fff4215933 [FIX] stock_account: purchase and sale_refund are two different journal type
When creating an incoming shipment to be invoiced with as source location
"Transit"
and as destination location
"Stock"

Clicking on create invoice leaded to a crash.

opw-639536
2015-05-28 11:05:43 +02:00
Nicolas Martinelli e33bcdec19 [FIX] stock: return picking wizard handles one picking at a time
We force the user to select only one picking at a time. The reason is that we
can choose the number of products to return for every picking, so it does not
make sense to group the returns in one picking.

opw-640030
2015-05-28 10:19:38 +02:00
Nicolas Martinelli 9fe2e04c0d [FIX] stock: prevents multiple source/destination locations for the moves of the same picking
opw-640414
2015-05-28 08:44:19 +02:00
Goffin Simon 716fec913a [FIX] point of sale: Customer's country
When editing a customer, the actual country of the customer must be shown.

opw:639863
2015-05-28 08:18:21 +02:00
Nicolas Martinelli 1610fc41ef [FIX] stock_dropshipping: raise a warning in a specific invoice creation config
So far, we do not support the following combination:
- route set on 'dropship'
- PO invoicing set on 'picking'
- SO invoicing set on 'picking'

opw-634898
2015-05-27 16:11:31 +02:00
Nicolas Martinelli 1beb4db6c0 [FIX] purchase, sale_stock: make sure to avoid mixing between in and out invoices
When SO/PO invoices are generated on delivery, there might be a mix between
sale and purchase data on the invoice.

opw-634898
2015-05-27 16:11:31 +02:00
Nuria Arranz Velazquez fbdfbf4e04 [CLA] OpusVL 2015-05-27 15:58:55 +02:00
Nicolas Martinelli 4a7b383527 [FIX] stock: method do_prepare_partial takes into account moves in state 'waiting'
When scrapping received products, the state of the move will be switched back
from 'assigned' to 'waiting' in method 'recalculate_move_state'. These moves
must be taken into account in 'do_prepare_partial', which is called when
clicking on 'Transfer'.

Note that this bug would only appear if:
- reception in 2 steps is set
- the products are received without scrapping in the first step
- on the second step, we first scrap, then transfer. If we transfer,
  cancel, scrap and transfer, it works since the pack_operation_ids have been
  calculated correctly during the first click on 'Transfer'.

opw-640415
2015-05-27 15:13:57 +02:00
Denis Ledoux 2ac4a3854b [FIX] stock_account: Create invoice journal type for transit.
This revision is related to 4fb497b653.

For a 'To be invoiced' delivery order with a move with
as source location 'Stock' and
as destination location 'Transit'

There is no way to know if it's a Customer invoice
that should be created or a Purchase Invoice.
Indeed, the transit could be used as an intermediate to ship
to the supplier, or to the customer

opw-639536
2015-05-27 13:55:43 +02:00
Frédéric van der Essen da378722cc Revert "[IMP] web, point_of_sale: basic implementation of the cordova integration."
This reverts commit f7a1ac8b06.
The commit introduced a change that required a database update,
which should not be required in a stable version.
2015-05-27 13:46:26 +02:00
Goffin Simon 443605ce56 [FIX] account_asset: entries from assets
When an entry is generated from an asset, the number of this entry must be
 the sequence number linked to the journal of the asset and the reference of
 this entry is the name of the asset.

 opw:639760
2015-05-27 12:23:02 +02:00
Frédéric van der Essen f7a1ac8b06 [IMP] web, point_of_sale: basic implementation of the cordova integration. 2015-05-27 11:59:13 +02:00
Martin Trigaux 76659aa11e [I18N] add Transifex config file
Set resource definition for all modules of 8.0.
The .tx/config file is used for the Transifex client to synchronise
the translations localy and use commands such as
tx pull -r "odoo-8.*"  -l fr --mode reviewed
2015-05-27 11:28:22 +02:00
Nicolas Martinelli 0854320ec1 [FIX] hr_holidays: leaves_count on stat button only counts type 'remove'
The stat button 'Leaves' on the employee's form view displays the total number
of leaves (including holidays allocations and leave requests). When the button
is clicked, only leave requests are show, which makes inconsistent the number
displayed with the list of results. This fixes this behavior.

opw-640349
2015-05-27 11:23:49 +02:00
Martin Trigaux 5c690d3700 [I18N] add Transifex config file
Set resource definition for all modules of 7.0.
The .tx/config file is used for the Transifex client to synchronise
the translations localy and use commands such as
tx pull -r "odoo-7.*"  -l fr --mode reviewed
2015-05-27 11:20:23 +02:00
Goffin Simon 75b9932451 [FIX] stock_account: VAT for extra moves
If an extra move contains a product which is not initially in the order,
the taxes set on this product must be considered according to the fiscal position
of this order.

opw:634305
2015-05-27 09:03:18 +02:00