Commit Graph
117156 Commits
Author SHA1 Message Date
Christophe Simonis 1970761554 [MERGE] forward port branch saas-6 up to 57868ca195 2017-09-27 13:16:37 +02:00
Christophe Simonis 57868ca195 [MERGE] forward port branch 8.0 up to 8a187c5b1d 2017-09-27 13:15:55 +02:00
jpr-odoo 23d7c53424 [FIX][IMP] portal, sale: fix and improve UX for signature form in customer portal
* set height for draw signature when user want to accept order to avoid
   various display issues;
 * fix name input not being displayed as error if trying to sign with a
   void partner name;
 * no more show 'Accept & Sign' button if customer signed document;
 * update message string for success message after signature;
 * add an option to specify the signature button label and use it in
   sale customer portal;
 * improve return of signature route to return more specific error
   messages;

This commit contains squashed code from @rop-odoo .
2017-09-27 13:02:24 +02:00
jpr-odoo 9d9f4cccdb [IMP] sale: better display taxes in order display on customer portal
Do it like sale order report.
2017-09-27 13:02:24 +02:00
Dhaval Suthar 896487c063 [FIX] sale: fix and improve behavior of sale customer portal
* display canceled or done status of quotations on quotation page
   view in order to ease user navigation;
 * allow to filter on state;
 * fix breadcrumb for canceled quotations, currently telling 'Sales
   Orders' instead of 'Quotations';
 * display order shipping address only if multi address group
   is activated;
 * display order expiration date on sale order customer portal;
 * when signed, add help message on disabled 'Sign' button telling
   when and by who the order has been signed;
 * fix download button display and alignment in quote template

This commit contains squashed commits coming from @jpr-odoo and
@abh-odoo .
2017-09-27 13:02:24 +02:00
Aaron Bohy c52b7ebd26 [FIX] web: tests: invalid XML in the arch
not detected by the runbot... but so the test isn't executed.
2017-09-27 13:01:04 +02:00
Aaron Bohy ca258b8691 [FIX] web: style of required fields in x2many lists
In community, the input/textarea of required fields should have a
blue background. Before this rev., this wasn't the case inside
lists.

Closes #19689
2017-09-27 12:13:58 +02:00
Aaron Bohy 2d3e5711f1 [FIX] web: escape pressed in editable list in dialog
should discard the edited row, but not close the dialog. Before
this rev., it was closing the dialog.
2017-09-27 12:13:58 +02:00
Martin Geubelle df04910d2a [FIX] *: correctly use session
Widget has no attribute `session` since the new views.

One should either use `getSession()` or require `web.session` (both
cases are correct).
2017-09-27 11:04:08 +02:00
Martin Trigaux 6f6a69ec23 [FIX] transifex: allow both python import
Now that @jem-odoo has finally migrated to python3
2017-09-27 10:30:49 +02:00
Dhaval Suthar 9ae6feb934 [FIX] sale: set sign as default option for online signature and payment options 2017-09-27 10:30:01 +02:00
Luis Ernesto Torres Macías 82e205701e [FIX] l10n_mx: fix DIOT report by adding tags
- DIOT report is splitted in some columns like Tax 16% , Tax 0%, Retention and Exempt. was added a tag by each column, to allow indicate the correct column. However, this report is broken since this commit:

https://github.com/odoo/odoo/commit/3fb4159ad9c9b9488912292b7b339d9f1fd2ce3c#diff-0cd8c6aab13e39d5fe3ec259db54035cL3)

- Assign the new tags in the correct tax
2017-09-27 10:24:54 +02:00
Pierre Masereel c493569866 [FIX] stock, barcodes: allow force detailed view of picking and rename barcode 'CANCEL' to 'DISCARD' 2017-09-27 09:21:17 +02:00
Pratima Gupta 55c0221e38 [IMP] stock, mrp{,_repair}: warn when operating on out of stock products
This implements a warning when the user tries to do any of the
following operations on a product that is not in stock:

- Scrapping
- Unbuilding
- Repairing

The warning displays the current stock of the product in question per
location which can be helpful in case the user selected the wrong
location.
2017-09-26 21:36:10 -07:00
Pratima Gupta a5de785969 [IMP] stock: open stock.move.line when clicking on scrap smart button
Instead of stock.move.
2017-09-26 21:36:10 -07:00
Pratima Gupta 6e6e8f1cc4 [IMP] mrp_repair: require lot immediately when creating repair lines
Instead of only checking when actually confirming the repair.
2017-09-26 21:36:10 -07:00
Pratima Gupta 578ebc6f6e [IMP] mrp: make smart button on mrp.unbuild open stock.move.line
Instead of stock.move.
2017-09-26 21:36:06 -07:00
Rohit Ramnani 088a329749 [FIX] mrp: force computation of time_cycle in workcenter form view
Without this time_cycle is not computed in the tree view on new
workcenters created through 'Add an item'. This leads to the
time_cycle field being displayed as NaN:NaN. This forces computation
on the form view opened through 'Add an item' which solves the issue.
2017-09-26 20:04:19 -07:00
Suraj Shukla 7295ed473e [FIX] mrp: allocate more room for oee field on kanban card
To avoid it overflowing past the edge of the card.
2017-09-26 20:00:33 -07:00
Jaykishan Solanki 9345463582 [FIX] mrp: remove top button to block workcenters on kanban
These buttons are already present at the bottom of the card.
2017-09-26 19:56:30 -07:00
Sanjay Jamod 75780c1b18 [FIX] stock: default product when creating lot from template form
stock.production.lot links to product.product, so don't do it if the
template has >1 variant.
2017-09-26 19:54:20 -07:00
Ankit Joshi 10d1149edf [FIX] stock: show virtual_available and fields that compute it as float
Essentially undoing what was done at
ccd50b7ecd. This no longer seems
necessary as the new webclient seems to handle this fine.
2017-09-26 16:49:43 -07:00
Joren Van Onder 5539c54d61 [IMP] l10n_co: update and simplify
This simplifies the chart of accounts and taxes to only the common
ones used. It also updates some changes that took place (eg. the VAT
increase from 16% to 19%). Lastly it implements some additional fields
on res.partner: a document type and a verification code that is
calculated based on the VAT.
2017-09-26 11:11:54 -07:00
Martin Trigaux 88edeeca6a [FIX] preventing context.get('lang')
The lang in the context can be None or False
To avoid similar error as revealed at ede29e6d, correctly retrieve the context
2017-09-26 16:58:59 +02:00
David Monjoie a3828dfed3 [FIX] web: fix o_row mechanism with phone field
The o_row class mechanism is supposed to be used to put another
element next to a field, like a button for example. However,
in the case of phone and email field, the o_text_overflow hack
gets in the way.

The problem that o_text_overflow is trying to solve is when you
have a long email, the table used to display the form view fields
tends to use very long cells (td) so it can display the whole email
address. This behavior completely breaks the form view, even though
the email address is clearly set to wrap in css. The o_text_overflow
class is a hack that forces the table to think that the email is
small, then defaulting to the width 50% css rules. If the email is
too long, it is correctly wrapped inside the cell, without breaking
the form view layout.

However, when we need to add a button next to those fields, this
hack gets in the way of the o_row class css rules, completely
wrecking it. We looked for a fix with qsm-odoo for hours but were
unable to find one that did not require a complete rewrite of the
form view css rules. In the end, we decided to remove the hack from
the phone field and keep it on the email field, as we think it is
less common to have a very long phone number than to have a very
long email.
2017-09-26 16:21:51 +02:00
Axay Javiya ede29e6d31 [FIX] l10n_be_hr_payroll_fleet: fallback for no language
If the context is lang=None, it crashed as called babel with a None locale.

Closes #18403
opw-756026
2017-09-26 16:16:50 +02:00
Simon Lejeune 096a39b3e9 [FIX] stock, mrp: _get_similar_move_lines
try to make it work actually.
2017-09-26 16:12:16 +02:00
Simon Lejeune 0f24652b29 [FIX] stock: move line's onchange
We have te remove self, because as it's an onchange working on a 0 orm
command, the onchange is executed on a recordset on a new id without
client ref but, when we go up and down in the relations to find our
siblings, the newid recordset with a client ref is present, meaning we
have our record duplicated.
2017-09-26 16:12:16 +02:00
rde 741e003b94 [REF] website: rename ir_ui_view_id by view_id to fit odoo coding style 2017-09-26 16:10:39 +02:00
Kishan Gajjar f435f72a27 [IMP] website: Limit size of favicon
Before this commit, if you uploaded a big image, it would break the settings
screen.

Now, the image will have its displayed size limited to 90px
2017-09-26 16:10:38 +02:00
rde 2a43636ae9 [FIX] import_xml: ir.ui.view model does not have a page attribute anymore
Before this commit, user could set page attribute on <template> tag in xml
Now, we prevent user to be able to set page attribute.
2017-09-26 16:10:38 +02:00
rde 976dc2bea0 [IMP] website: website manager - change tooltip & label to be more clear
+ website.page should not have the option 'edit in backend' in the navbar like
blog post, product, jobs..
2017-09-26 16:10:38 +02:00
rde 53ae8becd4 [FIX] website_blog: repair blog post save
Before this commit and since the huge JS refactoring, when you were editing
a blog post it wouldn't save your modifications if you touched the title or
subtitle of the blog.

This was due to title & subtitle getting considered as the cover itself
when saving (_saveElement) because they are inside the cover (in a HTML point
of view).
So if you had modified both the cover, the title and the subtiltle, it was:
	1. Saving the cover
	2. Saving the cover again
	3. Saving the cover again

Now, _saveElement is called as it should, for the same case, it is:
	1. Saving the cover
	2. Saving the title
	3. Saving the subtitle
2017-09-26 16:10:20 +02:00
rde 8baabfb6be [FIX] website_*: convert old ir.ui.view page=True into website.page in 1 record
Before this commit, website.page xml record were created in 2 steps:
	1. Create an ir.ui.view record with <template> tag
	2. Create a website.page record with <record model="website.page">
But this is useless since website.page inheritS ir.ui.view, you can create both
records just in one <record> tag.

Note: This is NOT TRUE in every case:
Odoo's ORM will suffix external_id of inherited records (in this case the
ir.ui.view created through the website.page record) with its model's name.
This can be a problem in some case (this is an example):
	website_crm_template.xml create an ir.ui.view inheriting the
	ir.ui.view 'website.contactus'.
	But if we didn't keep website.page & ir.ui.view records split for that
	specific case, the ir.ui.view would inherit a website.page record
	causing an error. (website.contactus would be the id of the page record
	while the ir.ui.view's id would be website.contactus_ir_ui_view)

In short: when migrating an ir.ui.view (<record> xml) to a website.page:
	* If there is record inheriting the ir.ui.view ID, then split
	  website.page & ir.ui.view
	* if not, you can create the website.page and its ir.ui.view both in one
	  record (<record model="website.page").

This commit also removed remaining page="True" from xml template since we
removed the 'page' attribute from ir.ui.view model overrided in website module.
2017-09-26 16:08:14 +02:00
rde 0426849de1 [IMP] website, website_crm, website_hr_recruitment: remove useless name field from website.page
Before this commit, website.page had a 'name' field which was useless because
website.page inheritS from ir.ui.view which has its own 'name field.
At the end, we were duplicating/synchronizing 'name' field between
website.page and its ir.ui.view for no reason because we were always using the
one from ir.ui.view.

Now, getting website.page's name will always retrieve the one from its
ir.ui.view and there is no redundant information.
2017-09-26 16:07:16 +02:00
Richard Mathot db543c1269 [FIX] delivery: missing dependency 2017-09-26 14:54:29 +02:00
Richard Mathot 7949fe0bfa [DOC] calendar: warning about a headache-prone bug 2017-09-26 14:38:08 +02:00
qsm-odoo e520aabc43 [FIX] website_slides: allow upload of >20MB files (as limit is 25MB)
There is a double-check (on client and on server) to prevent the user to
upload a >25 MB document. The client checks the actual file size while
the server guesses it from the total received payload. This server guess
is wrong as the extra payload is quite huge (5-10MB). Now the server
checks the real file size as it should have from the beginning.
2017-09-26 14:04:55 +02:00
Aaron Bohy 28a2ba00ac [FIX] web: Calendar: update breadcrumbs and buttons
In calendar views, the breadcrumbs should display the period
displayed in the view (e.g. in month mode, something like 'April
2017'). Moreover, the 'Day', 'Week' and 'Month' buttons should be
highlighted when the corresponding mode is used.

This rev. ensures that this is the case.
2017-09-26 14:01:49 +02:00
Kirti Choudhary 7afa220171 [IMP] crm: set next activities default group by in kanban view
Purpose
=======

When clicking on next activites in the systray, I expect to see the leads grouped by stage which is not the case.
2017-09-26 13:54:08 +02:00
Daniel Reis 53fe7ae462 [IMP] modules: on module update or init always update module list
Was only done when updating base.
The cost of scanning the addons path should small in comparison to the update
time itself.

Followup of #9133
Closes #9140
2017-09-26 13:32:53 +02:00
Yannick Tivisse 2447c94cd0 [FIX] project_timesheet_holidays: Allow to create a company if not project manager
These modifications are legit as the method is private and the user has the right to create a company.

This will create an internal project and a dedicated task.
2017-09-26 12:59:25 +02:00
Lucas Perais (lpe) be997fc113 [FIX] account: fall back to YEAR/12/31 for fiscalyear 2017-09-26 12:58:27 +02:00
Hetashree Chauhan 8efecd31bd [IMP] mail: labels for sending mail to all recipients has been changed 2017-09-26 12:21:25 +02:00
Odoo Translation Bot 8a187c5b1d [I18N] Update translation terms from Transifex 2017-09-26 11:47:00 +02:00
Raphael Collet e671679183 [FIX] fields: do not use int() to retrieve record id
When reading a one2many field, the inverse field of the retrieved lines may
already be assigned in cache to a new record.  This can happen during an
onchange.  In that case, the algorithm crashes.  Let's clean it up!
2017-09-26 11:43:37 +02:00
Fabien Meghazi cc9eb8c498 [FIX] P#: ir.mail_server: fix bug introduced in 200612ca1e
The variable `email_body_utf8` has been renamed to `email_body` during
PythonThreeTization but there is a leftover:

https://github.com/odoo/odoo/commit/200612ca1ef1#diff-85eeeed32c7f2fe285884f3661b49881R326

Backport of 63a4370afd
2017-09-26 11:33:33 +02:00
Axay Javiya 484d33d931 [FIX] point_of_sale: fix traceback on 'Analytic Rules' stat button 2017-09-26 11:17:23 +02:00
Martin Trigaux d5d9756b1e [FIX] web: untranslated choice in widget domain
For boolean fields, the choice is "set (true)" or "not set (false)"
Missing _t to translate it
2017-09-26 11:04:00 +02:00
Sanjay Jamod 67d1173bf3 [IMP] auth_signup: Disable 'Sign Up' button to prevent user from continuous clicking 2017-09-26 11:02:26 +02:00