Commit Graph
106583 Commits
Author SHA1 Message Date
Jeremy Kersten c141fbb46f [IMP] website_crm_partner_assign: add own opportunities management
Allow partners with grades to add their own opportunity in their own pipe.
Until now, it is their saleman which import the opp in csv.
2016-11-21 11:22:05 +01:00
Jeremy Kersten 06fa5c64e0 [IMP] website,website_sale*: improve ui on small device, and force checkout
- Remove 'optional' informations in small screen

- Disable ecom popup on xxs device

- Don't disturb customer during checkout, we remove the footer and extra right
  column during the checkout step, address step and payment step.
2016-11-21 11:13:51 +01:00
Jeremy Kersten 5bd04fd502 [FIX] website_sale: cleaning view
Confirmation page - remove useless label
Don't center total in xs width
Don't display wizard in xs width
Remove dublicate border in xs width
Show sorted by label

task-28865
2016-11-21 11:13:51 +01:00
Jeremy Kersten 44911af6fd [IMP] website_sale: disable zoom on xxs device by default 2016-11-21 11:13:51 +01:00
fwi-odoo 9a3ad41cfa [FIX] web: change selection color in the correct file
Fix commit 537b919ec2
Don't change the lib file directly.
2016-11-21 10:53:02 +01:00
fwi-odoo 537b919ec2 [IMP] web: darker highlight selection 2016-11-21 09:45:14 +01:00
Christophe Simonis 2d26229052 [MERGE] forward port branch 10.0 up to ea675d8 2016-11-18 18:29:23 +01:00
Christophe Simonis ea675d8b76 [MERGE] forward port branch saas-12 up to ff7f3d6 2016-11-18 18:03:47 +01:00
Christophe Simonis ff7f3d6f7e [MERGE] forward port branch saas-11 up to 4e7eda8 2016-11-18 16:50:20 +01:00
Christophe Simonis 4e7eda8b85 [MERGE] forward port branch 9.0 up to 95abb22 2016-11-18 16:46:53 +01:00
Christophe Simonis 95abb2224d [MERGE] forward port branch saas-6 up to f163f76 2016-11-18 16:34:52 +01:00
Christophe Simonis f163f76b85 [MERGE] forward port branch 8.0 up to 205b554 2016-11-18 16:06:49 +01:00
Jeremy Kersten 962ff5b4bf [FIX] website: compress_html is obsolete
Partial revert of #2013dc38

Schema is not updated, but it can break if views are not updated.
2016-11-18 15:50:28 +01:00
qdp-odoo 18c3d09da5 [FIX] account: add back the 'Unknown Partner' line in the aged receivable/payable reports 2016-11-18 15:31:44 +01:00
Richard Mathot 07de6ad491 [FIX] website_livechat: don't crash if user has no image set 2016-11-18 14:58:45 +01:00
Odoo Translation Bot eed11c57bb [I18N] fetch es_AR terms
The translations have been removed but was not fetch due to --minimum-perc argument
2016-11-18 12:54:21 +01:00
Dhawal Limbuwala 1776e9c61d [FIX] web: Uniformize fonts in community web client
Purpose:
In the many2one dropdowns the font is not the same than elsewhere in the webclient
2016-11-18 11:41:24 +01:00
Jeremy Kersten 2013dc387d [FIX] website: compress_html is obsolete
This option is no more implemented since the refactoring of ir.qweb
Gzip (in nginx) do the same and better...
2016-11-18 10:03:49 +01:00
Jeremy Kersten 59e816f17f [FIX] web: don't set monokai as theme for widget 'ace'
It was already working without it since commit e01837d2f4
2016-11-18 10:03:48 +01:00
Jeremy Kersten 02c0daf9dc [FIX] website_crm_partner_assign: fix assign_salesman_of_assigned_partner function
Old code return the user of the partner and not the saleman ! Thanks to the migration :/
2016-11-18 10:03:48 +01:00
Jeremy Kersten a55ee3858c [FIX] *: convert action server to new syntax
Use record / records instead of deprecated locals
2016-11-18 10:03:48 +01:00
Damien Bouvy 205b5542ca [FIX] payment_paypal: accept PDT requests on /dpn route
It seems Paypal does not always send the same responses on auto-return
even when PDT is off. Although not reproducible on a Paypal sandbox,
sometimes the system auto-return to /payment/paypal/dpn without any
meaningful POST data. This seems to only happen with new accounts
that use the 'Hermes' web application of Paypal.

The correct thing to do would be to add a new field on the paypal
payment provider for PDT token and make the PDT flow available
to users; but this is a stable branch and this fix is already
sufficiently delicate. This shall be done in master though.

From this revision on, users can then activate PDT on their paypal
account, set the PDT token as an ir.config_parameter value (WITH
GROUP RESTRICTION SET TO ADMIN/SETTINGS GROUP!!!) and the system
will process these requests correctly.
2016-11-18 09:46:37 +01:00
Denis Vermylen (dve) a799bf328d [FIX] sale_mrp: add flexibility to tests
test_sale_stock_lead_time.py compares dates and expect them to be the same.
Sometimes, the dates would differ by a second, because they are generated at
different moment during the execution.

This commit adds a tolerance of 1 second when comparing the dates.
(and changed from comparing Datetime strings to comparing timedeltas)
2016-11-18 01:12:40 +01:00
Denis Vermylen (dve) 607741fa5d [FIX] sale_stock: add flexibility to tests
test_sale_stock_lead_time.py compares dates and expect them to be the same.
Sometimes, the dates would differ by a second, because they are generated at
different moment during the execution.

This commit adds a tolerance of 1 second when comparing the dates.
(and changed from comparing Datetime strings to comparing timedeltas)
2016-11-18 01:12:40 +01:00
Christophe Simonis f05e8655ee [FIX] project: correct tour (bis)
Automatic tour should not open the kanban record directly in edit mode.
This "edit" link wasn't working and has been fixed by 2e0a300016.
2016-11-17 19:27:28 +01:00
Denis Ledoux 4769ed4eb7 [FIX] base: unique bank account number constraint too restrictive
There is a multi-company record rule on `res.partner.bank`,
meaning you cannot see the bank accounts of other companies.

Making a constraint on `sanitized_acc_number` alone prevent
to create a same bank account into different companies,
while you cannot see this bank account from the other
companies.

In this case, the user tries to import its bank statement,
and it contains a bank account which already exists
in the database but for another company than the one
he is currently importing the statement, and,
 - it cannot find it because of the multi-company rule,
 - it cannot create it because of the constraint

The constraint must take into account the company

opw-690969
2016-11-17 19:05:00 +01:00
Denis Ledoux de95657514 [FIX] website_crm_partner_assign: onchange_assign_id new API conversion oversight
You are not supposed to write anything in an onchange,
the result of the onchange must be assigned in the given fields
of `self`

This is an oversight during the migration to the new api of the module
in the below revision:
053982f48d

opw-694053
2016-11-17 18:32:06 +01:00
Christophe Simonis 639421e8a5 [MERGE] forward port branch 10.0 up to fb77309 2016-11-17 18:13:45 +01:00
Christophe Simonis fb773091d8 [FIX] project: Correct tour
Remove useless step as we are already in edit mode after clicking on
edit action link
2016-11-17 17:50:06 +01:00
qsm-odoo 18e1ecd019 [FIX] website: stop making parallax content disappear on save
Depending on the context, the s_parallax snippet content was not
showing after save. This was because the HTML is prettyfied on save
and so spaces are inserted around the .oe_structure, making it break
over the next line.

This commit removed the vertical middle alignment of the .oe_structure
block (so back like it was before v10.0), allowing to fix the problem.
2016-11-17 17:24:08 +01:00
Devendra Kavthekar 8872800e75 [IMP] sql_db: Improve error message logging on database querries
Purpose:

When we have a SQL error, it's not very easy to identify the root of the crash. For example if a mandatory field is not set on a row creation, it difficult to see which field isn't correctly set as a lot of fields are not required and a lot a NULL values are present in the INSERT querry.

Specification:

Show a proper log message, with the reason (cause) of the sql error.

Behavior Modification Examples:
Some sample log after applied fix. The new line are those beginning by '+'

2016-10-25 09:59:40,208 21161 INFO ent_master odoo.sql_db: bad query: INSERT INTO "res_partner_category" ("id", "active", "color", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval('res_partner_category_id_seq'), true, 10, 1, 1, (now() at time zone 'UTC'), (now() at time zone 'UTC')) RETURNING id
+REASON: null value in column "name" violates not-null constraint
+DETAIL:  Failing row contains (27, null, null, 1, null, 10, 1, null, 2016-10-25 09:59:40.207202, t, 2016-10-25 09:59:40.207202).

2016-10-25 10:00:29,710 21161 INFO ent_master odoo.sql_db: bad query: UPDATE "res_partner" SET "parent_id"=1001,"type"='contact',"name"='Course Script',"company_name"=NULL,"write_uid"=1,"write_date"=(now() at time zone 'UTC') WHERE id IN (1)
+REASON: insert or update on table "res_partner" violates foreign key constraint "res_partner_parent_id_fkey"
+DETAIL:  Key (parent_id)=(1001) is not present in table "res_partner".

2016-10-25 10:23:28,690 21336 INFO ent_master odoo.sql_db: bad query: DELETE FROM res_country WHERE id IN (235)
+REASON: null value in column "country_id" violates not-null constraint
+DETAIL:  Failing row contains (9, 1, AL, Alabama, null, 1, 2016-10-24 10:19:58.765552, 2016-10-21 09:32:26.939607).
+CONTEXT:  SQL statement "UPDATE ONLY "public"."res_country_state" SET "country_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "country_id""
2016-11-17 16:33:57 +01:00
Goffin Simon 8a767512c7 [FIX] sale, sale_margin, website_quote: Quotation template doesn't set purchase_price
When making a SO line manualy, the purchase price is automaticaly set but with a quotation
template, the purchase price was not set.

opw:693751
2016-11-17 16:15:20 +01:00
Yannick Tivisse 34a5258534 [FIX] web: Consider currency_fields with other names than 'currency_id'
To filter the columns to aggregate, we check that the currency_fields on the column is 'currency_id'.

In fact, this is only the default field name. Sometimes it could be an another name, for example 'company_currency_id'
2016-11-17 16:08:00 +01:00
Yannick Tivisse 915bfeaf1f [FIX] web: Fix traceback for list views without any records
Comes from https://github.com/odoo/odoo/commit/df69b5bb846fda29a397bb43f74f73f795b28eea

In JS, Boolean([]) is equal true

It is always a pleasure to work with JS when you're used to python
2016-11-17 16:08:00 +01:00
Kinjal Mehta c3094640e0 [IMP] procurement,stock: Use a handle widget on procurement rules
- Hide the field in the form views
- Order by sequence then by name
- Display a handle widget on list views
2016-11-17 15:41:09 +01:00
Christophe Simonis e2fcace05e [MERGE] forward port branch 10.0 up to 13dc704 2016-11-17 15:27:29 +01:00
Christophe Simonis 13dc7041a6 [MERGE] forward port branch saas-12 up to 1ef4061 2016-11-17 15:24:36 +01:00
Christophe Simonis 1ef4061e68 [MERGE] forward port branch saas-11 up to 3b2f4e2 2016-11-17 14:48:43 +01:00
Christophe Simonis 3b2f4e244f [MERGE] forward port branch 9.0 up to 7ee09ed 2016-11-17 14:37:19 +01:00
Fabien Pinckaers 41cebc4637 [IMP] sale: quotation email template small fix 2016-11-17 13:42:42 +01:00
Christophe Simonis bcddba4e4b [FIX] fields: set attributes before accessing them
If renamed attributes are used, a warning is emit with `repr` of the
culprit field, which need attributes to be set.

Fixes #14036
2016-11-17 13:40:24 +01:00
Christophe Simonis 7ee09ed0c1 [MERGE] forward port branch saas-6 up to 6d8d7a5 2016-11-17 13:11:04 +01:00
Christophe Simonis 6d8d7a5970 [MERGE] forward port branch 8.0 up to 8e8b792 2016-11-17 12:41:45 +01:00
fwi-odoo 25888f4195 [FIX] web: Deleting items in list view does not reset min to 1
When all the items of the first list view page were deleted,
the list view was not reloaded correctly and no records were displayed.
2016-11-17 11:31:35 +01:00
qsm-odoo 48d5420d7f [FIX] mass_mailing: remove unsubscribe link from test mailing
When using the "Test Mailing" button, a sample mail was sent to a
particular mail address and a text-like unsubscribe link was added
below the mail body. This link was ugly, ununderstandable and useless
as it is test mailing anyway.

To add unsubscribe links to your mail body, use the footer blocks
which contain this kind of link (note: they are inserted by default
in all mail templates).
2016-11-17 11:06:09 +01:00
Goffin Simon 84d5216a73 [FIX] sale: vendor bill with a SO reference
If the PO and SO have the same sequence, the source document of
vendor bills and customer invoices could be the same.

opw:693991
2016-11-17 09:21:41 +01:00
Jeremy Kersten e01837d2f4 [IMP] web: remove monokai in form widget aceEditor
Keep return line in ViewMode.

Courtesy of @odony
2016-11-16 19:15:08 +01:00
Jeremy Kersten 9a8975be46 [FIX] base: add record, records in context of ir.actions
Purpose is to remove old variables in next version:
    - obj
    - object
    - cr
    - user
    - uid
    - context
    - pool
    - workflow

record = model.browse(env.context['active_id'])
records = model.browse(env.context['active_ids'])

obj, object => record
user => env.user
cr => env.cr
uid => env.user.id
context => env.context
pool => env
workflow => record.signal_workflow()
2016-11-16 18:46:01 +01:00
Denis Ledoux 483024d122 [FIX] product: _compute_currency_id multi-company
By default, the multi-company record rule on
`product.template` is disabled, meaning the products
are shared between the companies.
https://github.com/odoo/odoo/blob/10.0/addons/product/security/product_security.xml#L48

Nevertheless, the multi-company record rule on
`res.company` is well activated, and therefore
this might happen that you can see a `product.template`
for which you are not allowed to read the company.

If you attempt to read something from this company, you must
therefore do it as sudo :)

opw-693209
2016-11-16 18:38:46 +01:00
Denis Ledoux 232b0d18ac [FIX] account: oversight in forward-port.
The revision
a1d6c2d631
has been ported with an oversight:
except_orm is no longer imported in this file,
besides, the new way to raise these warnings is to
use "UserError" instead.

opw-693779
2016-11-16 17:38:06 +01:00