Commit Graph
103913 Commits
Author SHA1 Message Date
Nicolas Lempereur 3002a8dd09 [FIX] lunch: typo in xml_id from 8641681 2016-01-07 11:13:18 +01:00
Yannick Tivisse 8641681400 [IMP] Lunch: Archive products
Add a stat/toggle button on form view
Add a stat/toggle action on tree view
2016-01-07 10:53:32 +01:00
Denis Ledoux 0b9fbc67bb [FIX] purchase: prevent write on the related stock.location
`default_location_dest_id_usage` on `purchase.order` is
used only for an attrs domain on the field
`dest_address_id` in the purchase order form.

There is therefore no worries to set it as readonly,
it won't break the feature he has been added for.

Besides, this will prevent the useless write of the
same field value on the related `stock.location`
when saving the purchase order.

This is important to prevent the useless write
on `stock.location`, as users might have the rights
to create/edit purchase orders without having
the write access to the stock locations.

opw-660736
2016-01-07 10:29:49 +01:00
Christophe Matthieu 7fcce928f3 [FIX] web_editor: allow custom template for html_frame field 2016-01-07 09:52:56 +01:00
Mitali Patel fe4f8405f6 [IMP] payment: added missing payment methods from settings 2016-01-07 09:10:51 +01:00
rap-odoo e64fb37679 [FIX] product: "Products" filter now includes stockable products 2016-01-07 09:10:29 +01:00
Goffin Simon da03d97003 [IMP] account: test_product_id_change
Forward port of c4fb2c2 in new api
2016-01-06 23:18:54 +01:00
Yannick Tivisse d0e58a647d [FIX] website_quote: Take the template order line description if the
product is defined on the template

Also, implement 'back' button in quote template frontend edit mode
2016-01-06 16:58:19 +01:00
Joren Van Onder 17bb5fd374 [FIX] point_of_sale: fix forward port related issues
Fix 697739d, 682e660, da9275a and 697739d which where forward-ported in
8b4f052a38.
2016-01-06 16:55:59 +01:00
Mansi Trivedi ba2b37d3b9 [IMP] crm: CRM Lost Reason should be translatable. 2016-01-06 16:46:24 +01:00
Joren Van Onder 70e43b18e0 [FIX] point_of_sale: use tax_ids on the pos orderline, not the product
We have taxes on pos.order.line and we have taxes on the product of the
`pos.order.line`. There was no real consensus in the POS about which
taxes to use. As long as they're the same it doesn't cause issues, but
if someone where to change the taxes on a product which is used in an
open `pos.session` things will start going wrong.

When closing the pos.session amount_total of the `pos.order` in question
will not equal tax `account.move.lines` + product
`account.move.lines`. The reason for it is that we use the taxes on the
`pos.order.line` for the tax account.move.lines, whereas amount_total
used the taxes on product.

This fixes the problem by always using the tax set on
`pos.order.line`. This tax should be set only once through
`_order_line_fields` during orderline creation. After that it shouldn't
change. Therefore `pos.sessions` won't be affected by changes to taxes
of products anymore.

opw-660765
2016-01-06 16:45:28 +01:00
Christophe Simonis e502b3ea1f [MERGE] forward port of branch 9.0 up to 833fe49 2016-01-06 16:09:34 +01:00
Jeremy Kersten e9fc7353d2 [FIX] website_hr_recruitment: recruitment form customization
This commit is related to the PR #9515 and the continuation of 67b1be7f57
2016-01-06 15:43:26 +01:00
Nicolas Lempereur dccecaf11f [IMP] web_editor: use unicode number for FontAwesome controller
In some non-usual circumstances, using unicode in controllers can lead
to issue. For example on a terminal using C encoding (instead of the
mighty UTF-8) werkzeug might use sys.getfilesystemencoding to encode the
request URL which will fail with UTF-8 inside.

This commit change the URL character of the font awesome controller to
UTF-8, but keep the old way since every sent mail might still use it.

There is the overlap of character 0 to 9 which are overidden in this
commit by unicode code 0 to 9, but these were not used in font-awesome
anyway (or these are not even visible ASCII characters).

closes #9572
2016-01-06 15:31:03 +01:00
Yannick Tivisse e6c35bc4de [IMP] hr: renamed hr_department description to 'Department'
When creating a department, a default message appears in the chatter
that says "HR department created". It is misleading because the
department is not necessarily HR.
2016-01-06 15:15:53 +01:00
Anand Kansagra 83a35fa118 [IMP] sale: chaned default value of track_service
From 'Timesheet' to 'Manual' if service and 'Invoice Policy' is 'Reinvoice Costs'.
2016-01-06 14:58:00 +01:00
Anand Kansagra 4cc256182f [IMP] sale: changed 'cost' invoice_policy label
Label changed from 'Invoice based on time and material' to 'Reinvoice Costs'.
2016-01-06 14:57:14 +01:00
Anand Kansagra be88ef914a [IMP] sale: Move 'Invoice Policy' and 'Track Service' options into 'Sales' tab. 2016-01-06 14:56:51 +01:00
Anand Kansagra 71336afe10 [IMP] sale, purchase: Add tooltips in the product form view. 2016-01-06 14:56:48 +01:00
Cedric Snauwaert 833fe492d1 [FIX] account: add buttons on journal entries and journal item to see reconciled entries 2016-01-06 14:46:19 +01:00
Martin Trigaux bf6b106044 [FIX] doc: remove reference to website_less
No more module website_less needed to create a theme
Fixes #8182
2016-01-06 14:29:38 +01:00
Goffin Simon b935289acc [FIX] sale_analytic, sale_timesheet: _compute_analytic
The default domain set in _compute_analytic didn't allow to recompute
SO lines linked to several analytic lines because unit_amount is always
greater or equal to zero. The idea is to recompute the quantity delivred
on SO line linked to analytic lines with amount<=0 (which means that this
is a cost for the company, an expense or a refund).

opw:660812
2016-01-06 12:41:04 +01:00
Nicolas Lempereur 3450401afe [IMP] website{,_forum}: editor for forum or designer
With de5a00ac9 the editor would be loaded on the forum, but it would
then always be loaded on the website which might not be for the best.

With this change, the editor assets will be loaded on the website:

- if the viewer is part of the "base.group_website_designer" group,
- if we are on a forum page,

better solution for #9402
2016-01-06 11:52:50 +01:00
Goffin Simon 3756969517 [FIX] account: total_invoiced in res.partner
"total_invoiced" must only take customer invoices into account because
when you click on the button "invoiced" in the partner view form
you just see the customer invoices.

opw:665574
2016-01-06 11:46:31 +01:00
qsm-odoo 49b938a0f1 [FIX] web_kanban: useless breaking-layout o_kanban_mobile
Remove fixed width for kanban records in .o_kanban_mobile (in grouped
view the records overflowed their columns).

Note: this class seems useless and wrongly used by templates. This
should be removed in master (remove the class from templates and
include its less rules in all kanban records for specific classes).
2016-01-06 11:03:55 +01:00
Cedric Snauwaert a81d6121aa [IMP] hr_expense: improve expense report by grouping by employee-state-currency 2016-01-06 10:08:11 +01:00
Nicolas JEUDY eb8c674d63 [FIX] website_portal: bad xpath
"//div[@class='o_my_sidebar']" is not valid and fails when evaluated.
Could have been replaced by "//div[contains(string(@class),"o_my_sidebar")]" but
as needs a view modification, using an id is better for future inheritance.

Fixes #10279
2016-01-06 09:29:33 +01:00
Nicolas JEUDY ac444e90a8 [CLA] corporate signature for sudokeys 2016-01-06 09:29:33 +01:00
Nicolas Martinelli fcab79217a [FIX] purchase: link extra move to PO line
Commit ec949ad5 links the extra move to the Sale Order through the
procurement. To be consistent, we also have to link the extra move to
the Purchase Order.

The original issue is that any extra move is not taken into account in
the received quantity calculated.

opw-665398
2016-01-06 08:22:59 +01:00
Martin Trigaux 136c563bc6 [FIX] mass_mailing: duplicated regex 2016-01-06 08:20:48 +01:00
Martin Trigaux c7d281d846 [FIX] auth_signup,mass_mailing: export added terms
Forward port added a few terms, reexporting, removing bad ones
2016-01-06 08:20:48 +01:00
Martin Trigaux 5ca043b86c [FIX] mail, purchase: forwardport
Missing parts, I only blame rerere
2016-01-06 08:11:45 +01:00
Cedric Snauwaert 4e585fab41 [FIX] account: show reconcile button on account form view 2016-01-05 18:45:53 +01:00
Josse Colpaert 84035b3a1f [FIX] stock_calendar: remove timezoning
Commit 64e1c28e3 introduced timezoning in resource_calendar in resource already.
This broke the stock_calendar module, but as such, the timezoning in the module
is not necessary anymore.  All dates calculated from the times in the calendar
are calculated back to UTC and the results are without timezone in UTC.  That way,
timezones are also not needed for calculating the leaves.
2016-01-05 18:32:07 +01:00
Martin Trigaux 8b4f052a38 [MERGE] Forwardport of branch saas-6 up to c649bb0df 2016-01-05 18:28:06 +01:00
Christophe Simonis 8064379617 [FIX] crm: correct lead kanban color 2016-01-05 18:23:34 +01:00
Christophe Simonis def81c5d48 [FIX] gamification: force empty context for action
The context has been removed by commit
abf30a7f15 but need to be forced as empty
for existing databases.
2016-01-05 18:10:47 +01:00
Christophe Simonis eaa554f3dd [FIX] project: correct view.
Invalid (but still xml-valid) view infortunatly created by
auto-resolution of conflicts during a previous forward-port
2016-01-05 18:06:07 +01:00
qdp-odoo c649bb0df6 [FIX] account: changing the account on invoices doesn't reset the unit price anymore if it was set (and modified previously by the salesman) 2016-01-05 17:47:55 +01:00
Josse Colpaert d9b78015f4 [FIX] Remove timezoning in stock_calendar
Commit 64e1c28e3 introduced timezoning in resource_calendar in resource already.
This broke the stock_calendar module, but as such, the timezoning in the module
is not necessary anymore.  All dates calculated from the times in the calendar
are calculated back to UTC and the results are without timezone in UTC.  That way,
timezones are also not needed for calculating the leaves.
2016-01-05 17:47:08 +01:00
Eric Antones 1d97ddfd81 [FIX] Collateral effect merging query params
The keep_query() function has to **keep** all or selected query parameters
or add new ones but not change them by merging those with the same name.

That unnecessary parameter merge breaks the *Change language* feature in the
website_sale module when *Website -> Customize -> Product Attribute's filters*
is enabled and there's 2 or more select type attributes created and at least
one of them is selected.

Merging params was added in:
* 8.0: commit 7759af7c4c
* 9.0: commit daf8bdf688
2016-01-05 17:21:01 +01:00
Eric Antones 2f056ae032 [CLA] Add Odoo Corporate Contributor License Agreement signed 2016-01-05 17:21:01 +01:00
Christophe Simonis 5f860a4433 [MERGE] forward port of branch saas-7 up to 31ce19b 2016-01-05 17:05:17 +01:00
Denis Ledoux c043025e5d [FIX] event_sale: prevent useless write on the product
`event_sale` adds an onchange on the `product_id` of the
sale order lines, which returns values for the fields
`event_type_id` & `event_ok`, which are used for an attrs
domain on the fields `event_id` & `event_ticket_id` in
the sale order line form (dialog). `event_type_id`
& `event_ok` are related to `product.product` fields,
in addition.

Changing the partner of the sale order triggers
the onchange on the lines, which triggers
the onchange of the `product_id`.

As these two fields `event_type_id` & `event_ok` were
not in the sale order lines tree view, as readonly,
they were passed to the write operation when
saving the SO, therefore writing on the product (the
same value than before, in addition).

Indeed, if an onchange returns values for fields
that are reandonly in the view, these are ignored
when saving/writing. However, if the onchange
returns values for fields that are not in the view,
these values are nevertheless passed to the write operation,
even if there was actually no change.

This behavior should probably change, that if an onchange
returns values for fields that are not in the view, these
are ignored, either when saving the record, either when
returning the result of the onchange.

Either way, these are risky changes, that we prefer to avoid
in a stable release such as 9.0. As a workaround,
we therefore add these fields in the sale order line tree view,
as readonly, so they are properly ignored when saving
the record.

This is important to avoid this write on `product.product`, as
users can have the write access to the `sale.order` without
having access to the `product.product`
(e.g. `Sales > See own leads` group)

opw-660716
2016-01-05 16:21:06 +01:00
qdp-odoo 6c9a874635 [FIX] account, l10n_nl: code 9999 was already existing in l10n_nl, raising a unique constraint(code) upon the chart installation if the code_digits field set on the company is 4 (account code length = 4 digits). Fixes ticket 660636 2016-01-05 16:16:16 +01:00
Christophe Simonis 31ce19bd7c [MERGE] forward port of branch 9.0 up to 97e87a4 2016-01-05 15:51:49 +01:00
aymericfernez 97e87a42cd [CLA] signature for Aymeric FERNEZ
Closes #10181
2016-01-05 14:47:43 +01:00
jeffery chen fan da17c98833 [FIX] base: China address format
Should be in one line
Closes #10217
2016-01-05 14:35:56 +01:00
Mohammed Shekha edf565881c [FIX] web: refresh in form view when first view mode is calendar
When you are in form view and came from calendar, a screen refresh
throwed an error from fullcalendar lib. Also when going back to the
calendar view, it would not be loaded.

It is due to fullcalendar not being rendered if it is not visible, and
other part of the Odoo code are dependent on it having been rendered.

This commit hide the calendar after having been rendered.

closes #10253
opw-659314
2016-01-05 14:25:57 +01:00
Martin Trigaux 77aee2d78f [FIX] website_forum: escape link content
The links present in forum messages are parsed to integrate "nofollow"
attribuate in it.
In case the content of the link contains some special char (e.g. <a>foo)bar</a>)
the regex fails as it interprates the content as an invalid expression.
2016-01-05 12:34:31 +01:00