Commit Graph

94123 Commits

Author SHA1 Message Date
Goffin Simon f4e6dba097 [FIX] point_of_sale: barcode_reader
In the POS, when trying to add a new product in an order
with an already printed ticket, the added product must be
add in a new order.

opw:647499
2015-08-31 13:43:33 +02:00
Antonio Espinosa f310a82a20 [FIX] membership: Membership dates on children propagation
When creating a new contact for an existing member
partner, the membership dates were not correctly
computed, while the state was.

Closes #8207
2015-08-31 13:09:42 +02:00
xmo-odoo 134c3b80e7 Merge pull request #8290 from Yenthe666/patch-1
[IMP] hr_jobs: better grammar in demo data
2015-08-31 09:32:51 +02:00
Goffin Simon 283bffd054 [FIX] website_sale_delivery: display of the delivery price
In the shop, the price of the delivery must be displayed in the currency linked
to the pricelist of the sale order.

opw:647799
2015-08-31 09:18:48 +02:00
Yenthe feb5aebc8d Incorrect english terms
Updated
"Good language skills in an other langages"
to:
"Good language skills in another language"
2015-08-30 15:55:28 +02:00
Odoo Translation Bot b79d492ec4 [I18N] Update translation terms from Transifex 2015-08-30 01:51:03 +02:00
Nicolas Lempereur 898cae5684 [FIX] calendar: manage export of recurring event
When we export a recurring event, there was an error since there is
virtual ids (like '{real_id}-{date_of_the_event}').

Events steming from a recurring events are in fact shown virtually. In
the database there is really only one event and a suffix is appended to
the id to target a given instance of a recurring event.

If we want to separate a recurring event from the instances, we can edit
the instance and use the link "Update only this instance", once done
this instance is separated for the recurring event.

This commit if one or more recurring events instances are selected when
an export is done, will only export one source event of each of the
events occurences.

fixes #7932
closes #8262
opw-647676
2015-08-28 17:24:47 +02:00
Antonio Espinosa e1d59f8f82 [FIX] resource: Schedule days backwards when days is negative number
Regarding _schedule_days, similar thing was done in
saas-6, @ fd5e7f2.
When the argument `days` was negative, the
returned intervals were wrong.

Regarding `get_working_intervals_of_day`,
calling this method without
`default_interval` and calendar
set crashed.

Closes #8208
2015-08-28 12:33:46 +02:00
Christophe Simonis 416364fcca [FIX] sale: typo in field context 2015-08-28 11:03:34 +02:00
Christophe Simonis d744923b63 [MERGE] forward port of branch saas-3 up to 1783a7d 2015-08-27 18:01:52 +02:00
Christophe Simonis 1783a7d005 [MERGE] forward port of branch 7.0 up to 411a07a 2015-08-27 18:01:14 +02:00
Colin Newell 84857a3f4f [FIX] currency: simple quote in currency symbols
Escape the currency symbol to prevent javascript errors,
for instance when reconciling a bank statement
(with the special reconciliation widget)

Closes #8216
2015-08-27 17:45:59 +02:00
Pedro M. Baeza 617ef49959 [IMP] purchase: Hook for the base price of a purchase line
To be able to change the logic without copying large chunk of code
Closes #1468
2015-08-27 17:42:20 +02:00
Pedro M. Baeza cbe85f42d0 [IMP] sale: hooks for the base price and the quantity
To make it easier to override without rewritting the full method
Closes #1470
2015-08-27 17:42:20 +02:00
Nicolas Lempereur 8c77c711ee [FIX] website: escaping saved html content
Escape text nodes changed via the web editor before sending the content
it to the server controller.

It is done since the content is unescaped one time when being displayed,
and it is not done for inline style and script tags (which may be
injected by dropping a snippet) since that would break them.

replacing the solution in cdb900044.
2015-08-27 17:27:39 +02:00
Goffin Simon 96be5b404a [FIX] gamification: Refresh Challenge
When clicking on the button "Refresh Challenge" in the "gamification.challenge"
view form, all the "gamification.goal" records linked to this challenge must
be updated.

opw:647983
2015-08-27 16:41:52 +02:00
Denis Ledoux ed214a6681 [FIX] website, website_sale: alternative for images
Images should have an alternative
(the "alt" attribute") in order
to be W3C compliant (accessibility).

opw-648135
2015-08-27 15:46:14 +02:00
Denis Ledoux 399cbc7522 [FIX] account: due payments report, missing line returns
The lines breaks in the overdue payments message
(Settings > Companies > ... > Overdue payments)
were not respected.

opw-648133
2015-08-27 14:53:14 +02:00
Denis Ledoux 13010ed992 [FIX] purchase: timezone aware dates in PO emails
This rev. is related to b3e6065385a7ba5f914c258cd746b028d92801d

opw-647775
2015-08-27 14:34:58 +02:00
Nicolas Lempereur 411a07a64e [FIX] web: enable default_focus on html field
closes #8244
opw-647578
2015-08-27 13:20:41 +02:00
Goffin Simon 5a224497a9 [FIX] account: proposed invoices
In bank statement reconciliation, when selecting an other partner(with the pencil),
the possible invoices to reconcile must be suggested.

opw:647210, 647885
2015-08-27 13:16:54 +02:00
Nicolas Lempereur e2930e19a0 [FIX] web: glitch with scroll and list editable
On a first edition of a view list editable, scrolling before the first
edition might cause an issue: the editing fields are higher than they
should.

This commit solves this.

This issue stems from jQuery .offset({value}) function which is broken
if the element we want to position:

- is in absolute postionning,
- is inside a scrolled element in non static positionning,
- has not both top and left css property setted,
- has no ancestor element between itself and the scrolled not in static
  positionning.

This issue happens less (and probably not at all) in saas-6 since the
last condition is most often not met thanks to this change:
 https://github.com/odoo/odoo/commit/1ccd87a#diff-27c072074221456684bfc5f150ca0bc9R876

This issue of jquery is solved since jquery 3.0.0-alpha1:
 https://github.com/jquery/jquery/commit/2d71594

( the issue is shown in https://jsfiddle.net/wpjrnggf/ and we can see it
is solved with jQuery 3.0.0-alpha1 https://jsfiddle.net/L6ykpjgy/ )

closes #8251
opw-647622
2015-08-27 13:17:00 +02:00
Nicolas Lempereur 0c4905738e [IMP] web_kanban: enable widget float_time
Enable widget float time in web_kanban which format a float as
hours:minutes (the unit of the float being an hour).

closes #8255
opw-648068
2015-08-27 13:17:00 +02:00
Denis Ledoux 0f03699956 [FIX] auth_signup: login & name readonly if signup with token
In the case of a signup with token, the user login
already exists, and changing of login (email) is
therefore not allowed.

It's the same behavior than in the reset password
view (`auth_signup.reset_password`)

opw-648125
2015-08-27 12:22:21 +02:00
Pedro M. Baeza 675d09c005 [FIX] fields_view_get super arguments
The context argument needs to be passed as positional argument to avoid issues
when surcharging fields_view_get

Closes #7933
2015-08-27 11:07:11 +02:00
Pedro M. Baeza 6b98819948 [FIX] membership: Don't overwrite invoice lines for membership invoice
The invoice line is already linked to the invoice
as it has the invoice_id field filled in the
invoice line create method just above.

Closes #7971
2015-08-27 10:49:35 +02:00
Joren Van Onder 1db1027cd5 [IMP] point_of_sale: do more aggresive logrotate on rsyslog logs
/var/log/syslog gets filled up quicker than usual because of all the
crontab logs:
Aug 26 09:29:01 raspberrypi /USR/SBIN/CRON[21223]: (root) CMD (rm /var/run/odoo/sessions/*)
2015-08-26 15:12:40 +02:00
Joren Van Onder 02f0cbe353 [IMP] point_of_sale: keep as many scripts as possible in the odoo repo
This way we don't require a new image when we want to change eg. the
odoo configuration file.
2015-08-26 15:12:40 +02:00
Joren Van Onder f0551d2d8d [IMP] point_of_sale: get rid of avahi-daemon on posbox 2015-08-26 15:12:40 +02:00
Joren Van Onder 2a96e18a79 [IMP] hw_posbox_upgrade: show latest commit of odoo repository on posbox
Is useful when debugging, and figuring out whether or not an upgrade was
successful.
2015-08-26 15:12:40 +02:00
Joren Van Onder e7c51228f3 [IMP] hw_escpos: get rid of printer whitelist
It makes more sense to just look for usb devices that identify as a
printer and use whatever we get. This saves us time having to explain to
users how to add their particular printer to the whitelist to test.
2015-08-26 15:12:39 +02:00
Goffin Simon 4b6309f5de [FIX] product: name_search result
The function "name_search" defined on "product.template" made a search on
"product.product" name to give the "product.template" which matched with the
search. The number of results given by the name_search on "product.product" is
generally limited to 8. The problem was when for example there were 8 variants ("product.product")
with a name begining by "AA" for the same "product.template" T1 and another "product.product"
with a name begining by "AB" linked to T2. In this situation, if a name_search was made on "product.template" with a name="A",
the result got was just the the name of T1 linked to the 8 variants instead of the name of the
two templates (T1 and T2) due to the limitation.

opw:647066
2015-08-26 14:33:20 +02:00
Nicolas Lempereur 19e9163367 [FIX] google_drive: code want uncompressed data
This commit removes the request of having gzip or deflate data for two
requests to google drive API.

Previously the code worked since google api would send ungzipped data
(maybe base on urllib2 user agent or other input parameters) but after
a recent change on google part, it is not anymore the case.

closes #8243
opw-648007

note: if we did not do this, we would either need to use requests or add
custom uncompressing code for urllib2 response content.
2015-08-26 14:23:44 +02:00
Denis Ledoux 42ecf5e346 [FIX] sale: remove useless print
Introduced with rev. 3b02e3d63d
2015-08-26 13:38:38 +02:00
Denis Ledoux dedc40ba1d [FIX] sale: context can be done
This rev. is related to 3b02e3d63d
2015-08-26 13:37:31 +02:00
Martin Trigaux b4b373c965 [IMP] doc: better xpath example
The xpath syntax `"//selector` is mostly used in Odoo, is clearer on the meaning
and more flexible about view changes.
Give an example with the mostly used syntax.

Add a tip to indicate the shorter xpath syntax
2015-08-26 12:27:16 +02:00
Martin Trigaux 8f2057a1c7 [FIX] survey: allow duplicate user answer
No reason to prevent as long as remove token

Fixes #7983, Closes #8009
2015-08-26 11:53:18 +02:00
Denis Ledoux 9b489e9d7c [FIX] website_sale: deleted category on website product page
Product pages ulrs can be indexed by searches engines.
The product category can be included in the url.
If the category has been deleted, accessing
this page should still work anyway

opw-648008
2015-08-26 11:10:22 +02:00
Goffin Simon cd9a77604f [IMP] account: domain on tax_dest_id
It has no sens to map a tax by a tax included in the price because
when a tax is included in the price, the price must be computed
according to this tax.
2015-08-26 09:02:40 +02:00
Goffin Simon 503820acb6 [FIX] account, purchase, sale: included taxes
-account:_fix_tax_included_price
If a fiscal position mapped an included tax on a SO or on a PO line
then the price unit of the product must be recomputed.

-purchase: onchange_product_id test
Test that when an included tax is mapped by a fiscal position, the included tax must be
subtracted to the price of the product.

-sale:product_id_change test
Test that when an included tax is mapped by a fiscal position, the included tax must be
subtracted to the price of the product.

opw:647321
2015-08-26 09:02:39 +02:00
Christophe Matthieu b90c663702 [FIX] website: two sliders or galleries can have the same id
(because the user can edit separate part like footer or using versioning)

Backport of 394a0c8bb40ffa6eb080dd9e3bc9bce16db3d6f1.
2015-08-25 17:14:55 +02:00
Denis Ledoux 3b02e3d63d [FIX] sale*: company tax filtering
f26b94f had as goal to filter the taxes of the product
according to the company when the sale.order
was created/edited as SUPERUSER_ID
(Who ignores the record rules).

Unfortunetaly, to filter the taxes,
it used the company of the customer,
while it's actually the company of the order which
should be used.

Indeed, for instance,
partners can be shared among all companies.

It was way less simple to access the company
of the sale.order, this parameter being
not available in the on_change method signature.

This is the easiest way to solve this issue
without breaking the API / retro-compatibility.

opw-647819
2015-08-25 14:52:20 +02:00
Nicolas Lempereur 3e82c94d69 [FIX] point_of_sale,base: use context timezone for sequence
Previously when replacing time related sequence in a prefix or suffix of
a sequence, the timezone used for the time values would always be the
server's timezone.

With this fix, the context timezone is used if available (UTC is used
otherwise).

closes #8159
opw-646487
2015-08-25 14:08:17 +02:00
Martin Trigaux 1f57c9a5a6 [FIX] website_mail: do not reveal full email address in contact name
When subscribing a document, a partner is created based on the email address.
Instead of using the email address as the name (which is a bit too spammer
friendly), only keep the first part of the email address as a name.

Following discussion https://www.odoo.com/groups/59/13640169
2015-08-25 10:02:00 +02:00
Denis Ledoux 2d3973481f [FIX] point_of_sale: Sales details products translations
In the Sales Details report, the products were
not translated in the user language.

opw-647700
2015-08-24 18:27:55 +02:00
Denis Ledoux 802d1abe7a [FIX] account: invoice lines amounts must be rounded when converted to journal items
This revision is related to cfbd086b09.
This is the same use case than above, but with a different
currency than the one of the company, for the field
`amount_currency` this time.

Closes #8135
opw-647639
2015-08-24 18:18:01 +02:00
Denis Ledoux 9a9720ac14 [FIX] sale: in a SO line, changing uom qty must change uos qty
This is a regression from rev.
1cedcf6abb

Not updating the product uos qty on updating the uom qty
is wrong, and it has multiple side-effect.

The SO line margin not being correctly recomputed
when changing the quantity is one of them.

opw-647902
2015-08-24 18:07:24 +02:00
Goffin Simon 6947313cd0 [FIX] purchase: customer lang
Introduced by f7f18ba5b1
The lang of the customer must be used.
In the drop shipping use case (order.location_id.usage == 'customer'), the customer
is in the destination address of the order (order.dest_address_id).

opw:647628
2015-08-24 11:37:09 +02:00
Denis Ledoux 772112e8d0 [FIX] stock: warehouse rename with missing operation types
It wasn't possible to rename a warehouse if one
of its picking types (except `In Type`) was
not set

opw-647815
2015-08-24 10:15:20 +02:00
Goffin Simon 256978195b [FIX] website_mail: action_edit_html
Introduced by 9abf7a2010
When clicking on the many2one edition button of the field "email_registration_id"  in the
"event.event" view form, the return action id was not available in the action.

closes #8147
opw:647698
2015-08-24 09:11:00 +02:00