Commit Graph
117156 Commits
Author SHA1 Message Date
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
qsm-odoo 6e22e8b027 [FIX] web: use 'o_input' class on kanban progressbar <input/>
Since the new views, the 'o_input' class has to be set explicitely on
<input/>, <select/> and <textarea/> elements to have the proper styling.
2017-08-25 10:37:37 +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
tbe-odoo 26ece11b97 [FIX] JS tours 2017-08-24 17:54:05 +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
Christophe Matthieu ea60ec029d [FIX] account: traceback in reconciliation widget
If a user reconcile an active line, when he active an other line, the
widget can't close the removed line because it no longer exists.

bug introduce by https://github.com/odoo/odoo/commit/1de418aa7afb986eeb2b98f12dee0c5661902737
2017-08-24 16:20:29 +02:00
Nicolas Martinelli f4270a244e [FIX] hr_payroll: missing field in view
opw-767431
2017-08-24 16:00:01 +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
Nicolas Martinelli dedff1842b [FIX] account: account domain in reconciliation
In the reconciliation widget, create a counterpart line. No domain is
applied on the "Account" field regarding the company, meaning that we
can select an account from any company.

opw-694149
2017-08-24 14:43:04 +02:00
Do Vuong Tien 11c523f693 [CLA] Signature for vuongtien2411
Done at #19025
2017-08-24 14:32:52 +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
tbe-odoo a0fcbd6fbe [FIX] payment: Some input were not set
- e-commerce and website_quote create a transaction with its reference when the user click on Pay.
So we need to render the inputs when the user click on pay and submit the form with the values
2017-08-24 13:48:08 +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
tbe-odoo ba739fcd8f [FIX] payment_authorize/paypal: Fix tests 2017-08-24 11:20:14 +02:00
tbe-odoo b25539df0d [IMP] payment: Remove ugly render() hack
- Removed an ugly hack that renders s2s forms then display them using t-raw, we're now providing the xml_id of the s2s forms and uses t-call instead.
2017-08-24 11:20:14 +02:00
tbe-odoo fab7266761 [IMP] website_quote/sale,payment: Support of the new payment form
- Online quotation and e-commerce now use the new payment form.
- Added the ability to chose on an acquirer if it uses only form/s2s or both.
(Still need some code cleaning)
2017-08-24 11:20:14 +02:00
tbe-odoo ffcd95aaa9 [IMP] website_sale: Added S2S payment with new payment form
- Added the support of form payment.
- Fixed payment form's errors not being displayed.
- Fixed a crash when paying on e-commerce with a saved token.
(dev commit, need to clean the code)
2017-08-24 11:20:14 +02:00
tbe-odoo fc17776f31 [ADD] payment: Added data for payment options
- Added the most used payment option (credit cards) in the world and assigned which payment acquirers can use them.
- Added the form templates for each payment acquirer.
2017-08-24 11:20:14 +02:00
tbe-odoo 378f4cdfec [IMP] payment: Supported payment options
- Added the ability to specify which payment option each payment acquirer supports and,
    displays those payment option on e-commerce footer.
2017-08-24 11:20:14 +02:00
Nicolas Martinelli 7ec4f2d6f5 [FIX] project: # Days to Close
Take into account the End Date for task analysis.

opw-767245
2017-08-24 11:15:13 +02:00
Goffin Simon 2eac9788f6 [FIX] l10n_multilang: Getting translations of templates from records
Bug:

Before the the fix, when trying to get all the translations of templates from a
specific model:
-All the translations for the templates of this model were catched first -> TT
-All the records of this model for a specific company were catched afterwards -> RC

Then, the linked between the translations(TT) and the records(RC) were made in function
process_translations.

But in some cases, a few records were removed and then it raised an error because the number
of translations was different than the number of records.

Fix:

Thanks to the function create_record_with_xmlid in addons/account/models/chart_template.py, all the records
created from a template have an xml_id in ir.model.data with str(company.id)+'_'+template_xmlid.name

So with this way, it is possible to catch only the records created from a template.

opw:767095
2017-08-24 11:00:28 +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
Géry Debongnie c0247e6a8d [FIX] web: correct evaluation for x2many fields in onchanges
Before this commit, it could happen that a x2many field was considered
invalid, which prevent triggering onchanges, even though each of its
required fields are properly set.  Here is such a scenario:

We have a one2many field something_ids in a form view, with an inline
tree view, which contains a field X.  The field X is required on the
model, but marked required="0" in the inline view.

In that case, we incorrectly evaluated the required modifiers: since the
attrs did not contain the required attribute, we fell back on the
field_get value, which is true in this case.  But this is not correct,
the fieldviewget already computed the actual modifiers and took into
account the fact that it was overridden.  We need to only look at the
modifiers.
2017-08-24 10:58:28 +02:00
Géry Debongnie 04470b8112 [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 10:58:27 +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
Raphael Collet 32aa7dc9a0 [FIX] models: implement change_default behavior for fields
The behavior is no longer implemented by the web client.  Implement it
server-side as part of the onchange mechanism, simply by defining onchange
methods for the fields that have the flag.
2017-08-24 09:37:55 +02:00
Jérome Maes d8c897de64 [FIX] sale_timesheet: uncomment forgotten code when testing previous fix 2017-08-24 08:37:30 +02:00
Aaron Bohy 6e4b59cc9c [FIX] web: Form: display button box in create mode
Before this rev., the button box wasn't displayed on new (not saved
yet) records. This wasn't the case before the new views.

This is a problem in lunch, as the lunch.order form view is opened
in create mode, and the balance is displayed in the button box.
2017-08-24 07:20:22 +02:00
Aaron Bohy 42f22a2161 [FIX] web: read context when reloading Graph or Pivot views
Before this rev., keys like pivot_measures, graph_mode..., were
correctly took into account at first load of Pivot or Graph view,
but not at reload.

Those keys are particularily useful when a user saves a research
to its favorites. When such a favorite is selected, the view is
reloaded and the interesting information is in the context.
2017-08-24 07:20:22 +02:00
Aaron Bohy acb9d60d94 [FIX] web: Pivot: handle __count__ measure
The former implementation of the Pivot view used __count__ as
magic field to display the number of records in groups. However,
in filters defined in xml, __count is used instead of __count__,
so it crashed when such filters were activated.

With the new views, we made those filters work by using __count.
However, if a user saved filters using __count__ at that time as
favorite, activating them in the new views produces a crash as
well.

This rev. adds a compatibility layer to ensure that the pivot
view handles both __count__ and __count measures uniformly.
2017-08-24 07:20:22 +02:00