Commit Graph
102938 Commits
Author SHA1 Message Date
Vipul Bhatt 4dfbcecfdb [IMP] website_{portal,portal_sale,project_issue,quote} : add pager for customer documents
This commit adds controller to list documents of customer, with pager and archive
widget to sort documents. Impacted documents are : quotations, sale order,
invoices, and issues.

Portal breadcrumd is improved too : add the home icon, and keep the query
params when using archive widget.

Some editable zones were added to templates, allowing people to customize
their frontend portal.
2016-05-27 10:50:34 +02:00
Ravi Gadhia a999969f81 [REM] fleet: Remove unused code 2016-05-27 10:39:22 +02:00
Ravi Gadhia e513af0bb0 [IMP] fleet: migrate to new api (fleet.py). my eye is paining 2016-05-27 10:39:22 +02:00
Ravi Gadhia 288568f486 [IMP] fleet: change directory structure according to new api 2016-05-27 10:33:28 +02:00
Srushti Patel 516ee0fda2 [REM] product_uos: remove module product_uos it is no longer supported (group_uom manage this by default) 2016-05-27 10:13:22 +02:00
Mohammed Shekha da3d2fb1dc [IMP] report: Printed Report names customization
PURPOSE
=======

I've seen this new improvement regarding the naming of the printed reports:
https://www.odoo.com/web?#id=10870&view_type=form&model=project.task&menu_id=3942&action=327

This makes the report have the pdf name being the name instead of the report_name of
the ir.actions.report.xml, which is already an improvement.

But why don't we allow the users to have their own naming conventions?
I mean, we could allow our client to create and name their pdf the way they want, as
they do regarding the attachment.

Not only when it's about saving it as an attachment on the record, but also when downloading
directly the pdf, such that the modification in the previous screenshot, would give the following
result when downloaded:

People need to have their pdf named automatically according to a convention. When you print 10 sales
order during an hour, you don't want to get lost in having the following:
Devis / Commande.pdf
Devis / Commande(1).pdf
Devis / Commande(2).pdf
Devis / Commande(3).pdf
Devis / Commande(4).pdf
Devis / Commande(5).pdf
Devis / Commande(6).pdf
Devis / Commande(7).pdf

especially when those are for different partners.
2016-05-27 09:44:01 +02:00
Christophe Simonis 0b52d097ea [MERGE] forward port of branch saas-11 up to 5e4f1f5 2016-05-26 18:52:45 +02:00
Christophe Simonis 5e4f1f5ab3 [FIX] stock_account: use new api to call method get_price_unit 2016-05-26 17:38:50 +02:00
Christophe Simonis 7046c2fbe6 [MERGE] forward port of branch saas-11 up to e4500d0 2016-05-26 16:58:37 +02:00
Christophe Simonis e4500d06fc [MERGE] forward port of branch saas-10 up to 57944db 2016-05-26 16:55:37 +02:00
Christophe Simonis 57944db19a [MERGE] forward port of branch saas-9 up to b7fce22 2016-05-26 16:48:33 +02:00
Christophe Simonis b7fce227cc [MERGE] forward port of branch 9.0 up to 9bd223f 2016-05-26 16:47:37 +02:00
Julien Legros 9bd223f50d [FIX] website: robust attribute checking
When installing website or one of its dependencies directly, the website
attribute is not defined on request. If the installation triggers qweb
rendering [1], we need to correctly check the presence of the website
attribute, which this commit does.

[1]: This is the case in website_blog since
4a132e2afb
2016-05-26 16:44:01 +02:00
Adrien Dieudonne 8002da27d6 [FIX] mail: multiple read more - better heuristic
- wildcard selector for stopSpelling
- <br> tags must not split read more/read less
2016-05-26 14:17:08 +02:00
Christophe Simonis 44fd6a55f3 [MERGE] forward port of branch saas-9 up to 413ba94 2016-05-26 14:10:55 +02:00
Martin Trigaux a93b6e8de0 Revert "[FIX] translate: don't translate DOCTYPE tag"
This reverts commit 44e8b92beb.

The condition is wrong as a view starting with DOCTYPE as top element will be
excluded, including its child (the whole page them).

Re-add the translatable title that was excluded by the condition.
2016-05-26 14:08:35 +02:00
Christophe Simonis 413ba9445c [MERGE] forward port of branch 9.0 up to 24eebbd 2016-05-26 14:06:36 +02:00
Christophe Simonis 24eebbd25c [MERGE] forward port of branch saas-6 up to 6c6a9f3 2016-05-26 13:56:16 +02:00
Martin Trigaux f92939e75c [I18N] im_livechat: export source terms 2016-05-26 13:34:11 +02:00
Christophe Simonis 6c6a9f3d60 [FIX] *: replace uses of except_osv with UserError that have been forgotten during previous forward-ports 2016-05-26 13:05:46 +02:00
Christophe Simonis aa220a5e03 [MERGE] forward port of branch 8.0 up to 6622196 2016-05-26 12:27:56 +02:00
Martin Trigaux 66221968b8 [FIX] crm_partner_assign: minimum access rights to employee
Give the same as access rights to the employee as for the public user.
This patch is needed to allow a user to access the partner form.
Same for portal.
The list of grades in not a confidential information.

Fixes #7719
2016-05-26 11:56:24 +02:00
Damien Bouvy 4ffd2fdd81 [FIX] sale: multi-company tax filtering
When the admin creates a SO, he has access to all taxes (since ir.rules
do not apply to him); therefore in some cases, the SO could be created
with SO lines that have taxes from other companies. This usually does
not make sense.

From this revision on, only taxes that are in the same company as the
SO are applied to the lines. If no company is set, then no filtering
is done.
2016-05-26 11:22:03 +02:00
Ondřej Kuzník dbdc8e1cef [FIX] server: Do not listen when --no-xmlrpc is set
This is a fix for f04f409943, which only
prevented the workers from being spawned in Prefork mode, while the
socket was still being bound to - this is a problem when starting a
worker-only server as it cannot coexist with the XMLRPC server on the
same machine.

Closes #1828
2016-05-26 11:01:42 +02:00
Keyur Gajjar c760e17019 [IMP] hr_recruitment: specific search view for ir_attachments
- Quick search on index_content field.
- Removed unnecessary filters(My Document(s), url, binary)
- Inherited ir.attachment's search view for that and bind
  it to actions of hr_recruitment.
2016-05-26 10:39:09 +02:00
Martin Trigaux e07fa2601e [FIX] doc: update css file to reflect 8ce16c3 2016-05-26 10:24:28 +02:00
65HQqp5QTq8QwA3f 9c28b6fbfa [FIX] sale: propagate context
Closes #9521
2016-05-26 08:39:59 +02:00
rocksolidsolutions 6c129e9954 [CLA] Rock Solid Solutions signs corporate CLA.
Closes #12182
2016-05-26 08:37:58 +02:00
Martin Trigaux 37bbe87d57 [INP] gamification: skip check for not required fields
Could get a definition with a model only
2016-05-26 08:33:20 +02:00
Martin Trigaux a4687c6e42 [FIX] gamification: bad backport to 8.0
UserError was defined in version 9, not 8
2016-05-26 08:30:51 +02:00
Christophe Matthieu d0f4b5f608 [FIX] web_editor: display background color to translate 2016-05-26 08:13:33 +02:00
Christophe Matthieu fe348e280d [FIX] report: some Wkhtmltopdf installation can return an empty version 2016-05-26 08:02:14 +02:00
Christophe Matthieu 30eb4e31f6 [FIX] im_livechat: don't translate livechat javascript template 2016-05-26 07:51:03 +02:00
Christophe Matthieu 44e8b92beb [FIX] translate: don't translate DOCTYPE tag 2016-05-26 07:50:48 +02:00
Jeremy Kersten 9772bbef07 [FIX] web: fix backport #4c7a9bd 2016-05-25 23:38:28 +02:00
Denis Ledoux 22f4aa1c43 [FIX] crm: merge leads in multi-company
When merging leads with a company set different
than the current user company,
it failed because the notification email (the message
written in the thread summarizing the merge) couldn't
read the company name (the `name_get` call on the company)
because of the multi-company record rule.

`name_get` can be safely called as `sudo`, as it does
nothing else than returning the name of the record. This is
already done for the many2one links in the web client anyway
(You can see leads from a company different than yours,
you can see the company name to which the leads belongs to,
but you can't click on the company many2one link)

opw-677986
2016-05-25 18:20:25 +02:00
Denis Ledoux 4176030cd3 [FIX] calandar: all day events email notification
When sending a notification email to an event attendee
for an all day event, the timezone must be ignored
as the `start` and `stop` datetime are stored as
the day date + '00:00:00'. If the timezone is applied,
for users being in a negative timezone (such as an American
timezone), the day displayed would be the day just before.

opw-677019
2016-05-25 18:11:08 +02:00
Goffin Simon 4c7a9bdac4 [FIX] web: raise a warning for bad domain
When a user wrote a wrong value in char_domain field it should raise a warning
message instead of a traceback.

Backport of b3a88b6ed8

opw:676783
2016-05-25 15:52:59 +02:00
Joren Van Onder 526c38cdb1 [FIX] point_of_sale: set callbacks for weight and price barcodes
c8732bea1e did not take into account that
we don't have specific callbacks for weight or price type
barcodes. Those where handled by the product callback.

opw-678556
2016-05-25 15:31:07 +02:00
Thibault Delavallée dae825b291 [FIX] stock: run scheduler
Issue when trying to access the current company, now correctly set after
the new cursor creation.
2016-05-25 15:22:33 +02:00
Christophe Matthieu 31d8507d78 [FIX] translate: don't translate DOCTYPE tag 2016-05-25 15:20:20 +02:00
Christophe Matthieu a5b738b35f [FIX] im_livechat: don't translate livechat javascript template 2016-05-25 15:20:07 +02:00
Yannick Tivisse 3843b86fef [FIX] hr_timesheet: app_switcher icon was duplicated
Goal: Display the timesheet icon on the app switcher even if
hr_timesheet_sheet is not installed to be able to acces the Activities
without the full timesheet integration.
2016-05-25 15:16:03 +02:00
Goffin Simon 8cdba8c5aa [FIX] account: get_formview_id
For a type 'in_refund', the supplier account invoice form must be
taken.

opw:678498
2016-05-25 15:14:54 +02:00
Christophe Matthieu 70d871d81a [FIX] translate: don't translate DOCTYPE tag 2016-05-25 15:12:02 +02:00
Christophe Matthieu 25bf3e9f74 [FIX] im_livechat: don't translate livechat javascript template 2016-05-25 15:12:01 +02:00
Martin Trigaux 97492a12a9 [IMP] gamification: prevent misconfiguration
Prevent selecting wrong field or models or computed fields

Fixes #8545
2016-05-25 14:58:55 +02:00
Denis Ledoux aedd0251b2 [FIX] account: invoice onchange partner accounts properties
Since revision 7eab8e26d3
the `_onchange_partner_id` of `account.invoice` failed
if the SUPERUSER created an invoice for another company
than his own, and if the partner had not a specific
receivable or payable account (meaning the default
accounts are used, the accounts coming from the properties
of this company without any partner specified)
because
```
prop.search([
             ('name', '=', 'property_account_receivable_id'),
             ('company_id', '=', company_id)
            ])`
```
can return multiple records, if several partners
have their own receivable accounts set, and,
since the above revision,
`get_by_record` specify `ensure_one`, meaning
you cannot pass multiple records to this method.

This domain was built a the time
(2009, rev. 80861660c6)
to handle the multi-company property,
which can now be handle with a simple `force_company`
passed in the context. It was not the case at the time.

This revision could be applied in former releases,
but this is not a necessity. This is a necessity
in saas-10, because of the above revision.

opw-678536
2016-05-25 14:42:24 +02:00
Jeremy Kersten bfb2263565 [FIX] website_forum: typo in translation 2016-05-25 14:39:38 +02:00
Jeremy Kersten 3ed55c540f [FIX] web: chardomain, don't allow to edit the input when not in edit mode. 2016-05-25 14:39:38 +02:00