Commit Graph
102162 Commits
Author SHA1 Message Date
qsm-odoo 642dff0901 [FIX] website: hide page edition buttons on mobile
The edition should technically work on mobile but is impossible
to use since the small size anyway. So better hide the button.
2016-05-12 11:30:31 +02:00
Jeremy Kersten fe6afa7e2b [FIX] website_forum: don't display link if profile is not published
Thanks to FHE for the reporting... opw-676520
2016-05-11 15:43:56 +02:00
Christophe Simonis b38194ad75 [FIX] models: log foreign key creation correctly 2016-05-11 13:01:02 +02:00
Olivier Dony 0b55f2ee6d [IMP] sale_timesheet: timesheet smart button - display correct lines
- As of 9.0 there is a discrepancy between the smart button showing
the "total timesheet" entries at the top of a Sales Order, and the
actual timesheet lines used to computed the "delivered quantity"
of the lines of that SO.
Fix this by simply counting all the timesheet lines assigned to
the SO lines.

- Also replace the sum of "timesheets" mixing different UoMs with a
simple count of the lines, on the smart button.
It's not going to match the sum of the "delivered qty" on the
lines anyway (due to diff. UoMs), so let's show something that makes
sense all the time.

- Finally, use a more logical plural form in the smart button label
2016-05-10 12:01:28 +02:00
qsm-odoo ba2a47e91b [FIX] web_calendar: avatar size for event attendees 2016-05-09 17:57:21 +02:00
Christophe Simonis 1e86774207 [MERGE] forward port of branch saas-9 up to 89873cb 2016-05-04 15:42:26 +02:00
Christophe Simonis 89873cbed5 [MERGE] forward port of branch 9.0 up to 3381e7b 2016-05-04 14:42:54 +02:00
Christophe Simonis 3381e7bedf [MERGE] forward port of branch saas-6 up to 19d62ec 2016-05-04 14:37:33 +02:00
Christophe Simonis 19d62ec5a7 [MERGE] forward port of branch 8.0 up to e664d30 2016-05-04 14:31:38 +02:00
Goffin Simon c768bbeb22 [FIX] base: Changing a company contact in a company
When a company contact is changed in a company, this contact will
not be displayed as a company contact.

opw:673715
2016-05-04 14:25:11 +02:00
Martin Trigaux f47e39edf9 [IMP] doc: add documentation of read_group
Has already a docstring but was not included
2016-05-04 13:42:47 +02:00
Adrien Peiffer (ACSONE) e664d3074c [FIX] account: A negative amount with sale taxes on bank statement line must be considered as a refund. Courtesy of Adrien Peiffer (ACSONE). PR #11877 2016-05-04 11:31:20 +02:00
Goffin Simon 86ae7b1e1a [FIX] website_project_issue: Issues visibility in frontend for portal users
The domain used to search the project issues in the website_project_issue
controller(['/my', '/my/home']) was useless thanks to the ir.rule portal_issue_rule

opw:676447
2016-05-04 10:46:13 +02:00
Jeremy Kersten 13b34c2694 [FIX] base: avoid duplicate title
Add sql constraints to avoid duplicate title
2016-05-04 01:30:38 +02:00
Jeremy Kersten 7588ea8d74 [IMP] crm: diplay only employee in m2o user_id/saleman. 2016-05-04 01:30:38 +02:00
Jeremy Kersten 32aff64b85 [IMP] openerp: imp design when render default form view
When a form view had only one field, it was fullwidth.
Now we add a separator automatically. That (seems) have no
effects on model with several field and fix the display when
only one field.
2016-05-04 01:30:38 +02:00
Jeremy Kersten 28791ab5db [FIX] crm_partner_assign: remove useless button, oe_stat_button do it. 2016-05-04 01:30:38 +02:00
Denis Ledoux 6beeec363a [FIX] crm_partner_assign: Interested message subtype
When a partner tells he is interested or not by a lead,
the customer on the lead must not receive a mail
with this information.

opw-676729
2016-05-03 18:03:27 +02:00
Martin Trigaux dd6640616e [FIX] mrp: include workcenter cost in total cost
Estimate the workcenter cost based on produced quantity so far.
The workcenter cost is written on analytic accounts at the end of the production
only. A new method _compute_costs_from_production is needed to estimate the
workcenter total cost and then divide by the produced unit.

opw-675994
2016-05-03 17:13:49 +02:00
Martin Trigaux bc23c92c3e [FIX] mrp: avoid empty cost of produced product
If the production flow is in two steps:
1. consume raw material
2. produce manufactured product

The total_consume_moves was empty (so computed cost was 0)

Include the moves that were already consumed since the last production.
This will offer a correct estimation of cost of production in real time for
companies producing in several steps.

opw-675994
2016-05-03 17:10:20 +02:00
Aaron Bohy 39a48a4090 [FIX] mail: systray: colors in messaging menu
Default color is white in the enterprise webclient since the navbar refactoring
of bf39884.
2016-05-03 15:15:53 +02:00
Raphael Collet d5abeb2c5b [FIX] base_action_rule: simplification typo in make_unlink() 2016-05-03 14:23:33 +02:00
Goffin Simon da3ca72ba3 [FIX] sale_mrp: return of _get_anglo_saxon_price_unit
This function _get_anglo_saxon_price_unit must always return the price_unit.
2016-05-03 13:16:36 +02:00
Damien Bouvy fdcd788afb [FIX] account: SO reference in register payment wzd
Follow up of fix 6f8030a

This previous fix removed the reference field when creating an
invoice from a sales order since this field was for Supplier
Invoices (and is not shown for Customer Invoices).

While this males sense, it had the side effect of removing the
default value for the "Register Payment" wizard.

To keep this wizard populated with the most sensible data,
the default is now set to reference or name or number (in that
order).

opw 676261
2016-05-03 10:59:57 +02:00
Aaron Bohy 019fcae90b [FIX] mail: messages sent as reply to previously selected message
In Discuss, if a message was selected as message to reply to, it wasn't reset
when switching to another channel. So if the user sent a message in that other
channel, the message was sent as reply to the previously selected message.

This rev. ensures to always unselect messages when switching between channels.

Closes #11879
2016-05-03 10:53:30 +02:00
Aaron Bohy bbf64347e4 [FIX] mail: escape author name in messaging menu 2016-05-03 10:53:30 +02:00
Sylvain LE GAL e94b2f8a3e [FIX] point_of_sale: display select button on client list after scanning
Before this, if you where on the customer selection screen and scanned a
customer barcode the customer would be shown, but you were not able to
select him.

This correctly sets ClientListScreenWidget.new_client to the scanned
partner which makes the button toggle.

Closes #11874
2016-05-03 10:36:05 +02:00
Goffin Simon e588d85315 [FIX] product_expiry: 'product_id' in context
When creating a new lot from an incoming picking transfer, the product_id
is written in the context.

opw:674608
2016-05-03 09:40:41 +02:00
Sylvain LE GAL 07633cda1e [FIX] point_of_sale: pass tax_ids to pos_config view
It's needed by the onchange on product_id. Without this the price will
be correctly computed by `onchange_product_id` but upon saving the
record tax_ids will be lost.

Closes #11875
Closes #11705
Closes #10378
2016-05-03 09:16:25 +02:00
Denis Ledoux 341d931782 [FIX] hr_holidays: mail notification on leave request confirm
The followers of the departments subscribed to the
`Leaves/Allocations Confirmed` are supposed to
receive a mail notification when an employee
confirms a leave request.

It was no longer the case since the below revision:
2be1dfc1ed

This revision subscribes the followers of the department
following the `confirmed` subtype manually
,on the leave request confirmation, because
`message_auto_subscribe` only works on fields for which
the value is passed to the `create` or `write` methods,
it doesn't work for related/computed fields
This can be removed as soon as `department_id` on `hr.holidays` becomes a regular
fields or as soon as `message_auto_subscribe` works with related/computed fields.

opw-676521
2016-05-02 16:21:20 +02:00
Christophe Simonis 431ef552b3 [MERGE] forward port of branch 9.0 up to 822966d 2016-05-02 14:44:20 +02:00
Alexandre Fayolle 822966d25d [FIX] base: res.config default value on selection fields
Since 3d8f7c2f, res.config support selection fields to set groups and install
modules using a selection field instead of boolean.
While the `module_*` fields are correctly casted from boolean to integers, it
was not the case with `group_*` fields.

This commit forces the conversion to get the expected field format value.

Closes #10373
2016-05-02 14:21:15 +02:00
Christophe Simonis db935df398 [MERGE] forward port of branch saas-6 up to e2faeab 2016-05-02 14:11:40 +02:00
Martin Trigaux c89dc632fb [I18N] Update translation terms from Transifex
Had a timeout on last sync
2016-05-02 13:52:12 +02:00
Nicolas Martinelli 740d67a089 [FIX] website_sale: set invoice address
When the user has several addresses, the call to the onchange method
`onchange_partner_id` will overwrite the actual invoice address chosen.

opw-675935
2016-05-02 13:00:34 +02:00
Christophe Simonis e2faeab4b8 [MERGE] forward port of branch 8.0 up to a4c4c43 2016-05-02 12:37:35 +02:00
Holger Brunn a4c4c43bd9 [FIX] project: make copy overridable in v8 api
Without the proper decorator, the method is matched as `cr_ui_context`.
This is because the `guess` mechanism expects a name `res_id` instead of
`record_id`.
For stability reason it is better to add the decorator than modify the signature
of the method.
Closes #11735
2016-05-02 12:08:06 +02:00
Frederik Kramer d6563f91b9 [CLA] update signature of initos
Changes due to changes in the legal form of the company
Closes #11759
2016-05-02 12:08:06 +02:00
Goffin Simon 3bcfac7d99 [FIX] sale_mrp, sale_stock: _get_anglo_saxon_price_unit with a kit
When a kit is set with a valuation = "real_time" and invoice_policy = "delivery",
the price unit of the kit computed for the Expense Account in the the journal of
entries must be the sum of the average price of each component of this kit.

Used case:

Create a kit001 with:
*General information:
   -Product Type=Stockable Product
   -Invoicing Policy=Delivered Quantities
   -Sale Price=100$
   -Cost Price=80$
*Inventory:
   -Route=Manufacture
   -Internal Category=All/Sealable
*its product category set with
   -Expense Account=210000 Cost of Goods Sold
   -Costing Method=Standard Price
   -Inventory Valuation=Perpetual(automated)
*a bom of two components child001 and child002

Create child001 with:
*General information:
   -Product Type=Stockable Product
   -Invoicing Policy=Delivered Quantities
   -Sale Price=100$
   -Cost Price=70$
*Inventory:
   -Route=Buy
   -Internal Category=All
*its product category set with
   -Expense Account=210000 Cost of Goods Sold
   -Costing Method=Real Price
   -Inventory Valuation=Perpetual(automated)

Create child002 with:
*General information:
   -Product Type=Stockable Product
   -Invoicing Policy=Delivered Quantities
   -Sale Price=100$
   -Cost Price=10$
*Inventory:
   -Route=Buy
   -Internal Category=All
*its product category set with
   -Expense Account=210000 Cost of Goods Sold
   -Costing Method=Real Price
   -Inventory Valuation=Perpetual(automated)

Create a SO with:
   -one line with the kit001

Confirm the SO

Validate the Delivery

Create and view the invoices
   -per invoicable lines(deduct down payments)

Validate the invoice

Result:

Before the fix: in the entry created for this invoice, the debit for the kit001 in Cost of Goods Sold
was equal to 70 instead of 80.

After the fix: the debit for the kit001 in Cost of Goods Sold
was equal to 80(the sum of the average price of each component of the kit001).

opw:674608
2016-05-02 11:37:00 +02:00
Nicolas Martinelli 03a2b6ba5e [FIX] account_bank_statement_import_ofx: multiple accounts
An OFX file can contain more than one account. Therefore, we need to
loop over all the included accounts, otherwise statements will be
missed.

opw-673814
2016-05-02 11:25:59 +02:00
qsm-odoo 89c0266b93 [FIX] web_editor: backend colorpicker in editor
The web_editor.colorpicker defines a series of color buttons which
toggle the bg-* and text-* classes. The problem is that themes can
define new buttons whose bg-* and text-* classes only exist in the
frontend. So these buttons should not be displayed in the backend.
Only solution for the current implementation is to add this ugly rule
(in this backend file) which hides every button and redisplayed the
default ones.

This fix is temporary and has to be improved in next versions.
2016-05-02 11:06:09 +02:00
Christophe Simonis 396facfaf0 [MERGE] forward port of branch 8.0 up to 8651d08 2016-05-02 11:04:21 +02:00
qsm-odoo e3ce70a64d [FIX] web_editor: backend editor style
The editor had been restyled thinking its DOM structure was the same
in every context. The problem is that the message composer editor
DOM structure is different. So, some important style like button
icons were missing in this context.
2016-05-02 11:04:14 +02:00
Goffin Simon 02371e8831 [FIX] account: sequence_id field in account.journal
The sequence_id field can be seen in debug mode but it cannot
be edited.

opw:676223
2016-05-02 10:16:01 +02:00
Aaron Bohy 5cca1dcb3a [FIX] mail: composer: escape RegExp pattern
to prevent crashes if the user types, e.g. a \, when mentionning someone.
2016-05-02 08:52:49 +02:00
Odoo Translation Bot 8651d0815d [I18N] Update translation terms from Transifex 2016-05-01 02:57:51 +02:00
Odoo Translation Bot da82207478 [I18N] Update translation terms from Transifex 2016-05-01 00:29:59 +02:00
Raphael Collet ba5f5614f3 [FIX] expression: fix missing results in direct search on many2many fields
This case corresponds to searches like `[(field, 'ilike', name)]` where `field`
is a many2many field.  The domain processing performs a `name_search` on the
field's comodel, then makes the relation match the returned record ids.

Problem: the call to `name_search` uses the default limit (100), and this makes
the search return less results than expected.  Make the search complete by
forcing `limit=None`.
2016-04-29 15:48:19 +02:00
Raphael Collet 39a0ae019f [FIX] fields: delay recomputations when setting a binary field in attachment
Setting a binary field stored in attachment may trigger recomputations on the
main record before all fields are set on that record.  This may cause access
errors if the record does not satisfy some access rule because of the fields
that are not set yet.
2016-04-29 12:05:22 +02:00
Olivier Dony 7c177d9143 [FIX] mail queue: wrong condition for test mode
Rev. 56cec604e6 modifies
the auto-commit behavior of the mail queue scheduler,
to allow using it within tests.

The condition was wrong and always True as soon as
the registry was loaded, permanently disabling
auto-commit, both during tests and outside tests.

This broke the duplicate emails protection.
2016-04-29 11:39:29 +02:00