Commit Graph
114793 Commits
Author SHA1 Message Date
qsm-odoo 4fc0079f5f [REF] web_editor, website: LESS simplification and correction
The variables.less file was producing CSS which was then multiplicated
by the number of bundles (see less_helpers).

Also simplify some LESS.
2018-01-10 17:54:22 +01:00
qsm-odoo 5da89f6152 [REF] portal, website, web, *: improve LESS split
* website_sale
2018-01-10 17:54:22 +01:00
qsm-odoo a5e9acfb69 [REF] portal, website, web: rename/regroup LESS files 2018-01-10 17:54:22 +01:00
qsm-odoo 27311c2b3d [REF] portal, website: portal LESS files cleaning
- website.ui.less was moved to portal for no reason
- rename portal_frontend.less to portal.less
2018-01-10 17:54:22 +01:00
Géry Debongnie cb72f172d0 [FIX] website_(event_)sale: fix tours in enterprise
Recently, a few tours started failing in enterprise.  The reason is that
there is some code in the e-commerce which folds the navigation bar
(with the page names), including the shopping cart counter.  Some tours
depended on the presence of that counter, and fails in enterprise, when
more modules are installed and the folding code is more likely to
actually run.

In this commit, we do not fix the core issue (not hiding the cart
counter), but we work around the issue by slightly changing the tours to
make them pass.  I believe that the website team will make that properly
work soon.
2018-01-10 16:19:42 +01:00
Simon Lejeune c16c46a00d [MERGE] mrp_repair: rename module to repair
This module does not depend on mrp
Was PR #18760
2018-01-10 15:33:09 +01:00
Haresh Shyara 232f474b62 [IMP] Update .tx/config for renamed module 'mrp_repair' to 'repair' 2018-01-10 15:30:50 +01:00
Haresh Shyara 5f6b0a7bc5 [IMP] repair: renamed model names xmlid
- Also rename file references with new one.
- model renamed
	mrp.repair to repair.order
	mrp.repair.line -> repair.line
	mrp.repair.fee -> repair.fee
	mrp.repair.cancel -> repair.cancel
	mrp.repair.make_invoice -> repair.order.make_invoice
2018-01-10 15:30:50 +01:00
Haresh Shyara d20e1d30a1 [IMP] mrp_repair: rename to repair 2018-01-10 15:30:50 +01:00
Kinjal Mehta 2d322b3682 [IMP] maintenance: Kanban card of maintenance.equipment
Do not display the owner's name considering its pic is already displayed and can be hovered.
2018-01-10 13:53:54 +01:00
Kinjal Mehta cb34934f3b [IMP] maintenance: On equipment, rename the field Warranty to "Warranty Expiration Date" 2018-01-10 13:53:54 +01:00
Kinjal Mehta a0e7c0d91c [IMP] maintenance: multi company aware
Add a company field on the maintenance equipment, equipment categories, maintenance request
and maintenance team (maintenance users from a company do not see equipments, categories
and requests from another company and Equipment Manager can create the maintenance teams).
2018-01-10 13:53:53 +01:00
Dhaval Panchal bbc9b329b5 [REF] stock: inventory adjustment: error message 2018-01-10 10:44:07 +01:00
Nicolas Martinelli 5a5a2fa796 [FIX] base_gengo: sandbox
Link setting to company setting, otherwise it is simply not saved.

opw-803036
2018-01-10 09:40:18 +01:00
Mehul Patel cb8a0b4575 [IMP] mrp: oee test case. 2018-01-09 16:17:04 +01:00
Martin Trigaux 98580ed730 [IMP] base_address_extended: more room for numbers
The space available for the house and room number is specified by the label size

House Number<field>Door Number<field>
takes max one column of size (about 147px) so makes the field very small for input

Rename the labels to make it smaller

Fixes #21927
2018-01-09 15:16:11 +01:00
Laurent Smet 57ecab7154 [IMP] account, l10n_*: merge tax_adjustement as a new type_tax_use 2018-01-09 10:26:50 +01:00
Laurent Smet 8ea187e74e [IMP] l10n_*: make bank_account_code_prefix/cash_account_code_prefix required 2018-01-09 10:25:53 +01:00
Thibault Delavallée 5c3e0391ac [IMP] test_mail: correctly set aliases when performing tests
In order to really test a production environment we have to ensure
some mail related config parameters are set. This has an impact on
some tests.

Which is strange is that it lessens query number of a test that
already uses those parameters. Maybe XMas spirit.
2018-01-08 17:04:57 +01:00
Ankit Joshi 314353bf43 [ADD]stock: create a tooltip for incoterm when no records exist. 2018-01-08 16:15:38 +01:00
Thibault Delavallée fc1348dd3d [REM] mail: remove unnecessary methods from mail.thread
* one dead method;
 * one unnecessary method to inline;
 * one unnecessary wrapper;
2018-01-08 15:04:56 +01:00
Thibault Delavallée 4622059b4d [REM] mail: remove 'message_last_post' mechanism
Thread mixin class adds a message_last_post field. This field may be
updated when a comment is posted, depending on a context key. Since a
while this context key is not used anymore. This means the field is never
updated. As it is used only as a filter in project we decided to remove
it.

This commit remove the field and the context key support. This kind of
specific feature can be done using customization if necessary in some
advanced use case.
2018-01-08 15:03:31 +01:00
qsm-odoo 2303dcb2a9 [IMP] web_editor, *: change height/margin system to padding system
* web, website, mass_mailing

Before this commit, the editor allowed defining the margin of some
elements and the height of some elements. There were three main
problems with this system:

1) When an user dragged the arrow, he often expected to change the
   size of the element while he was in fact changing the margin

2) When changing the margin, you increase the space between two
   elements but with a white space (while most users want a space
   with the same color of the block they are resizing = padding)

3) When changing the height, the user was able to hide snippet parts
   and the height was not consistent accross screen sizes

Now, the only thing you can edit is padding. There is only one arrow
for each direction, which allows increasing spacing and consistent
dimension at the same time.
The only feature that is lost with this change is the ability to
control vertical alignement of colored columns. This is not a problem
as colored columns are rare in our current snippets and there still
have the possibility to add margin classes by hand if necessary (there
are also plans to control vertical alignement another way).

Note: margin classes are kept for compatibility.
2018-01-08 13:54:25 +01:00
Martin Trigaux f68d33b6a5 [IMP] base: do not generate translations for untranslatable languages
The untranslatable langues were generating translation
Followup and fixes #9479
2018-01-08 11:58:18 +01:00
Thibault Delavallée 1d544087fa [FIX][IMP] purchase: set purchase_warn as non required
When reinitializing modules it is impossible to create partners if
purchase is installed because purchase_warn field has a required
column but no default value if the module does not depend from
purchase. Use case is trying to run test_mail tests with purchase
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 71181a0e39, dd47abdcc3 and 06a02ae4c2.
2018-01-08 09:42:10 +01:00
Fabien Pinckaers 028fd260a7 [IMP] base: improved action name to install modules 2018-01-07 20:10:07 +01:00
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