Commit Graph
107583 Commits
Author SHA1 Message Date
Yannick Tivisse 57e2936fcc [IMP] website_sale: add id on cart line qty html block
Used to be selected in website_sale coupon in order to hide the qty selector on the ecommerce
2017-01-31 13:16:20 +01:00
Yannick Tivisse 4c58f96c5d [FIX] website_sale: Call SO lines write and unlink as ORM commands
That way, the coupon reward line validations methods are still called on the ecommerce
2017-01-31 13:16:20 +01:00
Yannick Tivisse 3aafb6f8e3 [IMP] base: Admin and Public partners are customers
In order to be able to use the coupon mechanism with them. That's because a coupon can only be used for customers
2017-01-31 13:16:20 +01:00
Yannick Tivisse adb484a1b5 [IMP] web: add a 'close' terminology on FieldBooleanButton widget
This will be used on a sale_coupon_program
2017-01-31 13:16:20 +01:00
Martin Trigaux 7b1d3dc030 [FIX] crm: no self-closing span
This is invalid HTML and is not accepted.
Self-closing is tolerated (not required) on some elements but span is not one
of them.
https://www.w3.org/TR/html5/syntax.html#start-tags

This produced error on the Transifex parser, not counting self-closing span as
a closed tag.
cf https://www.transifex.com/odoo/odoo-10/translate/#fi/project/96753026

Done in master to avoid breaking source translations.
2017-01-30 08:57:20 +01:00
Yannick Tivisse 3f9a5fbd2e [FIX] website_sale: Active the correct variant group 2017-01-27 13:55:11 +01:00
Jérome Maes 3f7d90db65 [FIX] account: make invoice report reprint from attachment again
A few month ago, based on unclear specs, something was merged.
Today, we come back, since it does not do what we want. We do
not take into account the fact that between 2 printings, the user
has changed its report layout or its data company.

Initial commit : dccfdb0ddb
2017-01-27 10:24:07 +01:00
Yannick Tivisse 5a7908fbce [FIX] report: Display an arrow on the 'Change Report Template' link 2017-01-26 13:09:01 +01:00
Yannick Tivisse f811b88a63 [FIX] sale: Add a placeholder for terms and conditions 2017-01-26 13:08:57 +01:00
Yannick Tivisse 795b1887e5 [FIX] sale: Remove 'Apply Automatic Rates Update' link
Such settings should be direclty checked in accounting.
2017-01-26 13:08:53 +01:00
Yannick Tivisse b712701d18 [FIX] crm: Resolve wording issue
Purpose:
emails: button setup your domain alias has an odd bahavior: redirecting to base.config.settings. Like in "generally speaking", I feel like some kind of highlighting the field to set up would be nice, or reproduce the setting item in CRM, or open a wizard
2017-01-26 13:08:49 +01:00
Yannick Tivisse b10f96007f [FIX] website_twitter: Fix broken links to twitter app configuration 2017-01-26 13:08:45 +01:00
Yannick Tivisse e39926004e [FIX] account: Open Docsaway documentation in a new tab 2017-01-26 13:08:31 +01:00
Denis Vermylen 9ddd5e0cf1 [FIX] sales_team: correct sale dashboard display
On kanban records in the sales dashboard:
the display got modified and links on the right side were taking 2 lines
instead of 1, Going to a new line after the number.

display: "block" needed to be "inline-block" -> added to sales_team less file.
2017-01-26 11:48:50 +01:00
Yannick Tivisse b7f955baa2 [FIX] l10n_eu_service: Add the possibility to reconfigure the EU MOSS Taxes 2017-01-26 10:15:41 +01:00
Yannick Tivisse 96e6e31c19 [FIX] account: Reorganise entry locking dates into a box in account settings 2017-01-26 10:15:41 +01:00
Christophe Simonis 7b2924253b [MERGE] forward port branch 10.0 up to 7427825790 2017-01-25 16:27:38 +01:00
Nicolas Lempereur 7427825790 [FIX] mail: don't linkify removed mention
If after inserting a mention (eg: `@Guy`) and we eg. backspace and
change it (eg: to `@GuyFawkes`) the `@Guy` mention will still be
linkified but the partner is not subscribed.

This happened because the linkifying was not requiring a space to follow
the mention, but when getting the used mentions (and commands, ...) in
the message they were required (unless the mention was exactly at the
end of the message).

With this commit, a space is always required after a mention for it to
be working.

opw-705267
2017-01-25 15:47:30 +01:00
Christophe Simonis 6a7db30508 [MERGE] forward port branch saas-11 up to f23394b83a 2017-01-25 15:01:29 +01:00
Yannick Tivisse 62b1af0b08 [FIX] account: Bring back the 'Lock date' options
It was accidently removed with the new settings
2017-01-25 14:01:23 +01:00
Pierre Masereel f23394b83a [FIX] stock: stock_inventory_line onchange product
If you make an inventory adjustement in mode 'select products manually'
and you add a new line with a product having a different unit of mesure
than the default one, but in the same unit of mesure category than the
default one, the unit of mesure on the line doesn't change because both
are in the same category.

This bug is caused by an 'onchange' which is triggered when the
'product_id' or 'product_uom_id' has been changed. And so we cannot
force to change the value to the product one, because we should still be
able to make an inventory in 'kg', if the unit of mesure is in 'g'.

So to fix this bug, we have set the 'onchange' only on the product_id to
set the unit of mesure set on the product when we create a new line or
change the product of a line. We removed the onchange ont the unit of
mesure, because it was only checking that the unit of mesure is in the
category of the product unit of mesure category, but it's always true
has there is a domain set on the field unit on mesure by the onchange
on product_id
2017-01-25 13:45:29 +01:00
Christophe Simonis 74c6e895f6 [MERGE] forward port branch 9.0 up to 3e31dc0ba4 2017-01-25 13:14:38 +01:00
Christophe Simonis 3e31dc0ba4 [MERGE] forward port branch saas-6 up to 09f7916f48 2017-01-25 13:04:50 +01:00
Christophe Simonis 09f7916f48 [MERGE] forward port branch 8.0 up to 9d535ee2c7 2017-01-25 12:56:42 +01:00
Josse Colpaert 1bf2173240 [IMP] mrp: ensure_one in cal_price
We want to ensure not to mix the price calculation
of multiple MOs when posting inventory.
2017-01-25 12:11:55 +01:00
Luis Torres e54fd92282 [IMP] l10n_mx: Removed note description in data to fiscal position
This value is not required in Fiscal Regime, and if is present, this is
printed in the invoice report when is used like fiscal position on
invoice.
2017-01-25 09:59:06 +01:00
Nicolas Martinelli 6cfd85bae2 [FIX] sale_timesheet: lost breadcrumb
On a SO, click on the stat button "Project". It opens the form view of
the corresponding project, but the breadcrumb is lost.

opw-705193
2017-01-25 08:28:02 +01:00
Aristides Caldeira b7294754cc [CLA] signature for aricaldeira
Done at #15210
2017-01-25 08:25:29 +01:00
Dileepa Ameresekere 296f9cbe3a [FIX] doc: correct typo fix
Closes #15037
2017-01-24 18:20:12 +01:00
Cédric Pigeon (ACSONE) b307514eca [IMP] account: allow override
Extract the move creation into a different method to allow override.
In case the date or journal needs to be modified.

Closes #15179
2017-01-24 18:15:46 +01:00
andreparames 1d089833b4 [FIX] init: enable evented based on socket
Don't enable evented mode unless gevent is enabled.
Previous code was activating evented mode as soon as gevent is imported which
may happen in different scenario but is not enough to assume the GeventServer
is actually running.

Closes #13463
2017-01-24 18:07:38 +01:00
Jairo Llopis 9d535ee2c7 [FIX] mail: check all parameters are set
Since `model` is not a required field, the invalidation may crash when one is
missing.
It should never happen than a mail.message has a res_id but not a model as it
makes no business sence.
However it is possible than a message temporarly misses one of the two, e.g:

```
self.model = False
self.res_id = False
```
will trigger two writes and will crash at the first.

Above code should probably be refactored to have only one write but this commit
fixes a regression introduced at 8f1c2bfc (the above code did not crash).

Closes #15199
2017-01-24 16:56:33 +01:00
Christophe Simonis d87ab049e2 [FIX] mail: require res_model_id on followers
The flag has been forgotten with 94d2b97da4
2017-01-24 16:55:51 +01:00
sergio 28ec23e828 [FIX] account: fallback on missing template
template contains the mail template to render and is the result of the call to
`self.env.ref('account.email_template_edi_invoice', False)`

If the template does not exists (deleted), template is `None` and the action
rendering crashes.
While it is not recommended to delete master data, it is still possible to use
custom mail templates.

Closes #15204
2017-01-24 16:50:55 +01:00
sergio 333f012e25 [CLA] signature for sergiocorato
Done at #15204
2017-01-24 16:50:39 +01:00
Hoang, Diep Huu b4c3ac8d48 [CLA] signature for anothingguy
Backport of 2cf3381b to 9.0 as expressed in #13971
2017-01-24 16:15:36 +01:00
Goffin Simon 28b8b9ac37 [FIX] sale: _get_tax_amount_by_group
When computing the amount tax by group, the taxes which affect base of
subsequent taxes must be taken into account and added to the base amount for
only one product.

opw:703524
2017-01-24 15:39:09 +01:00
Stefan Rijnhart d0ea652221 [FIX] portal: set a company for portal without one
The field company_id is not required on the res.partner and is used when the
portal user is created for portal access.
If the partner as no comapny set, the creation crashes (required on the user).

Use system default company, with possibility for overwrite.

Closes #15030
2017-01-24 13:39:47 +01:00
Martin Trigaux 81808d1459 [FIX] base_import: use correct field name
The template example products.xls (used in the import planner) references the
field "Vendors" (seller_ids) but was misspelled "Vendor" (renamed during new API
migration).
The file could no longer be imported.

Fixes #15159
2017-01-24 13:25:40 +01:00
Nicolas Martinelli 1aa7af230f [FIX] website_sale: Last Online SO
- Log in on the eCommerce
- Add a product in the cart
- Log out
- Log in again

The previous cart is not retrieved, and a new one is created.

opw-704646
2017-01-24 13:09:26 +01:00
Nicolas Lempereur f519b98481 [FIX] mail: hidden chatter tooltip can cover content
With 72dfcae2a we have an envelope icon in the chatter with the
information on the sent mail.

When not displayed, the tooltip is hidden using opacity:0 so if
something is underneath it it becomes unclickable.

This commit makes the tooltip disappear in this instance.

opw-705205
2017-01-24 12:49:36 +01:00
Hoang, Diep Huu 2cf3381b23 [CLA] signature for anothingguy
Done at #13971
2017-01-24 10:53:15 +01:00
Daniel Dico 94807753e7 [FIX] anonymization: escape table and field names
Same as 1b9d0fa481

Closes #15187
2017-01-24 10:32:03 +01:00
Pedro M. Baeza 912dd83403 [FIX] base: update Spanish states
According official country source (BOE) some states changed their denomination
to allocate local language spelling.
https://www.boe.es/diario_boe/txt.php?id=BOE-A-2011-11606

As there's a lot of people that still uses the old one, the best solution is to
include both words in the name of the state, and thus user can search by any of
them.

"Melilla" code is also incorrect according used nomenclature but can not be
modified in stable version.
Futher commit can correct it with a migration script

Closes #15166
2017-01-24 10:28:59 +01:00
Joren Van Onder 5ce83b872c [FIX] point_of_sale: avoid scrollbar on main window
Scrollbar appeared in Firefox (at least 50.1.0 and up). Related to
depending on non-standard behavior when setting height on a table. For a
detailed explanation see f0eeed93dc.

In this case we can simply ignore overflow on the main POS window since
the height difference introduced is only a couple of pixels.
2017-01-23 17:33:16 -08:00
Joren Van Onder f0eeed93dc [FIX] point_of_sale: scroll contact list in Firefox and Edge
The POS uses tables to do some of it's layout. It also sets 'height:
100%' on a lot of these tables in an attempt to restrict their
height. The CSS standard however defines the height property on a table
as follows:

"A value of 'auto' means that the height is the sum of the row heights
plus any cell spacing or borders. Any other value is treated as a
minimum height." [1]

Chrome and Safari seems to handle this height property in a way that it
does in fact restrict height. The behavior of Firefox and Edge however
is more in line with the spec, and in these browsers table height is not
restricted by this property.

Because of this the contact list was not scrolleable in those
browsers. To resolve this we stop relying on non-standard behavior by
displaying the relevant contact list elements as regular block
elements. Additionally, we now have to recompute the height of the
client list whenever we show/hide the client details, something that
wasn't necessary before.

[1] https://www.w3.org/TR/CSS21/tables.html#height-layout

Fixes #11020
2017-01-23 12:09:27 -08:00
Joren Van Onder cb597806ec [FIX] point_of_sale: force numpad to appear next to actionpad
The sizes of these UI elements are all fixed and non-responsive and
everything is supposed to fit. Currently however Firefox (at least
50.1.0 up to nightly 53.0a1) is computing the width of a <br> element to
be 0.0166626px, forcing the numpad to wrap to the next line. This forces
the numpad to be 216px wide (width of 4 buttons at 54px each).
2017-01-23 12:04:10 -08:00
Denis Ledoux de6c4f7037 [FIX] project: website live chat link in the planners
These links are links to the Website live chat app description,
not our actual livechat support.

Besides, we currently do not make support through the
livechat.

opw-705614
2017-01-23 17:32:44 +01:00
Daniel Dico 1b9d0fa481 [FIX] anonymization: escape table and field name
to avoid postgresql reserved keywords.
fields like fetchmail_server.user or mail_mail.references uses reserves keywords and must be escaped

Closes #15177
2017-01-23 17:28:16 +01:00
Odoo Translation Bot b164b56ebf [I18N] Update translation terms from Transifex
Interrupted during pull API limit rate
2017-01-23 16:44:17 +01:00