Commit Graph
117156 Commits
Author SHA1 Message Date
tbe-odoo 80edbe5dff [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-29 17:11:23 +02:00
tbe-odoo 64ae5e2bc3 [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-29 17:11:23 +02:00
Xavier Morel 1222422333 [FIX] p3: race condition when *reloading* an existing db
When re-launching Odoo on an existing database in Python 3.6[0] it's
possible that the scheduler will preempt the main thread
mid-module-import and run the cron thread which causes registry (and
module) initialisation with only a subset of the Python files loaded
and thus e.g. tries loading auth_crypt with a registry in which none
of res has been loaded makes for interesting situations.

Delay spawning the cron thread until *after* the registry preload at
least, though I don't think that actually entirely fixes the issue.

[0] and probably in any Python >= 3.3, I'm guessing it's related to
    the per-module import locks which replaced the old global lock:
    https://docs.python.org/3.3/whatsnew/3.3.html#a-finer-grained-import-lock

    though since ir.cron has little reason to import anything it could
    also just be Python 3 scheduler changes which allow/cause a
    context-switch during imports while the Python 2 scheduler would
    not allow that. IDK.
2017-08-29 16:54:32 +02:00
tbe-odoo e81fa1d3fd [IMP] Fixing the code to fit the reviews 2017-08-29 16:52:04 +02:00
qdp-odoo 5fb121e773 [FIX] account: fix error introduced in previous rev -_-
A model was removed at 9ec57ed0b9 but was still used in yaml test.
2017-08-29 16:36:44 +02:00
Christophe Simonis 722dbcfa07 [FIX] hr_expense: also consider cash journals 2017-08-29 16:09:02 +02:00
Christophe Simonis 6c6ba6c78a [MERGE] forward port branch 9.0 up to 81908899fc 2017-08-29 16:07:03 +02:00
Rémi Rahir 9ec57ed0b9 [REM] account: remove account.invoice.cancel
Removed useless class, not used except in a yml test.
2017-08-29 15:30:26 +02:00
amoyaux 209fd529f8 [FIX] stock : check backorder compare apples and oranges.
The function that checks if we need a back oder or not compares
the initial demand and the quantity processed on the picking.

When unit of measure are activated the initial demand (product_qty)
uses the uom of the product. However the quantity processed on the move
(quantity_done) uses the uom of the move.

This commit uses product_uom_qty instead of product_qty. Product_uom_qty
represents the initial demand transformed with the uom of the move.
It also add a small test with a back order that ensure the quantities
are correct.

It also repairs the test stock flow where in some case immediate transfer
return the back order wizard instead of processing the move. In these cases
we catch the back order wizard and run it.
2017-08-29 15:22:07 +02:00
qsm-odoo f6449bb464 [REF] web: remove shadow of folded kanban column
Seems like nobody likes this shadow, let's remove it.
2017-08-29 14:19:52 +02:00
Aaron Bohy 4f61e7f048 [FIX] web: WidgetDomain: don't crash on false domain
Before this rev., when the value of a field with widget='domain'
was false, the search_count RPC made to display the number of
records matching the domain crashed, and the widget displayed that
the domain was invalid. This rev. adds a fallback on [] when the
domain is false.
2017-08-29 13:59:49 +02:00
tbe-odoo 7d812ebe76 [IMP] payment,website_sale/quote: Renaming a field and labels 2017-08-29 13:50:14 +02:00
Rohan Patel 81908899fc [IMP] l10n_vn: created new tags and assign them to taxes
task: https://www.odoo.com/web#id=22700&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720
PR: #19064
2017-08-29 13:38:50 +02:00
qsm-odoo 501f3e9b45 [FIX] web: properly clear floats in kanban records
Before the new design, floats in kanban records were cleared using the
clearfix method. Now, the kanban color requires using the ::after
element, making the clearfix method unavailable. Hopefully, forcing the
creation of a block formatting context by forcing the display of kanban
records to `inline-block` should do the trick without affecting the
main layout.
2017-08-29 13:35:35 +02:00
Christophe Matthieu e55aa95f2a [FIX] website_sale: very slow shop grid and product view
The problem is present because there are more than 1000 variants for each
product. For display, the price of each product is recalculated (instead
of looking only at the last product)

opw-766897
2017-08-29 13:27:15 +02:00
Rawish Murari e8b5d84140 [IMP] l10n_lu: created new tags and assign to taxes
task: https://www.odoo.com/web#id=22558&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720
PR: #19102
2017-08-29 13:25:58 +02:00
Aaron Bohy c5bf53682e [FIX] web: prevent 'load' event from being handled twice
In grouped list view, when a pager is clicked inside a group, a
'load' event is triggered to reload the data with the new offset.
The event is handled by the list's controller.

However, when the list is in the modal, the event must be stop
propagated by the controller of the modal, so that it doesn't go
up to the controller of the view displayed behind the modal. It
happens for example by reproducing the following steps:
  - go to Lunch
  - add a line
  - search more products
  - group by vendor in the modal
  - unfold a group
  - click on the pager (the group must contain more than 80 records)

Before this rev., it crashed because the controller of the form
view tried to handle the event.
2017-08-29 13:12:34 +02:00
Rawish Murari 6fcf824309 [IMP] l10n_sg: create new tags and assign to taxes
task: https://www.odoo.com/web#id=22600&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720
PR: #19099
2017-08-29 13:09:23 +02:00
Rawish Murari 097a7e7047 [IMP] l10n_pl: created new tags and update taxes
task: https://www.odoo.com/web#id=22598&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720
PR: #19101
2017-08-29 13:02:49 +02:00
ptr-odoo 276f080638 [IMP] account: allow to archive journal, account.tag and analytic.tag
Currently there is no option to Archive / Unarchive Journal + Accounting Tag + Analytic Account Tag

task: https://www.odoo.com/web#id=27447&view_type=form&model=project.task&menu_id=4720
PR: #12864
2017-08-29 12:38:10 +02:00
Richard Mathot ccfc4e7026 [FIX] mrp: optimize computation of field "# Manufacturing Orders" 2017-08-29 12:28:41 +02:00
Akash Bhavsar 3267e76520 [IMP] account : Allow payment of 0 amount in write-off balance
The user can register a payment of 0 amount with "Mark Invoice as Paid" option and selecting an account to post the difference.

task: https://www.odoo.com/web#id=29959&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720
PR: #16429
2017-08-29 12:05:59 +02:00
Rawish Murari d2e33ba57c [IMP] sale: show invoiced and to invoice amount in sale report
Show amount to invoice and amount invoiced for each sale order lines to improve the sale report.

task: https://www.odoo.com/web?#id=21547&view_type=form&model=project.task&action=327&menu_id=4720
PR: #10280
2017-08-29 12:01:30 +02:00
Hareshkumar Shyara d686c9d5de [IMP] account: visible name field on the vendor bills
task: https://www.odoo.com/web#id=32207&view_type=form&model=project.task&menu_id=
PR: #16112
2017-08-29 11:56:22 +02:00
tbe-odoo 84e9b1137e [IMP] payment,website_payment: Change payment.option model name to payment.icon 2017-08-29 11:48:03 +02:00
Khoi Nguyen 5149e18ec7 [FIX] web: always display handle widget
Before this commit, a list containing a handle widget would only display
the handles associated with non-zero integer values. This is due to the
fact that unset fields are hidden in Odoo, while a field is by default
considered 'defined' if its value is truthy.

We override the isSet method for the handle widget to always return
true. This tells the handle widget that the associated integer value is
always defined, thereby ensuring that the handle will always be shown.
2017-08-29 11:41:32 +02:00
Christophe Simonis 5f37b8b315 Revert "[FIX] stock: delivery slip UOM"
Change unwanted in saas~17

This reverts commit b0d498c11d.
2017-08-29 10:50:16 +02:00
Aaron Bohy d93726f9ac [FIX] web,mail: only send fields in view for onchanges
The field 'display_name' is automatically added to the list of
fields to fetch when fetching a record. Before this rev., its
value was also sent alongside the fields in the view for onchange
RPCs. It shouldn't: only the fields in the view should be sent.

It produced a weird bug in the res.partner form view: open a
contact (company), add a sub-contact, save -> the display_name of
the contact was then '' (and 'Contacts' was displayed in the
breadcrumbs instead of the display_name of the opened contact).
This is because 'display_name' was sent to the onchange, which
returned '' as value (because of another bug python side). So as
it's value changed, when saving, the new display_name was sent to
the server (even if this field was actually readonly).

Before this rev., we also always fetched 'display_name' when
fetching list of records (read or search_read). This wasn't a bug
per se, but it might be a computed field, and it isn't necessary,
so we stop fetching it in that case if it isn't in the view (as
it was done in saas-15, before the new views).
2017-08-29 10:38:36 +02:00
Aaron Bohy f24c83efcc [FIX] web,mail: keep changes when scheduling an activity
The problem occurred in form view, in edit mode, when the user
did some changes in the form, and then clicked on 'Log or schedule
an activity'. When validating the activity, the fields mail_activity
and mail_thread were reloaded but all changes were discarded in the
process.

This rev. ensures to reload the requested field without discarding
the changes.
2017-08-29 10:38:36 +02:00
qdp-odoo db4f62bd11 [IMP] account: added settings for account_sepa_direct_debit module 2017-08-29 10:23:57 +02:00
qdp-odoo 69b421050a [IMP] account: revamp the sale/purchase menus' structure 2017-08-29 10:22:58 +02:00
qdp-odoo eaf71455f4 [ADD] tools: add some xml utilities
-create_xml_node()
-create_xml_nod_chain()
2017-08-29 10:17:27 +02:00
tbe-odoo efea6babbe [IMP] payment: Removed transfer button & fixed custom payment 2017-08-29 09:50:08 +02:00
Cedric Snauwaert e1cbaf7af7 [FIX] account: manual reconciliation widget was inversing debit/credit
Also add a lost functionality, when coming from payment view, pass account_move_line id to the context so that it is directly opened as a proposition in the reconciliation widget. If a matching line is found for that payment, also propose the matching line.
2017-08-29 09:45:02 +02:00
Laurent Smet ec5164510c [IMP] l10n_no: Create tags and assign them to taxes
task: https://www.odoo.com/web#id=22597&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720

PR: #19104
2017-08-29 08:47:11 +02:00
Nicolas Martinelli 4542c14513 [FIX] purchase: date rate
When creating an invoice from an PO, set the appropriate date during
currency conversion.

opw-767279
2017-08-29 08:39:38 +02:00
Christophe Simonis 38c77a5210 [FIX] point_of_sale: use correct variable name
Oversight of forward-port 657e328903

Close #19112
2017-08-28 18:24:19 +02:00
amoyaux 11244b5df7 [FIX] stock: calendar view should not be removed
I deleted calendar view from picking because I thought it was not
used anymore. However it was used in the menu item action thus it
returns a traceback when used and the picking menu was not accessible
anymore.

This commit revert commit f4f8bbaf9c
and fix the view instead by using schedule date instead of min_date
2017-08-28 17:01:05 +02:00
Goffin Simon 361a518010 [FIX] account: Automatic reconciliation button in manual reconciliation
Since 9.0, the button "Automatic reconciliation" is just used for the reconciliations
of bank statements. But the button appeared in manual reconciliation because the
qweb view "manual_reconciliation" extends "reconciliation".

The button must be invisible in this case because this feature is not implemented.

opw:767309
2017-08-28 15:49:17 +02:00
Jeremy Kersten 5d3cbf4d7a [FIX] hr_contract: fix auto pending/auto close
Before this commit, create a contract which expire in 2 months.
The cron will check all contracts that have a date_end >= tomorrow.
All contract with a end_date will be close.

Now we check all contracts that have a end_date <= yesterday and close it
2017-08-28 15:40:41 +02:00
qsm-odoo 6551c0bdd7 [FIX] web: fix kanban card color
Since the new kanban design, the cards' colors are shown as a
border-left color. Since all the cards have a small gray border,
a combination of inset box-shadow and border-left was used to display
the colored left border. There were two bugs with this system:

- The border-left was overflowing the box-shadow of 1px, making the
  border look weird
- The box shadow was always below the content (graphs, progressbar, etc)

The first problem is resolved by leaving the border-left property
untouched (the natural border is not really visible anyway), the second
problem is resolved by using the ::after element to create the border
instead of using a box-shadow.
2017-08-28 15:13:37 +02:00
tbe-odoo afeadf5d39 [IMP] website_sale: Removing dead code 2017-08-28 14:58:39 +02:00
tbe-odoo a925188360 [IMP] payment_stripe: Retrieve access token on website_quote 2017-08-28 14:50:43 +02:00
Christophe Simonis d0f132b297 [MERGE] forward port branch saas-16 up to 4ac347735d 2017-08-28 14:49:11 +02:00
qsm-odoo 55c6785c93 [FIX] event, hr: fix kanban view
Resolve two "bugs" introduced with new design:
- Events kanban dropdown position
- Employees kanban tags position
2017-08-28 14:42:50 +02:00
Lucas Perais (lpe) f32a79dd82 [FIX] web: limit amount of rows for excel export
Before this commit, when the amount of rows was above xls format threshold (>65535), the xlwt library threw an obscure Traceback to the user.

We now test the amount of rows before even calling the library, raising a more helpful message to the user

OPW 767319

closes #19035
2017-08-28 14:22:47 +02:00
Christophe Simonis 4ac347735d [MERGE] forward port branch saas-15 up to 063381e0f6 2017-08-28 14:02:35 +02:00
Pierre Masereel b3b6267cf0 [FIX] stock: add decoration muted on move cancel 2017-08-28 13:59:12 +02:00
tbe-odoo 1462751596 [IMP] payment_stripe: Compatible with the new payment form
- Stripe checkout form is now compatible with the new payment form.
- Fixed a typo on a currency code.
2017-08-28 13:57:14 +02:00
Pierre Masereel b7a84cd997 [FIX] mrp: production_id on move lines
When the move lines were created manually, there were no production_id
set on them. So we pass it through the context in the 'Register Lots' view.
2017-08-28 13:53:28 +02:00