Commit Graph
108239 Commits
Author SHA1 Message Date
Martin Trigaux fda2b77e84 [IMP] point_of_sale: rename label
The report shows the customers using the pos
2017-04-11 15:55:51 +02:00
Nicolas Martinelli 86730ad6de [FIX] website: config
- Set a google analytic key with the admin user (in the settings for
  module website admin)
- Give the right to demo user for website as 'Editor and designer'
- Give the right to demo user for administration as 'settings'
- Login as demo user
- Modify the google analytic key in the settings.

Security restrictions error on (Document type: ir.values, Operation: unlink)

This is a complement of commit 6c89b2bdd2

opw-727807
2017-04-11 11:39:42 +02:00
Fabien Meghazi ae9fa40a4b [FIX] portal: fix regression of API migration in the portal wizard
Before the migration, send_mail() used to be called with an untainted
context but after the API migration it inherited the altered context
with active_test=False which caused subsequent calls to
ir.mail_server#connect() to fetch inactive records.
2017-04-11 10:53:58 +02:00
Nicolas Martinelli 28c158cd13 [FIX] crm, sales_team: dashboard shortcuts
Partially an incorrect forward port of 27b6451. Moreover, the shortcuts
"exp. closing" and "overdue" use the action
`crm_lead_action_activities`, which filters by default
`activity_date_deadline != False`. This should be used as well when
counting.

opw-725666
2017-04-06 16:56:44 +02:00
Odoo Translation Bot e08590320d [I18N] Update translation terms from Transifex 2017-04-06 11:41:10 +02:00
qdp-odoo df755ef6d4 [FIX] account: reverse move now also reconcile together liquidity amls.
This is needed in order to clear the 'unreconciled payments' in the bank statement reconciliation report when you wrongly encoded a bank statement and reversed it.
This patch goes along with the modification of the bank reconciliation report in enterprise to exclude such 'reconciled' lines.
2017-04-05 17:31:19 +02:00
Lucas Perais (lpe) ca7cd3ffd3 [FIX] l10n_do, l10n_cr: compatibility of res.partner.title between the two modules
The two modules should create/update their data (res.partner.title) as a shared resource -- in module base

OPW 725362
2017-04-05 13:54:26 +02:00
Denis Vermylen 7787e91d68 [FIX] models: don't call name_get on falsy records
The call of the name_get on records with falsy ids was unnecessary
as it wasn't used afterwards and could lead to errors if a name_get
doesn't handle falsy records.

solves https://github.com/odoo/odoo/pull/16244
2017-04-05 11:24:02 +02:00
Lucas Perais (lpe) 644469eafe [FIX] report: protecting against ref paper_format not found 2017-04-03 10:34:16 +02:00
Lucas Perais (lpe) 173d9db667 [FIX] report: added default value on res_company.paperformat to allow out of the box use
OPW 726738
2017-04-03 08:56:50 +02:00
Odoo Translation Bot de1226011b [I18N] Update translation terms from Transifex 2017-04-02 07:13:42 +02:00
Goffin Simon e7b853493b [FIX] hr_expense: Creation of entries from several expense lines
When posting journal entries for an hr.expense.sheet with several expense lines
(by clicking on the button "Post journal entries"), all the account move lines
created for the same sheet must be linked to the same account move because
the model hr.expense.sheet has just a field "account_move_id" to access all the entries
(by clicking on button "Accounting Entries")

opw:715523,709930,725798,716239
2017-03-31 00:23:51 +02:00
Goffin Simon f1b95709b9 [FIX] website: title escaped two times
The title of the page was escaped two times, once in Web layout and
once in Main layout.

opw:725212
2017-03-30 15:24:50 +02:00
qdp-odoo 26938da071 [FIX] account: fix statement_line_id on bank statement processing.
Since ee2c76a431, a new field 'statement_line_id' has been added on account.move.line object and the field 'statement_id' became a related... but this statement_line_id on the bank account aml was, by mistake, not set. That created aml that were wrongly appearing in blue in the reconciliation widget.

If this error occured in a DB, the following SQL query can fix it:
$ UPDATE account_move_line l SET statement_line_id = s.id FROM account_bank_statement_line s
   WHERE l.statement_line_id IS NULL
   AND l.statement_id = s.statement_id
   AND l.name = s.name
   AND coalesce(s.partner_id, 0) = coalesce(l.partner_id, 0);
2017-03-29 13:55:14 +02:00
Christophe Simonis 79975f7cec [MERGE] forward port branch 10.0 up to 0ff9af64ef 2017-03-29 13:34:41 +02:00
Goffin Simon 0ff9af64ef [FIX] hr_expense: Creation of entries from several expense lines
When posting journal entries for an hr.expense.sheet with several expense lines
(by clicking on the button "Post journal entries"), all the account move lines
created for the same sheet must be linked to the same account move because
the model hr.expense.sheet has just a field "account_move_id" to access all the entries
(by clicking on button "Accounting Entries")

This commit reverts f97eb0ac2b

opw:715523,709930,725798,716239
2017-03-29 13:11:25 +02:00
qsm-odoo c04dfec023 [FIX] web: make the domain field a "block" field
The domain field needs space to be rendered. Even with its "in_dialog"
option activated, the readonly representation can take some space.
If there is not enough space, it will be a mess to read it and the
"-> x records" button can also overflow the "Add filter" button.

This commit makes the field to be rendered as a "block", which fixes
the problem in all current cases.
2017-03-29 12:26:11 +02:00
Thibault Delavallée c168830b66 [REV] revert commit 83e8ae43b0
Indeed people installing modules depending on sales team with sales team
not being updated before that commit.

ChsNote: Do not forward-port.
2017-03-29 10:53:16 +02:00
Thibault Delavallée 5fb732bf91 [REV] revert commit 0f17d3a348
Indeed this causes issues for people installing issue with project having
been installed before that commit.

ChsNote: Do not forward-port.
2017-03-29 10:53:03 +02:00
Christophe Simonis 2f68e9e93a [MERGE] forward port branch 10.0 up to 72fa3e8bda 2017-03-28 17:27:19 +02:00
Martin Trigaux 55895c7de1 [IMP] point_of_sale: correct model description 2017-03-28 17:03:23 +02:00
qsm-odoo 72fa3e8bda [FIX] web: properly display tooltips with much data
When there is a lot of texts to display in a tooltip, it will overflow
the viewport vertically as the max-width of the tooltip is set at 200px
(bootstrap default). This commit increases the max-width to the
viewport full-width.

opw-725804
2017-03-28 16:45:35 +02:00
Christophe Simonis c37f1f6cb9 [MERGE] forward port branch saas-11 up to 8bab7aebd6 2017-03-28 16:17:09 +02:00
Christophe Simonis 8bab7aebd6 [MERGE] forward port branch 9.0 up to e876becada 2017-03-28 16:14:34 +02:00
Martin Trigaux 26df9e8900 [FIX] doc: escape correctly code
Was rendered 'UNKNOWN NODE title_reference'

Closes #16064
2017-03-28 16:04:54 +02:00
Christophe Simonis e876becada [MERGE] forward port branch saas-6 up to 7bcfa2b52a 2017-03-28 16:01:05 +02:00
Sébastien Le Ray 90a5e7f38b [CLA] signature for beuss
Done at #16065
2017-03-28 15:57:47 +02:00
Christophe Simonis 7bcfa2b52a [MERGE] forward port branch 8.0 up to 5fc3979262 2017-03-28 15:22:58 +02:00
Jairo Llopis 5fc3979262 [FIX] web: Avoid double-fetching many2many tags in list views
Before this patch, #15920 was happening. The problem was that calling `render_cell` produced a call to [`record.set(column.id + '__display', value)`][1], which triggers the `change` event, which called `render_record` the first time, which called again `render_cell` and produced the 2nd data fetch.

After this patch, `render_record` is only called if there is some place where to put the result, which does not happen in those situations.

There is still the problem that there is one call to name_get for each many2many widget found in a list view (instead of one per full view rendering), but at least they are not two calls!

[1]: https://github.com/odoo/odoo/blob/5d17749ff47c02294d5ff2ae56bbcef9d082562e/addons/web/static/src/js/view_list.js#L1125
2017-03-28 15:12:56 +02:00
Wolfgang Taferner 8e7f34c323 [FIX] web: domains might be undefined, so we check
Introduced recently in b2d66d0c14

opw-726354
Closes #16068
2017-03-28 15:02:47 +02:00
Christophe Simonis 27496730d8 [MERGE] forward port branch saas-11 up to c2569b9df1 2017-03-28 14:51:14 +02:00
Nicolas Martinelli 0dbc8b0e58 [FIX] hr_holidays: compute number of days
- Create a user with only "Employee" as only right
- Create a leave

An access error occurs.

opw-726049
2017-03-28 14:41:36 +02:00
Odoo Translation Bot 87caeb3605 [I18N] Update translation terms from Transifex 2017-03-28 14:17:22 +02:00
Nicolas Martinelli 59a6397867 [FIX] stock: sort moves to do
- Activate the MTO route on SO lines
- Activate the route "Buy" on a Product A without quantity on hand, add
  a supplier
- Create a SO with 2 lines. First line is Product A, second line is
  Product A with route MTO
- Confirm the SO, run the procurement if necessary
- Confirm the PO, receive the products
- On the picking generated from the SO, you should have one line
  "Waiting Availability" (the line not MTO) and one line "Available"
  (the line MTO).
- Click "Recheck Availability". One reserved quant from line 2 is moved
  to line 1.

A trick is to assign first the move with ancestors, so we don't "steal"
the reservation on the other move.

Fixes #15950
opw-725373
2017-03-28 13:30:29 +02:00
Christophe Simonis c2569b9df1 [MERGE] forward port branch 9.0 up to 30dda3faee 2017-03-28 13:21:24 +02:00
Christophe Simonis 30dda3faee [MERGE] forward port branch saas-6 up to 8fd0f8664b 2017-03-28 13:16:16 +02:00
Goffin Simon 099081ae79 [FIX] hr_maintenance: Field owner_user_id not used in form view
In maintenance.equipment form view, the field owner_user_id has been replaced
by equipment_assign_to, employee_id and department_id. But in the kanban view,
this field was still displayed even though the image was replaced by the image
of the employee. So now, the kanban view follows the same behavior as the form view.

opw:724378
2017-03-28 13:09:05 +02:00
Martin Trigaux e25dad4fed [I18N] point_of_sale: missing source terms reference 2017-03-28 12:49:01 +02:00
qdp-odoo e2a239f4a4 [FIX] account: fix test.
This was broken since commit 925440b7a0 that was specifically restricting the closing of a FY if any unposted move was left in the system.
2017-03-28 11:59:00 +02:00
qdp-odoo 925440b7a0 [FIX] account: restrict fiscalyear closing if there are still unposted entries 2017-03-28 10:49:32 +02:00
Nicolas Martinelli c9545bda30 [FIX] purchase: invoice status
- Create a PO with a product "Control Purchase Bills" set to "On
  received quantities".
- Validate the PO.

The invoice status is "Waiting Bills", while it should be "Bills
Received".

opw-726245
2017-03-28 10:30:06 +02:00
Jeremy Kersten 7c95c14c06 [FIX] website_sale: apply _fix_tax_included_price similary to sale module
If you had a price with a tax included and the user has fiscal position.
The tax included in the unit price was not substract before the mapping.

Eg: product $115 with tin 15% included in price.
Once in the cart with a fiscal position intracom (0% tva), the unit price
should be 100$ and not 115$.

This commit closes #16022
2017-03-28 09:35:38 +02:00
Serpent Consulting Services Pvt Ltd 6a64d2dd8f [FIX] hr_attendance: fix singleton error
This commit closes #15805
2017-03-28 09:35:38 +02:00
Nicolas Martinelli 83a2947d98 [FIX] l10n_be: incorrect tax types
opw-726242
2017-03-28 08:38:26 +02:00
Olivier Dony ca989b6548 [FIX] mass_mailing: prevent duplicates and sending to opted-out
The mass-mailing App suffered from severe issues due to its inability
to detect and handle duplicates "at the email level", and the absence
of any global blacklist system, leading to lack of user trust.

Mailing-lists typically include multiple records with the same email,
and it is critical to avoid sending them the same email several times.
A related problem is the unsubscription of an email that is present
in other records (duplicates). Opting out the first email should
automatically blacklist it for other records as well.

Ideally we should have a global blacklist table in order to
share the unsubscription requests globally across models (Leads,
Partners, Mailing-list contacts). It would also allow importing
it from other blacklist systems. (TODO for master)

This commit introduces a partial solution, made of several
small changes:

- In mail.mail: double-check that an outgoing email has the
correct status (`outgoing`) before sending it. This allows
adding emails in the queue and cancelling them before they
actually get sent.
- In crm.lead: force predictable recipients for mass-mailing,
by always using the email of the lead rather than the email
of the linked partner when there is one. This simplifies the
computation of the blacklist and seen list. Other areas in
the codebase already assume as much.
- In mass.mailing:

 + Before sending out a mailing-list batch, compute the
   blacklist (all opted-out emails) and the seen_list
   (emails who previously received this mail) to make
   sure we only ever target valid recipients.
 + While delivering the mass-mailing, any email targeting
   an address that is in the blacklist or "seen list" is
   canceled before being sent. The corresponding statistics
   entry is considered "not delivered".
   Also updates the "seen list" continuously.
 + When a mass-mail belongs to a campaign with the
   "unique AB/B testing" flag, the "seen list" is
   common to the whole campaign, as an extra safety.
 + Auto-delete mass-mailing test messages sent with the
   test wizard, to avoid polluting the mail_mail table

Note: this fix uses a simple regex for efficiently extracting
the blacklist in pure SQL from different models, and doing so,
assumes that each record only holds a single email
(no comma-separated adresses). This should be sufficient for
most cases. The regex:

                   ([^ ,;<@]+@[^> ,;]+)
2017-03-27 18:47:59 +02:00
Olivier Dony 6d16915d39 [FIX] web: no frames on login/preferences screen
We generally consider this a low priority issue
as it is social-engineering based and many easier
options exist for targeting gullible users.
Nevertheless, protecting a couple of obvious pages
does not hurt.
2017-03-27 18:47:45 +02:00
Nicolas Martinelli ee8fbcbeae [FIX] mrp: same unique SN
- Create a product with unique SN, create a BOM for this product
- Create a MO to produce 2 units
- Produce the first unit, create a lot number
- Produce the second unit, use the previously created lot number

Nothing prevents the user to do this. However, the user won't be able to
set the MO as "Done", but it is better to prevent the issue as soon as
possible.

opw-724944
2017-03-27 18:13:26 +02:00
Pierre Masereel 7a039c730d [FIX] stock: multiple global push rules with same origin
When you have multiplle global push rules with the same source location,
a traceback is raised because the '_apply' method of
"stock.location.path" is called with more than one record, and doesn't
handle multiple record.

To fix this, we limit the number of records returned when a global rule
is searched to 1 (as for other 'search' of push rules in this file).

This bug has been introduced during migration in rev: https://github.com/odoo/odoo/commit/cb486d7eb6353a66eea2cb3610141b4f3a778791

opw-725874
2017-03-27 17:36:25 +02:00
Raphael Collet 48c773de1d [FIX] base: do not create field x_name when importing a model definition (#16039) 2017-03-27 17:28:23 +02:00
Martin Geubelle 3d0db90dae [FIX] web_kanban: do no read something you already know
When the groups are loaded in the kanban view, a `read` is done on the
relation model to load extra fields.

This `read` was done regardless if there really were extra fields to
read.

This is a priori not a big issue, except if the user has no read
access to the relation model and can only perform a `name_get`.
2017-03-27 16:28:46 +02:00