Commit Graph
103231 Commits
Author SHA1 Message Date
Nicolas Martinelli c67c7c2c58 [IMP] mrp_operation: prevent resize on Gantt view
Resizing a workcenter line is confusing to the user since a resize
only changes the `date_planned_end` and recalculates the `date_planned`.
However, a user would expect that a resize changes the duration, which is
not the case.

To avoid the confusion, it is not allowed to resize the tasks anymore.

opw-676762
2016-05-18 13:09:52 +02:00
Nicolas Martinelli 37386df6c1 [IMP] mrp_operation: date_planned_end inverse function
`date_planned_end` has no inverse function, making impossible to drag
the task in the Gantt view.

opw-676762
2016-05-18 13:06:18 +02:00
Nicolas Martinelli 7201207a13 [IMP] doc: add drag_resize option to gantt view
`drag_resize` is a boolean field which allows/prevents the possibility to
resize a task. Value is `true` by default.
2016-05-18 13:04:22 +02:00
Richard Mathot 6c66365b7b [FIX] website_sale_delivery: reset carrier on cart update
It makes no sense to recompute delivery costs at each update of the cart;
furthermore, it prevents users that already selected a carrier to remove
the last products of their carts

This fix is additional to e4e1e571c2
2016-05-18 12:27:14 +02:00
qdp-odoo 4f00202fda [FIX] account: fixed old references to account_extra_report module forgotten during the merge into account 2016-05-18 11:45:55 +02:00
Martin Trigaux 8ce16c3abe [FIX] doc: white h2 title
Cherry-pick from odoo/documentation-user@d193f7c0
2016-05-18 10:54:32 +02:00
Aaron Bohy e7bc4e9703 [FIX] mail: thread: keep image ratio
With rule 'max-width: 100%', the height must be reset to 'auto' to keep the
image ratio.
2016-05-18 10:09:06 +02:00
Aaron Bohy 16d950f5ad [FIX] web_calendar: search date range when no date_stop field 2016-05-18 09:52:45 +02:00
Aaron Bohy 252bd47f94 [FIX] calendar: don't block UI on slow /calendar/notify
Safe imp for a stable version. Better fix could be to send notifications
through the bus, but this would be in master.
2016-05-18 09:52:41 +02:00
Goffin Simon 7f1d7c1cce [FIX] account: invoice has not the same currency as the purchase order
Used case:

-Configure company in EUR, and user in multi-currency
-Create a purchase order in USD and confirm it
-Click on the smart button "0 invoices" then click on "create"

Result before the fix:

The system created an invoice in EUR, currency of the company,
instead of in USD, currency of the purchase order.

Result after the fix:

The system created an invoice in USD, the currency of the related purchase order.

opw:677568
2016-05-18 09:46:01 +02:00
Aaron Bohy 1bab8eb145 [FIX] web: form_view: new record and FieldBinaryImage
Form views with a FieldBinaryImage produced a traceback (only visible in the
server-side logs) when creating a new record from an existing one, because the
fields were re-rendered before being updated (in this case reset to their
defaults). In the case of the FieldBinaryImage, as the field wasn't reset yet,
we tried to load the image of a null id, which produced the traceback.

This rev. ensures that the fields are updated before being re-rendered when
switching to another (possibly new) record.

Note: this is spaghetti code, several re-rendering are triggered when switching
between records (e.g., when updating the fields value, when actualizing form
view mode). This should definitely be refactored/simplified.
2016-05-18 09:39:17 +02:00
Aaron Bohy e80c2bd17e [FIX] web: data_manager: invalidate cache on RPC fail
Before this rev., if an error occured during an RPC handled by the
data_manager, the RPC result was stored in cache anyway, and there was thus no
other way than refreshing the page to get correct result for that RPC.
2016-05-18 09:39:17 +02:00
Denis Ledoux 96e085355d [FIX] account: partial reconcile unreconcile with deleted credit/debit move
`debit_move_id` and `credit_move_id` of
`account.partial.reconcile` must be required.

Not having one of them set on this model
does not make sense, you cannot have a reconciliation
with a debit move but without a credit move, for instance.

Databases already having the trouble,
having partial reconciliations without
either a debit or a credit move,
had issues for the computation of the
`payment_move_line_ids` compute field,
which relied on the fact these fields
were supposed to be required. This revision
makes a retro-compatibility patch for these
databases already having the issue.

opw-677709
2016-05-17 17:57:08 +02:00
Nicolas Martinelli 68b127797e [FIX] web: left margin of graph
The left margin of the graph doesn't take into account the width of the
maximum Y-axis value. In case the values are high (> 10^7), they are
cropped.

The fix is to adapt the left margin as a function of the size of the
maximum value.

opw-676538
2016-05-17 16:38:28 +02:00
Nicolas Martinelli cab2dce0d2 [FIX] web: Y-axis formatting
In case of a line graph, the values of the Y axis are not formatted as
numbers, although they are on the bar graph.
2016-05-17 16:38:28 +02:00
Denis Ledoux 449a160ef9 [FIX] account: usererror takes only one argument
opw-677589
2016-05-17 16:30:30 +02:00
Goffin Simon 0fc73a2067 [FIX] account: readonly bank statement line
Like in "view_bank_statement_form" when a line is linked to
a journal entry, this line must be in readonly.

opw:676344
2016-05-17 15:40:01 +02:00
Christophe Simonis 38b861b52b [MERGE] forward port of branch saas-11 up to e38ddcf 2016-05-17 14:41:09 +02:00
Christophe Simonis e38ddcfeae [MERGE] forward port of branch saas-10 up to b26fd22 2016-05-17 14:39:05 +02:00
Christophe Simonis b26fd22584 [MERGE] forward port of branch saas-9 up to 6d6a90f 2016-05-17 14:12:07 +02:00
Christophe Simonis 6d6a90f385 [MERGE] forward port of branch 9.0 up to 128d58f 2016-05-17 14:04:26 +02:00
Christophe Simonis 128d58f1c7 [MERGE] forward port of branch saas-6 up to b54fdaa 2016-05-17 14:00:49 +02:00
Christophe Simonis b54fdaa101 [MERGE] forward port of branch 8.0 up to 393c14d 2016-05-17 13:40:44 +02:00
Jeremy Kersten d9d84bb6fd [FIX] website: backport of 613ee31f9c 2016-05-17 13:31:35 +02:00
Christophe Simonis 393c14d31a [MERGE] forward port of branch 7.0 up to f4cb884 2016-05-17 13:16:50 +02:00
Damien Bouvy 903733a320 [IMP] web/database manager: admin login & country
Add inputs e-mail address and country
when creating a newdatabase

This will provide the installation of the correct
chart of accounts at the installation of Accounting

Use the provided login as the admin login,
and set the email on the partner
if the login set is an email

Set the country on the company (and its partner)
The countries are parsed from XML country list

We take the opportunity to repair the `label for`
which bind the label with the input only if
the `id` attribute of the input is set with
what is set in the `for` attribute of the label
2016-05-17 12:40:47 +02:00
Martin Trigaux 036e3cc253 [IMP] doc: uniform design with user documentation
Apply the same changes from functionnal documentation to dev doc:
odoo/documentation-user@4316470
2016-05-17 12:02:12 +02:00
qdp-odoo 640e851f4e [FIX] l10n_fr_fec: intial balance of accounts from the P&L should be summarized into a single line 2016-05-17 11:44:39 +02:00
Nicolas Martinelli dd92f9603c [FIX] point_of_sale: select correct journal
An issue occurs in the following situation. Several cash journal are
configured for a given PoS, and a user performs a refund (the
transaction contains only a refund). In this case, the wrong journal
might be selected. This is because a payment line of zero is not sent to
the backend, and therefore an arbitrary journal is selected.

opw-676229
2016-05-17 11:38:02 +02:00
Stanislav Sokolko 0632a40b80 [FIX] web: update compatibility layer
this commit adds better support in the compatibility layer of the
js framework.  This is necessary if one wants to follow the
official tutorial.
2016-05-17 10:47:26 +02:00
Stanislav Sokolko c71cb6a5fc [CLA] signature for s.sokolko 2016-05-17 10:47:06 +02:00
Ravi Patel b9fced8ce1 [FIX] stock: missing module in reference xml id 2016-05-17 10:43:59 +02:00
Thibault Delavallée 5fcfe18ea7 [FIX] stock: pop method does not exist on recordsets 2016-05-17 10:43:59 +02:00
Sylvain GARANCHER f4cb884cdc [FIX] base: Add missing return values
The _auto_init method was overriden without keeping the return value of
the super on some models.
This break the new stored computed fields computation at field creation.

Closes #11985
opw-677232
2016-05-17 10:39:54 +02:00
Géry Debongnie 65192ea943 [FIX] web: remove useless line
the enable_button call should have been removed...
2016-05-17 10:26:24 +02:00
Géry Debongnie 95cbee6243 [FIX] web: fix duplicate changes in form view
Before this commit, in some cases, clicking on 'save' button, then on
other buttons (like 'validate' in invoices) had the unfortunate effect
of applying twice the changes in some cases.

More specifically the problem appears when:
1. an onchange is triggered (for example, taxes in invoices)
2. the user clicks on 'save', buttons are disabled
3. the 'save' actions is completed, the buttons are enabled, but
   the on_button_save still does some work: triggering event, and
   reloading the view
4. the user clicks on 'validate'
5. the onchange completes, this triggers some more work

Our only protection against such interactions is right now the fact that
buttons are disabled/enabled.  In my opinion, there should be a way
to guarantee that actions are properly serialized (that is actually what
a mutex is for... just saying). But the code of the form view/list view is
too coupled, and such changes are quite dangerous.  A real refactoring
of those is needed at some point in the future.
2016-05-17 10:24:47 +02:00
Damien Bouvy a5277bc106 [IMP] doc: Enterprise-compatible installation instructions
Before this revision, the installation instructions where
Community-centric, which led some customers to believe
that they had to install first Community then Enterprise.

This commit makes the instruction compatible for both editions.
2016-05-17 10:21:11 +02:00
Odoo Translation Bot 8f46a6fe73 [I18N] Update translation terms from Transifex 2016-05-15 02:56:59 +02:00
Odoo Translation Bot 610d462740 [I18N] Update translation terms from Transifex 2016-05-15 00:29:02 +02:00
Christophe Simonis a7d7e54566 [FIX] website_sale_delivery: use new api
Bug introduced during forward-port (surprise...)
2016-05-13 19:13:50 +02:00
Christophe Simonis d77f3a73da [FIX] website_sale_delivery: use new api 2016-05-13 19:08:00 +02:00
Christophe Simonis 2356c2015f [MERGE] forward port of branch saas-11 up to 3509217 2016-05-13 18:50:44 +02:00
Christophe Simonis 35092174c1 [MERGE] forward port of branch saas-10 up to bfb272c 2016-05-13 18:38:35 +02:00
Nicolas Lempereur 4cf9e4ca83 [FIX] l10n_be_intrastat: typo 2016-05-13 17:57:12 +02:00
Nicolas Lempereur 780e3fec10 [FIX] l10n_be_intrastat: get location_id from stock move
purchase.order have been rewritten with cb01be2

It was not taken into account for intrastat  who still used the now not
existing "location_id" on purchase order.

This commit use instead the method _get_destination_location which
should be equivalent.

opw-677497
2016-05-13 17:54:21 +02:00
Christophe Simonis bfb272c61e [MERGE] forward port of branch saas-9 up to da8a312 2016-05-13 17:42:34 +02:00
Christophe Simonis da8a312d4e [MERGE] forward port of branch 9.0 up to 820f7e1 2016-05-13 17:42:10 +02:00
Christophe Simonis 820f7e11c1 [FIX] core: correct fields.modified_draft for triggers on other models 2016-05-13 17:32:00 +02:00
xmo-odoo 6d73087d96 [FIX] report: don't hide errors in custom reports
If a custom report's render_html raises a KeyError for some
reason, Report.get_html would swallow the exception and fallback
on generic HTML rendering, usually blowing up with unfathomable
errors of missing rendering context data.

Check if a custom report object exists instead of waiting for a
KeyError.
2016-05-13 17:28:19 +02:00
Damien Bouvy 9b2d153302 [FIX] setup: atom doesn't want to use hard tabs even when told to
This is now the 2d stupidest commit I ever did
2016-05-13 17:08:28 +02:00