Commit Graph
110261 Commits
Author SHA1 Message Date
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
Martin Trigaux aaa2000c01 [FIX] doc: correct markdown for CLA signature
Code part was not rendered
Probably introduced at
https://github.com/blog/2333-a-formal-spec-for-github-flavored-markdown
2017-03-31 09:38:06 +02:00
Nicolas Lempereur 4cfd03d056 [FIX] calendar: no add Contact when no useContacts
On a form view the attribute `use_contacts` will:

- when set to True: enable us to add contacts which will be available on
  any time in the calendar,

- when unset: the list of contact is only the contact currently beeing
  seen directly in the calendar.

The feature for adding contact is thus not necessary when
`use_contacts` is unset. But it still appeared without having any effect
(which is unexpected).

This commit remove the contact adding feature when it has no necessity.

opw-715932
2017-03-31 09:24:51 +02:00
Nicolas Martinelli bbb3bd876a [FIX] account_extra_reports: Partner Ledger report
- Activate multi-currency
- Create an invoice in a currency different from the company currency
- Go to Accounting > Reporting > Management > Partner Ledger
- Activate the option "With Currency"

The report printed doesn't contain the amount currency.

opw-726440
2017-03-30 15:50:45 +02:00
Nicolas Martinelli cc6a5110ee [FIX] mrp_repair: description language
The description should be in the partner's language, as in a SO.

opw-725060
2017-03-30 14:46:32 +02:00
Goffin Simon b8ce0db8e1 [FIX] website_quote: translations for website_description
When creating a SO with a quote template(QT), the website_description
of the QT is transfered with the lang of the partner to the field
website_description of sale.order model(in onchange_template_id on
sale.order model). But when changing the partner_id on the SO, the
lang of the new user was taken into account.

opw:697893
2017-03-30 14:42:52 +02:00
Nicolas Martinelli f60c18d832 [FIX] website_sale: product detail scroll
On mobile view, in the product detail page, the image of the product
fills the largest part of the screen. However, when the user tries to
scroll by clicking on the image, it zooms on the image instead of
actually scrolling. This is confusing for the users who report that they
cannot buy anything on the webshop.

A solution is to simply deactivate the zoom on mobile.

opw-704026
2017-03-30 11:15:55 +02:00
Nicolas Martinelli 7bbbc6f12d [FIX] account: decimal precision
Missing decimal precisions.

opw-726110
2017-03-30 10:32:07 +02:00
Goffin Simon 50591ac0b2 [FIX] stock: Customer address in deliveryslip
When there is no move line linked to the picking, the customer address must
be the address of the partner linked to the stock.pick
Backport of this commit: 79d8849

opw:725721
2017-03-29 22:59:11 +02:00
Nicolas Lempereur 105243afa6 [FIX] web_editor: fix select and modify video
There was an issue when selecting a video tag:

- a tag inside the video tag would be selected instead of the video tag
  so video could not be removed or modified (modifying it would add a
  video or image inside the video itself and so on).

- the selection was not conveyed to the editor so it would be lost
  consequently due to some code who restored it to what was saved on
  the editor.

This fix solves this by changing how the video tag was selected and
saving the selected range on the editor.

opw-724701
2017-03-29 16:35:39 +02:00
AZER c00a131309 [FIX] point_of_sale: add missing sudo
Main journal is not accessible for user from different company,
a security error is raised during the default get

A pos manager could not create a new pos configuration without create rights on
ir.sequence (only admin has by default)

Closes #16063
2017-03-29 16:08:09 +02:00
AZER 74f46a3980 [CLA] signature for monami7001
Done at #16063
2017-03-29 16:08:09 +02:00
Martin Trigaux 1b5dcf29f5 [FIX] report: remove duplicated dict key
Bad forward port, added at 2c90fad and fe7b3c66
Replaces and closes #16130
2017-03-29 15:39:14 +02:00