Commit Graph
111821 Commits
Author SHA1 Message Date
Thibault Delavallée 4e11d2fcb0 [CLN] account: perform some guidelining and cleaning
* rename some files according to guidelines;
 * clean template name to clean their ordering and ease template browsing;
 * use html type for mail templates body instead of cdata;
 * clean html for mail templates introduced at 96da10de6cc20486b3e37fd4c6c88eb61cbb919c;

No horse has been harmed and no functional change performed.
2017-08-25 11:41:41 +02:00
Thibault Delavallée ac001c8f98 [FIX] website_crm_partner_assign: update customer portal
Integration in customer portal of this module has not been updated with
last changes done in customer portal. This commit fixes that.

 * update breadcrumb use;
 * update titles;
2017-08-25 11:41:40 +02:00
Hareshkumar Shyara bc1b452159 [IMP] account: improve usability of Cash Basis Taxes
- Replace 'Use Cash Basis' checkbox by 'Tax Due' having two radio buttons,
    - Based on Invoice (default)
    - Based on Payment
- "Tax received account" display only when we select "Based on Payment"
- Changed the field name 'use_cash_basis' into 'tax_exigibility'.

Was PR #17326
2017-08-25 11:21:31 +02:00
chv-odoo 8bc292afcd [IMP] account: remove 'cancel' button in bank statements
that button was not useful: the only way to cancel a bank statement is to unreconcile the entries. And to unreconcile the entries you have to set your bank statement back to draft.  Was PR #16632
2017-08-25 10:59:05 +02:00
Divyesh Patel a7ebd8a5f4 [IMP] l10n_us: rename account 'Cost of Revenue' into 'Cost of Goods Sold
Was PR #17882
2017-08-25 10:28:52 +02:00
Dipali Tank 9d15a77b5f [IMP] l10n_us: Add field 'ABA/Routing' on res.partner.bank
All accounts in US required it for domestic wires. Was PR #17585
2017-08-25 09:49:00 +02:00
amoyaux f4f8bbaf9c [REF] stock: remove picking calendar view
This view is no more used in interface.
2017-08-25 09:34:18 +02:00
amoyaux 407c8cbc24 [IMP] stock: sheduled date update with picking delivery type
When deliver all at once on a picking the expected date for it
was the minimum expected date between the stock move
for this picking. (same behavior as partial delivery)

This commit merge both min_date and max_date field in a single
field named shceduled_date. It replace min_date in views by
sheduled date that varies following picking move_type.
2017-08-25 09:29:36 +02:00
Christophe Simonis dd62456ead [MERGE] forward port branch saas-17 up to bfd8224dd4 2017-08-24 21:36:04 +02:00
Christophe Simonis bfd8224dd4 [FIX] account: correctly create set from list 2017-08-24 21:33:09 +02:00
Thibault Delavallée 8b384ae612 [FIX] portal: remove condition for customer details breaking tests
Original commit e38de9dfa4 is about CSS classes and state code
update. It is not clear why hiding Your Details in some cases improve the
state code update. Forward port 017ee5eab3 broke the customer portal
display using this condition. This commit fixes the customer portal by
removing the condition.

Second part of the original fix that was about using a correct base layout
to render the your details page is already done in master since the
customer portal cleaning.
2017-08-24 17:08:37 +02:00
Thibault Delavallée f056caa911 [MOV] web, portal: put all customer portal less into a single file
Two things happen in this commit

 * move portal less from web to portal. This code has been wrongly
   moved to web when moving the customer portal and should be in
   portal module;
 * merge customer portal generic less and customer portal chatter
   specific less into the same file;

We should now have only one less file for customer portal less and
located in the right addon.
2017-08-24 17:07:59 +02:00
Thibault Delavallée 50f5d28c80 [MOV] web(_editor): move image rendering from web_editor to web
Currently the image field rendering in QWeb using the /web/image
controller is done in web_editor. However there is no link between
the web editor and the rendering. The rendering can therefore be moved
directly in web.

During the move two options have been added to the rendering of image
field :

 * qweb_img_raw_data: fallback on standard base64 behavior that is
   otherwise impossible to achieve;
 * qweb_img_responsive: True by default, add the img-responsive
   class that is not always requested;

Thanks.
2017-08-24 17:06:07 +02:00
amoyaux 9db0bf1331 [FIX] stock: show_details view error on edit button
Show details view should directly relfect the stock move line
related to a move. However the user was not able to update
locations and it still exists a button that allow to edit
the move line. Since the move line is the final object everything
should be directly editable and the button should not exist

This commit update the view in order to be able to edit information
directly on it.
2017-08-24 15:27:50 +02:00
amoyaux d6c7749344 [FIX] mrp: workorder qty update consumed quantities
This commit correct some variables renaming forgot in
the stock refactoring introduced by commit 0a76e158e1

It also add a invisible field for active_move_line_ids in order
to pass them to the create and avoid the error about uom_id.
2017-08-24 15:27:28 +02:00
amoyaux cdd7f09520 [FIX] stock: action_assign groupby failure
The function action assign on stock move try to comprare
moves origin and moves dest in order to guess the available quanity.
However with return it happens that the group by method could return
twice the same key.

The method sorted was not correctly used because it used recordset
comparator instead of their id. Sorted on recordset use set comparaison
(superset, subset,..) as defined in models.py with method __gt__, __lt__,...

This commit change the function used on sort in order to use id but
keep the old way on groupby so that we are able to get back recordset.
2017-08-24 15:26:59 +02:00
amoyaux abc482c3d4 [REF] stock: remove function action_show_picking
It is useless and no more used since refactoring introduced
in saas-17
2017-08-24 15:26:14 +02:00
Christophe Simonis eceb173653 [P3] *: stop using cStringIO 2017-08-24 15:17:24 +02:00
Christophe Simonis 6587eaaf0f [IMP] test_pylint: do not load default config file
This will avoid useless warning when the file does not exists and
possible false positive errors in case of invalid config in this file.

Also strip output

Cherry-pick of c955c3051c
2017-08-24 14:54:38 +02:00
Christophe Simonis a567b50035 [IMP] test_pylint: check for badly written try/except
Cherry-pick of 0ebe59f5d0
2017-08-24 14:52:49 +02:00
Christophe Simonis 900701213f [IMP] test_pylint: check for python3 incompatibilities
Cherry-pick of 9882f24313
2017-08-24 14:51:06 +02:00
qdp-odoo fff4d41da2 [FIX] account: removed unecessary styling on invoice form view.
This extra styling was limiting the field to few digits whereas there was no reason to do so. Fixes #18996
2017-08-24 14:43:30 +02:00
Jérome Maes 1afa69cd35 [IMP] sale_timesheet: add test for upselling
Now we test adding a service line on a confirmed
sales order. This new line should create a task
or a project, according to the product configuration
2017-08-24 14:23:09 +02:00
Christophe Simonis 4837f4ef17 [FIX] *: leftover invalid uses of pycompat 2017-08-24 13:43:19 +02:00
Christophe Simonis 017ee5eab3 [MERGE] forward port branch saas-17 up to 877e709871 2017-08-24 13:17:53 +02:00
Pierre Masereel 837789fec2 [FIX] sale_stock: update SO delivered quantity
When a picking is done and the quantity done of a move is update, the
delivered quantity of the linked sale order is not updated because it's
only updated on action_done of a move.

To fix this we override the write function of stock move in the
sale_stock module to update the delivered quantity of the corresponding
sale order line
2017-08-24 11:29:10 +02:00
Pierre Masereel c8f1581060 [FIX] purchase: update received quantity of PO
When a picking is edited in done state, the related purchase order line
received quantity is not updated.

To fix this, we add a depends on the product_uom_qty of its stock moves
which is changed when a move is edited in 'done' state
2017-08-24 11:28:11 +02:00
Simon Lejeune fa62521537 [FIX] stock: stock.move.line's write
Make sure that a move's `product_uom_qty` is equal to its
`quantity_done`, even after writing on a done move line.
2017-08-24 11:28:11 +02:00
Géry Debongnie 006c16198f [FIX] web: increase timeout for JS unit tests
Some runbot servers are quite slow in the midday, and they fail the unit
tests because the 3min timeout is reached.
2017-08-24 11:00:06 +02:00
Sanjay Jamod 6416d44f4c [IMP] web : add caret to statusbar buttons dropdown in mobile view 2017-08-24 10:50:51 +02:00
Richard Mathot 594ff13f58 [IMP] base: log user id triggering module (un)installations
After a few tickets with clients asking "who installed this app?", we
will be able to answer with this.
2017-08-24 09:55:38 +02:00
Xavier Morel 56704c19d6 [FIX] account: iteration different under ordereddict mutation
Did you know that if you iterate on an OrderedDict in Python 2 and add
to the dict during iteration, the new items will be iterated? No? Me
neither.

And did you know that that does not work in Python 3 likely because
OrderedDict's implementation details changed? Why the fuck would
anyone do that and thus why would we care you ask?

WELL WE FUCKING DO IT TURNS OUT and that breaks
test_partial_reconcile_currencies on Python 3...

Fix it, try to make it more obvious that we're doing weird crap
instead of abusing OrderedDict in ways it was never meant to be used.
2017-08-23 19:00:17 +02:00
Christophe Simonis 877e709871 [MERGE] forward port branch saas-16 up to db0810dc6e 2017-08-23 18:20:46 +02:00
Christophe Simonis db0810dc6e [MERGE] forward port branch saas-15 up to 0cfbc7581f 2017-08-23 18:15:56 +02:00
Christophe Simonis 0cfbc7581f [MERGE] forward port branch saas-14 up to f8bf335aea 2017-08-23 18:14:18 +02:00
Christophe Simonis f8bf335aea [MERGE] forward port branch 10.0 up to 420e433fa3 2017-08-23 18:12:24 +02:00
Christophe Simonis 420e433fa3 Revert "[FIX] website_sale: Avoid compute tax for every company"
This reverts commit 04cddc447b.

Public user can't read taxes (map_tax() only play with ids)
2017-08-23 18:07:38 +02:00
Christophe Simonis 30bd5ac0e9 [MERGE] forward port branch saas-16 up to aec6248bb3 2017-08-23 16:44:58 +02:00
Christophe Simonis 7f2bd08608 [FIX] core: define float_utils.round also in python2 2017-08-23 16:31:57 +02:00
oco-odoo d7f75040c6 [IMP] account: reintroducing the journal items.
Was task 31306. Was PR #15547
2017-08-23 15:58:49 +02:00
Jérome Maes aec6248bb3 [FIX] sale_timesheet: apply correct discount in revenue computation
The discount is saved as a percentage, not in a decimal value
between 0 and 1.
2017-08-23 15:21:38 +02:00
Jérome Maes a8bb544628 [FIX] sale_timesheet: take care of the UoM for revenue computation 2017-08-23 15:21:37 +02:00
Jérome Maes 3bcea6389a [FIX] sale_timesheet: color invoiced timesheet on task
When the invoice is validated, the related timesheet are
set as invoice, and are not updateable anymore.

In order quantity, create and confirm SO, log 2 timesheet
lines and validate invoice. Your 2 timesheet lines will be
mark as invoiced. The other hour to deliver will not be linked
to the invoice (and their revenue=0), so the futur lines will
be updateable. But for the 2 first, the user will have to create
a new timesheet line, intead of updating an existing one. The
color will tell him which line is invoiced.
2017-08-23 15:21:37 +02:00
Jeremy Kersten a5d05ae783 [FIX] mass_mailing_event_track: remove duplicated string
Text was displayed 2 times
2017-08-23 15:18:11 +02:00
qsm-odoo e0d5a875f0 [FIX] web: make "slow" create of m2o fields work
There were some coding mistakes since some changes introduced by
https://github.com/odoo/odoo/commit/d19671f0d0ff7189055cbe0794afed32f8a387e6
2017-08-23 15:14:37 +02:00
Christophe Matthieu 11af3b7339 [FIX] account: unless query when remove partner in reconciliation widget
When the user remove the partner, the reconciliation widget try to read
information on 'res.users' without any partner id.
Open the match view when change the partner.
Remove max-height which can hide the last proposal.
2017-08-23 14:47:49 +02:00
Christophe Matthieu 0b4f3542b2 [ADD] account: reconciliation widget, add load more button in widget to load more statements 2017-08-23 14:46:07 +02:00
Christophe Matthieu cf03a74c32 [IMP] account: reconciliation widget: add a test for load more button 2017-08-23 14:45:46 +02:00
Cedric Snauwaert 1de418aa7a [ADD] account: reconciliation widget, add load more button in widget to load more statements 2017-08-23 14:45:46 +02:00
Xavier Morel 8361ec8819 [FIX] phantomjs for p3
P2 and P3 subprocess stdout seem to have very odd/different behaviours
in the face of mixing select and buffering.

Use raw/low-level IO (os.read) with select to try and fix that
up. Also read more than one byte at a time since os.read will not
block *if* the fd is readable, it will just get whatever data is
immediately available.
2017-08-23 14:34:50 +02:00