Commit Graph
107816 Commits
Author SHA1 Message Date
Raphael Collet 6b48098c81 [FIX] ir_model: field names must be valid pg identifiers 2017-04-06 15:05:52 +02:00
Christophe Simonis 271067f50c [MERGE] forward port branch 8.0 up to 3128e84243 2017-04-06 14:46:56 +02:00
Nicolas Martinelli e79d94438e [FIX] website_sale{_options}: quantity over 999
The fields containing the quantity of product doesn't display numbers
over 999 correctly: only 3 digits display in the field.

We add a specific class `quantity` for input fields, with a padding of
zero. The class `js_quantity` is not used since it is linked to jQuery
events.

opw-727640
opw-725671
2017-04-06 11:05:30 +02:00
Goffin Simon d444fbcc1a [FIX] l10n_at: Vorsteuer 2500 account
The type of account Vorsteuer 2500 is Non-current Assets(like in l10n_be).
In this way, the amount due will include the taxes Vorsteuer 10%
and Vorsteuer 20% when computing the amount due with _compute_residual
because the account is not receivable or payable.

opw:725619
2017-04-06 09:21:21 +02:00
Nicolas Martinelli d4684ba7cd [FIX] sale: 100 % discount
- Set discount policy: Show public price & discount to the customer
- Set a product with 100% discount

When added to a SO, the product discount is 0 %.

opw-727519
2017-04-06 08:37:59 +02:00
Nicolas Martinelli 48aefe61f0 [FIX] mrp: warning for lot
Complement of commit 85132f68d2

opw-727679
2017-04-06 08:35:43 +02:00
Jeremy Kersten bd17dfe019 [FIX] payment_paypal: pdt parsing - accept error as response
In case of error, paypal return some lines where error message and not a
string with 'key=value'.

This commit fix traceback:
ValueError: dictionary update sequence element #0 has length 1; 2 is required
2017-04-05 17:21:07 +02:00
Nicolas Lempereur dff2cf3ca1 [FIX] base: field monetary lose context of t-lang
In monetary field refactoring (3407fb70e4) there was a small issue that
made context lost so the language use to render the field could be
different from the one to render the view.

For example: if the user has english, and print a report using the lang
of a partner in language spanish, the report would use spanish to format
number for all fields but monetary (which would use english).

opw-708197
2017-04-05 14:49:03 +02:00
Martin Trigaux 0ac2ca9b14 [FIX] point_of_sale: translate close button
Evaluated when loading the widgets
2017-04-05 14:26:12 +02:00
Richard Mathot a16da9f9c6 [IMP] mrp: price on product should be changed when receiving from production in average price, not only from supplier 2017-04-05 14:05:15 +02:00
Wolfgang Taferner bf781cf740 [FIX] mrp: BoM count detection in case it is a single variant
In case a product is a single variant we should not leave it with a BoM
of zero as soon there is a BoM for its template. This would for example
hide the `compute_price` object button which relies on the `bom_count`to
be visible.

BoM is not found for a single variant product and compute price not
possible from the `product.product` view although it is implemented
actually there.

Closes #16237
2017-04-05 12:00:39 +02:00
Nicolas Martinelli 3128e84243 [FIX] account: aged receivable
- Create an invoice of 10000 at date 2016-11-30, due 2017-02-28
- Make a partial payment of 1500 at date 2016-11-09
- Make a partial payment of 1000 at date 2016-11-30
- Make a partial payment of 2000 at date 2017-01-30

At current date (e.g. 2017-04-04), run the Aged Partner Balance. 5500 is
still due, but set to the +120 days period instead of 30-60.

opw-725890
2017-04-05 11:50:03 +02:00
Jerther 33076f7394 [FIX] stock: set AML date same as move date
Based on v9 fix: f6b6eb906d

Closes #16217
2017-04-05 11:31:19 +02:00
Nicolas Martinelli 8f39ad2be6 [FIX] point_of_sale: action_assign before force_assign
This allows the reservation in sub-locations before forcing the
availability.

opw-726060
2017-04-05 11:09:26 +02:00
Jerther 52c58fd218 [CLA] backport signature to 8.0
Done at #16240
2017-04-05 10:48:35 +02:00
Nicolas Martinelli 85132f68d2 [FIX] mrp: warning for lot
The constraint should only check for move lots with a lot number already
filled in. Indeed, in case we use work orders, we can potentially create
move lots without S/N, and fill in the S/N later.

opw-727679
2017-04-05 09:47:54 +02:00
Martin Trigaux c6b4154fa6 [FIX] point_of_sale: do not create picking for service only orders
opw-727322
2017-04-05 09:37:21 +02:00
Goffin Simon 130e71f2e4 [FIX] sale: _get_display_price with pricelist item based on other pricelist
Create a product P with a price = 1799
Make a pricelist P1 in USD with an item I1 for a product P with a
fixed price to 100.
Set P1 with discount_policy = "with_discount"(include in price)
Make another pricelist P2 in USD with an item I2 based on P1.
I2 is a formula = 50% of the price
Set P2 with discount_policy = "without_discount"
Create a SO with P2 for the product P

Bug: The subtotal of P is 899.5 instead of 50

The problem came from _get_display_price wich in this case recomputed
the price according to the discount(in this case equal to 50% and this is
the good discount to display because P1 include the discount) and the lst_price
of the product(=1799) So the displayed price was equal to 899.5 instead of
50.

All the other cases worked because

1.  P1 without_discount and P2 without_discount:

Price returned by _get_display_price was equal to 1799 with a discount of 97,2%
So the subtotal was equal to 50

2. P1 without_discount and P2 with_discount:

Price returned by _get_display_price was equal to 100 with a discount of 50%
So the subtotal was equal to 50

3. P1 with_discount and P2 with_discount:

Price returned by _get_display_price was equal to 50 with a discount of 0%
So the subtotal was equal to 50

And the last case(P1 with_discount and P2 without_discount) didn't work because:

Price returned by _get_display_price was equal to 1799 with a discount of 50%
So the subtotal was equal to 899.5

NB: The subtotal is computed with function "_compute_amount" with the following line:

price = line.price_unit * (1 - (line.discount or 0.0) / 100.0)

opw:724924
2017-04-05 09:25:18 +02:00
Lucas Perais (lpe) d24f86337e [FIX] account: account_reconciliation: t-values shouldn't be translatable
+ .pot update
OPW 706759

Closes #16239
2017-04-05 08:51:10 +02:00
Nicolas Martinelli c028e3806b [FIX] account: tax base on invoice report
Commit e1deead1cb introduces back the table of taxes. But it is still
incomplete:
- it should appear all the time
- the tax base should be included as well

Sources:
http://ccff02.minfin.fgov.be/KMWeb/document.do?method=view&id=21786bb3-69a0-4323-8631-aa898b988097#findHighlighted
http://www.ipcf.be/Uploads/Documents/doc_1704.pdf
http://eur-lex.europa.eu/LexUriServ/LexUriServ.do?uri=OJ:L:2002:015:0024:0028:FR:PDF

opw-724519
2017-04-05 08:23:58 +02:00
Nicolas Martinelli 300c678ade [FIX] stock: recompute on picking assign
- Create a kit (phantom BOM), composed of 2 different products A and B
- Create a SO, sell a random stockable product, confirm and validate the
  picking.
- Edit the SO, add the kit and save.

Two pickings are created, one for product A and one for product B.

Commit 8fe8ca9948 forces the recomputation of the stock moves, in order
to be able to find a newly created picking. This should actually be done
after each picking creation.

opw-725929
2017-04-05 08:12:10 +02:00
Sergio Teruel Albert 5b670aa864 [FIX] fleet: access record fields on api.multi
Would not work if executed on several records

Closes #16218
2017-04-05 07:52:34 +02:00
Pedro M. Baeza dc8010c9b1 [CLA] Signature for Tecnativa
Done at #16241
2017-04-05 07:50:53 +02:00
Nicolas Lempereur 3ad1867ea4 [FIX] sales_team: get good team in multi company
When getting the default sales team, we could get erroneously the
team of another company (either because the use is in a team of another
company or the default sales team was in non-bethren company).

This fix when searching a sales team:

- search only teams the user should see (with access rules)
- make default teams "Website Sales" and "Direct Sales" not restricted
  to one company (and it's ancestors).

opw-726461
2017-04-04 17:57:07 +02:00
Josse Colpaert 11f0a5c29f [FIX] sale, purchase: better info on qty update in purchase/sale order line
When the quantities on a purchase or sale line decrease,
the amount of the receipt or delivery order is not adapted.
Also, when the quantities increase, it is good to follow it up.

That is why, when we change some quantity, a message is
posted in the chatter of the purchase/sale to indicate about
the change.  There is also a message when you add a new line.
2017-04-04 17:36:02 +02:00
Nicolas Lempereur 0b2fd60041 [FIX] web: editable list view regression bc031379 (9.0)
In 9.0 in some particular instances with embedded views, if:

- an x2many list view is editable,
- we go from a form view of an existing record to creating a record,
- the timings of deferred resolving are in a certain order

the x2many list view could be tought as loaded whilst in reality it is
the 'editable list view' row editing 'form view' that has been loaded.

This could cause sometimes issues after bc031379 because the onchange
computation would happen before the list view is really loaded.

This is probably an issue with the deferred system in one of the views,
but it would be rather hard and dangerous to change it.

So this fix introduce an additional test which ignore relational views
if there is an embedded view.

opw-726701
opw-726768

note: only needed for 9.0, the relational views have been changed as of
saas-11 and this issue is not present.
2017-04-04 17:29:53 +02:00
Lucas Perais (lpe) 910f12b88e [FIX]: stock_landed_cost: optimization of stock.landed.cost. Only recompute account move line and move fields when everything is created.
OPW 725897

Closes #16088
2017-04-04 15:21:45 +02:00
Goffin Simon 42e1efded5 [FIX] web_kanban: column_add_record
When grouping by a field datetime in kanban view, the name of the
column is an abreviated datetime. Afterwards, when making a quick
create, the abreviated datime was set in the context and
used as default value. So it raised a tracebacks because the value
of the datetime was not in the correct format.

Now it's only possible to make a quick create if the type of the field grouped
is a char, a boolean or a many2one.

opw:727266
2017-04-04 15:19:42 +02:00
Thibault Delavallée 4d3fc120e7 [FIX] event: correctly compute 'done' state of mail scheduler
Currently line was incorrect as the purpose is to ensure all lines of
the scheduler are sent. Currently not send lines are filetered and therefore
not taken into account. This commits fixes it.
2017-04-04 10:43:22 +02:00
Lucas Perais (lpe) fc0d2e2c83 [FIX] account: Dashboard used to open provider bills instead of customer invoice
Correcting patch on PR16042 by Alexis delatre
OPW 726679
Closes #16210
2017-04-04 09:48:54 +02:00
Denis Ledoux 759492167a [FIX] web: textarea of editable list above everything
When expanding a textarea of an editable list,
by putting a long description for instnace,
with multiple lines,
some elements were put above the textarea,
making the content partially hidden

opw-709894
Closes #16083
2017-04-03 17:23:58 +02:00
Martin Trigaux ec17d636a9 [FIX] point_of_sale: allow to create more than one rescue session
Fixes #15101 (cf comment 273208287 for details)
Closes #15862

Restore the rescue mechanism from v9, without the field it will be based on
the session name containing '(RESCUE FOR'

Add tests
2017-04-03 15:19:37 +02:00
Goffin Simon ef5fee54b2 [FIX] account_asset: typo error
To follow this commit: 07cbde54d6

opw:724571
2017-04-03 14:42:56 +02:00
Goffin Simon eab8cd92c8 [FIX] stock: Search on warehouse name
Now it's possible to search on the name on stock.warehouse list view.

opw:726408
2017-04-03 14:13:46 +02:00
David Tran 3d696be967 [CLA] add team members to the tvtmarine-automation CLA
Done at #16200
2017-04-03 10:56:51 +02:00
Jerther 925d8175f5 [CLA] Corporate signature for MetalSartigan
Métal Sartigan accepts the CCLA

Done at #16185
2017-04-03 10:37:29 +02:00
Pedro M. Baeza 659103718f [FIX] account: determinist view swticher order
Both tree and form view have the same sequence, which haas, at best no effect,
at worst, shows the form before the tree view.
In the second case, making that clicking on the bank journal name drives you to
a new bank statement instead of the list of existing ones.

Closes #16187
2017-04-03 10:30:12 +02:00
Cédric Pigeon a1aada9f76 [FIX] stock: new cursor for orderpoint
On large databases, the orderpoint calculation can fail due to the huge
cache used diring the process.

Instead of using one cursor for the transaction, we create a new cursor
every 100 orderpoints, to limit the cache size and speed up the
performances.

opw-726711
Closes #16158
2017-04-03 10:13:03 +02:00
Wolfgang Taferner 51975ccf5a [FIX] doc: wrong header syntax for field 2017-04-03 10:08:37 +02:00
Jeremy Kersten 7db14bbe69 [FIX] res_users: show the computed base.user_groups_view view in dev mode
Before this commit, in dev mode, the view was read from xml with the dummy
template. Set arch_fs to False will force to use the view in database and so
the automatically computed view.

This commit closes #16179
2017-04-03 09:34:26 +02:00
Odoo Translation Bot 48bf1bc863 [I18N] Update translation terms from Transifex 2017-04-02 04:32:01 +02:00
Odoo Translation Bot 794c9f5118 [I18N] Update translation terms from Transifex 2017-04-02 02:56:31 +02:00
Odoo Translation Bot 963c9ffa4a [I18N] Update translation terms from Transifex 2017-04-02 00:32:12 +02:00
Odoo Translation Bot fb130ec5a4 [I18N] Update translation terms from Transifex 2017-04-01 02:56:03 +02:00
Fabien Meghazi 8823dd4d5d [FIX] stock: properly check if name is provided before renaming (fix opw: 726460) 2017-03-31 17:58:56 +02:00
Cedric Snauwaert 8221310e4d [ADD] l10n_in_schedule6: required coa for india that was lost during migration to v9 2017-03-31 12:10:22 +02:00
Lucas Perais (lpe) 635f6931d4 [FIX] event: the field mail_registration_ids is a technical one.
It cannot be used for micro-management of what mail has been sent or not and to whom
OPW 725633
2017-03-31 11:55:46 +02:00
Jeremy Kersten d7c765f62f [FIX] openerp: fix traceback when no field in constrains
In case you don't have 'field', the first 'if' will raise a warning.
In this case the second 'if' will crash with:
    "'NoneType' object has no attribute 'store'"

This commit closes #16146
Courtesy of @kmetaxas
2017-03-31 11:52:31 +02:00
Wolfgang Taferner 0fd502ed9f [IMP] point_of_sale: allow to override auto printing
As show is needed to call super it is impossible to override the
function without running into the immediate print. It is possible though
that you might need some delay that local CPU has rendered everything on
the PoS Ticket before printing...based on this you are able to override
the handle_auto_print and add a delay there.

Closes #16174
2017-03-31 10:12:42 +02:00
Martin Trigaux 0942ae9b29 [CLA] signature for OnTruck
CLA signature sent at opw-726787
2017-03-31 09:42:01 +02:00