Commit Graph
117975 Commits
Author SHA1 Message Date
Yannick Tivisse 73480ac516 [IMP] l10n_be_hr_payroll: Update reduction for dependent juniors to 2018 2018-01-04 14:54:06 +01:00
Yannick Tivisse 70ddadbf35 [IMP] l10n_be_hr_payroll: Update reduction for dependent seniors to 2018 2018-01-04 14:54:06 +01:00
Yannick Tivisse a9aa27eb3a [IMP] l10n_be_hr_payroll: Update disabled employee deduction to 2018 2018-01-04 14:54:06 +01:00
Yannick Tivisse ecd22362e9 [IMP] l10n_be_hr_payroll: Update isolated parent deduction to 2018
Purpose
=======

Le bénéficiaire des revenus est un veuf (une veuve) non remarié(e) ou un
père (une mère) célibataire, avec un ou plusieurs enfants à charge

35 -> 36 euros
2018-01-04 14:54:06 +01:00
Yannick Tivisse 6750b9edef [IMP] l10n_be_hr_payroll: Update Child Allowance deduction to 2018 2018-01-04 14:54:06 +01:00
Raphael Collet 160d657704 [IMP] base: make translations unique
With the unique constrain, the slow SELECT DISTINCT query can be removed

Fixes #18679
2018-01-04 14:48:41 +01:00
Benjamin Willig 22da94f147 [FIX] Allow to keep the state of a PO when logging a message
Steps to reproduce the bug:

- Create a new RFQ
- When it's in draft state, log an internal note using the 'mail.compose.message' dialog.

Bug:

- RFQ is now in 'sent' state.

The fix allows to inherit from mail_purchase_order_on_send method to change the base behavior.

opw:801549
2018-01-04 14:28:05 +01:00
Goffin Simon deb00a703b [FIX] purchase: Adding a purchase order on a vendor bill
To keep the same behavior as in 11.0, you can only add a purchase order to a vendor
bill when the vendor bill is in draft. Afterwards it is not longer possible.

opw:803068
2018-01-04 14:05:23 +01:00
Nicolas Martinelli b291494f64 [FIX] stock: inventory value
Add the inventory value in the pivot view. Indeed, the Unit Cost
displayed is the cost of the quant, which is not what is expected in
case of standard costing method.

opw-785872
2018-01-04 13:49:40 +01:00
Kinjal Mehta 564988f58d [IMP] test_new_api: changed duplicate field label in the same model 2018-01-04 17:56:57 +05:30
Kinjal Mehta 145c1fd931 [IMP] website,website_blog,website_event_track,website_sale_stock,website_sale: changed duplicate field label in the same model 2018-01-04 17:56:57 +05:30
Kinjal Mehta f4ce2f7718 [IMP] stock,sale_stock: changed duplicate field label in the same model 2018-01-04 17:56:57 +05:30
Kinjal Mehta c7821f528c [IMP] sale,sales_team: changed duplicate field label in the same model 2018-01-04 17:56:56 +05:30
Kinjal Mehta 3000e61d69 [IMP] rating: changed duplicate field label in the same model 2018-01-04 17:56:56 +05:30
Kinjal Mehta c90348d482 [IMP] purchase: changed duplicate field label in the same model 2018-01-04 17:56:56 +05:30
Kinjal Mehta aaae189baf [IMP] project: changed duplicate field label in the same model 2018-01-04 17:56:56 +05:30
Kinjal Mehta cf748e030c [IMP] product,product_margin: changed duplicate field label in the same model 2018-01-04 17:56:55 +05:30
Kinjal Mehta 1db7018095 [IMP] point_of_sale,pos_mercury,pos_sale,pos_restaurant: changed duplicate field label in the same model 2018-01-04 17:56:55 +05:30
Kinjal Mehta e1628532d6 [IMP] mrp: changed duplicate field label in the same model 2018-01-04 17:56:55 +05:30
Kinjal Mehta 33e1105cec [IMP] maintenance: changed duplicate field label in the same model 2018-01-04 17:56:55 +05:30
Kinjal Mehta d2b55d75a8 [IMP] mail,mass_mailing: changed duplicate field label in the same model 2018-01-04 17:56:54 +05:30
Kinjal Mehta 0da738dc8c [IMP] l10n_be_hr_payroll,l10n_ch: changed duplicate field label in the same model 2018-01-04 17:56:54 +05:30
Kinjal Mehta c91d44aef5 [IMP] hr_attendance,hr_contract,hr_expense_check,hr_payroll,hr_recruitment: changed duplicate field label in the same model 2018-01-04 17:56:54 +05:30
Kinjal Mehta 2bba0da080 [IMP] google_spreadsheet: changed duplicate field label in the same model 2018-01-04 17:56:53 +05:30
Kinjal Mehta 092bb2bd5c [IMP] fleet: changed duplicate field label in the same model 2018-01-04 17:56:53 +05:30
Kinjal Mehta c9fcbd60a5 [IMP] crm: rename duplicate field label 2018-01-04 17:56:53 +05:30
Kinjal Mehta b61e5a9287 [IMP] calendar: changed duplicate field label in the same model 2018-01-04 17:56:53 +05:30
Kinjal Mehta 32498c008c [IMP] anonymization: changed duplicate field label in the same model 2018-01-04 17:56:52 +05:30
Kinjal Mehta e8fbf7085d [IMP] account: changed duplicate field label in the same model 2018-01-04 17:56:52 +05:30
dbh 0f7930353d [IMP] base,base_address_city,base_setup: give warning if fields have same label to easily identify duplicate field string. 2018-01-04 17:56:52 +05:30
Christophe Simonis d9436e34f8 [FIX] test_mail: adapt query count
A few more queries are made with enterprise addons.
2018-01-04 12:55:50 +01:00
Simon Lejeune 5f3255be7f [FIX] stock: _free_reservation
to reproduce:
- have 4 units of product 1 in stock
- create a move for a dozen, reserve it
- try to scrap a single unit
- an exception "cannot reserve more than available" is raised

To reflect the change of reservation after scrapping the quantity, we
have to update the reserved quantity on the move line.
When updating the quantity on the move line, "quantity_split" is in the
quant uom, so it should be converted to the uom of the move line.
2018-01-04 12:48:15 +01:00
Kinjal Mehta 689ea6ea1a [IMP] base: give warning if fields have same label to easily identify duplicate field string. 2018-01-04 16:06:02 +05:30
Nicolas Martinelli cf32a23b92 [FIX] product: price precision
- Set a decimal precision for 'Product Price' = 6
- Set a currency precision = 2
- In the product for view, set a 'Sales Price' = 0.123456

The price is rounded to 0.12, while one would expect it to be 0.123456.

We use the decimal precision of the field rather than the default
currency precision.

Fixes #21686
opw-800279
2018-01-04 11:32:04 +01:00
Nicolas Martinelli 38e73da092 [IMP] web: support variable digits
In v10, a `Float` field with `widget="monetary"` option uses the decimal
precision of the field. In v11, however, it uses the decimal precision
of the currency. However, in many cases `widget="monetary"` is used in
the sole purpose of displaying the currency symbol. The precision of the
field sould be kept.

This commit introduces the support of the decimal precision of the field
for this specific use case thanks to the `field_digits` option:

```
<field name="pouet" widget="monetary" options="{'field_digits': True}" />
```
If such an option is used, the field precision will prevail over the
currency precision.

Related to #21686
opw-800279
2018-01-04 11:32:04 +01:00
Christophe Simonis 27c3c34c08 [FIX] test_mail: adapt query count 2018-01-03 17:29:49 +01:00
David Arnold 2a18275087 [REF] account_asset: make move creation more extensible
Allow to alter the behavior by introducing preparation methods that can be overwritten.

Partial merge of PR #16093, from an original idea and commit of David Arnold (XOE Solutions)
2018-01-03 16:54:49 +01:00
Jeremy Kersten 8e181c99c2 [FIX] portal: show connected user in top menu.
Before this commit, if the username was smaller than 25 chars,
it was not displayed.

Bug introduced by commit 483c9bb
2018-01-03 16:16:57 +01:00
Jeremy Kersten 7a31bc60fb [FIX] website_forum: fix tooltip user info
Before this commit, all tooltip users was showing website and parent_name from
the Main company and not the current focsed partner.

This commits closes #18430

@kangol: fwd-port company_name
2018-01-03 16:14:42 +01:00
Jeremy Kersten aaa8a87f36 [FIX] website_forum: check karma to allow to flag a post without rights to edit
If you set 200 kamra to allow to flag a post and 300 to edit all post, you was
not able to flag the post before this commit.

This commit closes #21274

@kangol: warning, fwd port need to add tag_ids into trusted_keys
2018-01-03 16:12:02 +01:00
Yoshi Tashiro 95376cd6a3 [REF] l10n_jp: author company name changed
Company name of the author has been changed from Rooms For (Hong Kong) Limited to Quartile Limited.  See https://github.com/odoo/odoo/pull/19516.
2018-01-03 15:58:58 +01:00
Yoshi Tashiro 5e9ebe86ba [FIX] l10n_jp: wrong assignments of tax accounts 2018-01-03 15:58:38 +01:00
Yoshi Tashiro e723b73f3a [REF] l10n_jp: author company name changed
Company name of the author has been changed from Rooms For (Hong Kong) Limited to Quartile Limited.  See https://github.com/odoo/odoo/pull/19516.
2018-01-03 15:56:30 +01:00
Yoshi Tashiro db501e251c [FIX] l10n_jp: wrong assignments of tax accounts 2018-01-03 15:55:46 +01:00
Nicolas Martinelli 9e19bfad8c [FIX] hr_holidays: Leaves by Department
The report 'Leaves by Department' only counts full days-off, instead of
taking into account the actual number of days.

This commit fixes the total number of days per employee. However, there
is still a limitation on the display: a day is either fully colored or
not at all.

opw-801061
2018-01-03 15:43:35 +01:00
Adrian Torres 2bedd640db [FIX] ir_model: ignore monetary fields during install (#21789)
Previous to this commit, we try to load as many fields as possible
during module installation, however sometimes some fields are not ready
to be loaded, which is the case for custom monetary fields, thus when
trying to find the current model's currency_id field it would not find
it at all, generating an assertion error.

This commit changes this by completely skipping monetary fields if they
are not ready to be loaded.

OPW 787223
2018-01-03 14:35:54 +00:00
Adrian Torres 9f583717e5 [FIX] website: unlink website_id (#21972)
In the module website, the relational field website_id is defined twice,
once for ir_ui_view and a second time for res_config_settings, for the
former we perform an ondelete='cascade', which means that when the
website model is unlinked, the field is unlinked as well.

This is not done for the website_id field in res_config_settings, which
instead defaults to setting the field to NULL, which violates a not-null
constraint and therefore causes issues when trying to modify/save
settings.

To solve this, a hard delete of the ir_model_field website_id is
performed during the uninstall process of the website module.

Fixes #21905
OPW 803018
2018-01-03 13:53:44 +00:00
Christophe Simonis 55b810dc70 [MERGE] forward port branch saas-11.1 up to 726b91b9fb 2018-01-03 14:05:48 +01:00
Stéphane Bidoul (ACSONE) bb10cd50c2 [FIX] web: issue with id field in x2m form
When the 'id' field is present in a x2m form, the x2m actions generated
on create of the parent object are incorrect.
2018-01-03 13:22:09 +01:00
Christophe Simonis 726b91b9fb [FIX] test_mail: bump query count (bis) 2018-01-03 13:20:28 +01:00