Commit Graph
114767 Commits
Author SHA1 Message Date
Fabien Pinckaers b341b5ca73 [IMP] Remove duplicate fields names 2018-01-07 19:28:03 +01:00
Fabien Pinckaers 4ae5a3affa [IMP] Warning when two fields have same labels 2018-01-07 17:44:57 +01:00
Pierre Masereel 2ab6bed787 [REF] stock: remove default filter on location 2018-01-05 14:07:14 +01:00
Pierre Masereel 71e67f65bb [IMP] delivery: set default custom code on packaging type 2018-01-05 11:52:12 +01:00
Pierre Masereel e97fbf2d6b [IMP] delivery: packaging type max weight limit
When a max weight is set on a packaging type is set, you get a warning
when you put in pack some content that weighs bigger than the max weight
of the packaging type
2018-01-05 11:52:12 +01:00
Pierre Masereel 899685e256 [REF] delivery: remove unused field 'number_of_packaging' 2018-01-05 11:52:12 +01:00
Richard Mathot 40b879b75d [FIX] base: language code for Khmer (Cambodia)
Manual cherry-pick in master of the "commit that broke the stable and was
reverted": 3830621075
2018-01-05 11:45:43 +01:00
Thibault Delavallée d7c24089ee [FIX][IMP] mail, rating, website_forum: inherit message_post using kwargs
Several addons inherit from message_post method. Instead of redefining
the long list of parameters let us just use kwargs and propagate them to
the super call. Only really used parameters are set as explicit.

Purpose is to lessen issues when changing some parameters default value
or when having some API change.
2018-01-05 10:32:25 +01:00
Pierre Rousseau 9ec0455abc [FIX] tools: fixed missing import in xml_utils 2018-01-04 18:58:38 +01:00
Pierre Rousseau ff4ee2c17e [IMP] l10n_sg: improved localisation
Added Unique Entity Number (UEN) to company and partner to use them in the IRAS Audit File (l10n_sg_reports)
    Changed vat_label on Singapore
    Added new taxes (2019)
    Fixed the Chart of Account (account codes and types)
    Added 'Permit Number' and 'Permit Number Date' on invoices
2018-01-04 18:58:38 +01:00
Thibault Delavallée 1bb05b0682 [REM] event: remove unnecessary message post in data
Currently even module logs a message in all employee channel with a
message telling the module has been installed. It is not interesting
as it gives no real information and is not interesting for users that
do not use event module and/or do not have access to it.

Let us remove that data.
2018-01-04 16:57:46 +01:00
Thibault Delavallée 71181a0e39 [FIX][IMP] sale: set sale_warn as non required
When reinitializing modules it is impossible to create partners if
sale is installed because sale_warn field has a required column
but no default value if the module does not depend from sale. Use
case is trying to run test_mail tests with sale installed.

As this field is not business critical it is now not required. As there
is a default value behavior should not change for users.

See also dd47abdcc3 and 06a02ae4c2.
2018-01-04 16:57:46 +01:00
Thibault Delavallée 98475a8311 [FIX] stock, sale_stock: call message_post using keyword arguments
Indeed message_post uses only keywords arguments. Let us therefore use
them when calling the method. It will lessen number of issues if someday
the argument order and/or the API of message_post changes.
2018-01-04 16:57:46 +01:00
Thibault Delavallée 33ebc538ca [REM] website_blog: remove path field on mail.message
It comes from old age and does not seem used anymore.
2018-01-04 16:57:45 +01:00
Thibault Delavallée b12f8c2bc0 [CLN] website_blog: remove dead controllers for posting and discussion management
It probably comes from old medium-like-stuff comment management that has
been removed since. Discussion on blog posts is now a simple chatter
and does not require all those controllers.
2018-01-04 16:57:10 +01:00
Yenthe V.G e7f76783b6 [IMP] {website_}sale: remove old checkbox widget
No longer exists, making a warning

Closes #22016
Fixes #21099
2018-01-04 16:31:16 +01:00
Martin Trigaux ad3b28fd89 [FIX] base: do not insert duplicated translations
This will avoid unique constrain to be raised in the scenario of a record having
multiple ir.model.data entries to the same record.

This can be reproduced in standard with the following scenario

1. The product.template product_product_4_product_template has multiple variants
   product_product_4
   product_product_4b
   product_product_4c
   ...

2. At the creation of the records, ir.model.data are automatically created
   product_product_4_product_template
   product_product_4b_product_template
   product_product_4c_product_template
   ...

   While this could/should be fixed too. Having several ir.model.data to the
   same record is not forbidden and could be reproduced in different ways.

3. Export the translations
   #. module: product
   #: model:product.product,description_sale:product.product_product_4
   #: model:product.product,description_sale:product.product_product_4b
   #: model:product.product,description_sale:product.product_product_4c
   #: model:product.template,description_sale:product.product_product_4_product_template
   #: model:product.template,description_sale:product.product_product_4b_product_template
   #: model:product.template,description_sale:product.product_product_4c_product_template
   msgid ""
   ...

   As the field description_sale is present on both model and is translatable

4. Load a .po file with these translations
   The 3 product.template entries points to the same record, making the unique
   constrain raise an error

This error can also be reproduced with the project_time_mode_id_duplicate_xmlid
field creating two xmlid for the same ir.model.fields

Closes #21472
2018-01-04 15:22:12 +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
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
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
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
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
Christophe Simonis 55b810dc70 [MERGE] forward port branch saas-11.1 up to 726b91b9fb 2018-01-03 14:05:48 +01:00
Christophe Simonis 726b91b9fb [FIX] test_mail: bump query count (bis) 2018-01-03 13:20:28 +01:00
Christophe Simonis de2de75589 [FIX] test_mail: bump query count 2018-01-03 12:58:34 +01:00
Christophe Simonis 362f0489d0 [MERGE] forward port branch 11.0 up to fe22a0f9ca 2018-01-03 12:28:52 +01:00
Andrea fe22a0f9ca [FIX] website_sale_management: Fix auto_install typo in manifest 2018-01-03 12:03:04 +01:00