Commit Graph
96121 Commits
Author SHA1 Message Date
Raphael Collet 2ba2cbca5f [IMP] translations: synchronize terms when English value of field is modified
Also adapt the insertion of missing translations when clicking on the translation icon.
2015-07-06 16:58:03 +02:00
Raphael Collet 8ddfb1888b [IMP] models, fields: handle the case where field.translate is a callable
Using `field.translate(callback, value)` returns the translation of the given
field value by using the function `callback` to translate simple terms in
`value`.  In practice, the function `callback` uses a translation mapping
retrieved from `ir.translation`.
2015-07-06 16:58:03 +02:00
Raphael Collet d5a1d7b6ae [IMP] models: improve reflection of fields into ir.model.fields
* add missing columns in base.sql
* add missing fields 'help', 'readonly', 'required', 'selectable' in reflection
* add field 'help' in `ir.model.fields` views
* do not patch registry with translated field string and help upon `ir.model.fields` update
2015-07-06 16:58:03 +02:00
Raphael Collet 848c220180 [IMP] ir_model: use ir.model.fields to store translations of fields string and help
* add the necessary fields in `ir.model.fields`
* when loading translations, convert types 'field', 'help' into 'model'
* add specific methods to retrieve translations of field string and help
2015-07-06 16:58:03 +02:00
Raphael Collet 1fc4a3424f [IMP] fields: add method traverse_related to ease the handling of related fields 2015-07-06 16:58:03 +02:00
Raphael Collet ab452d00f8 [IMP] models: remove deprecated methods read_string and write_string 2015-07-06 16:58:03 +02:00
Sheth Sunny f03b3e1839 [FIX] website_quote: rename field
The field payment_term was renamed to payment_term_id
Fixes #7467, issue 643692
2015-07-06 16:44:44 +02:00
Aaron Bohy 7f65415393 [FIX] web,web_tests: delete button in editable list views
Use a fontawesome icon instead of no more supported mnmliconsRegular.
2015-07-06 16:27:38 +02:00
Aaron Bohy 9de57b7a7b [IMP] web_calendar: fine tuning less
Use webclient horizontal padding in calendar view for its content
to be well aligned with the rest of the webclient.
2015-07-06 16:07:09 +02:00
Aaron Bohy df3455a9d2 [IMP] web_kanban: fine tuning less
Same horizontal and vertical spacing between the cards.
2015-07-06 16:07:08 +02:00
Martin Geubelle ea8a853400 [FIX] web_kanban: dashboard style remains when grouped 2015-07-06 14:19:30 +02:00
Yannick Tivisse d2dd78889d [FIX] Menu configuration in root menu 2015-07-06 14:02:00 +02:00
Yannick Tivisse f94e6c9813 [FIX] crm : Settings menu items was not displayed if only crm was installed 2015-07-06 13:56:50 +02:00
Alexis de Lattre 4dec169b46 [IMP] product_visible_discount: make get_real_price inheritable
Move local get_real_price_currency() of product_visible_discount into a real
function, to make it inheritable.
Modify a copy of the context to limitate the propagation.
Fixes #3717
2015-07-06 11:33:44 +02:00
Yannick Tivisse 4953ec66b4 [FIX] Alias domain was not set correctly by default + layout issues 2015-07-06 11:24:36 +02:00
Simon Lejeune ec5891e35a [FIX] kanban: correct media queries 2015-07-06 11:11:29 +02:00
Simon Lejeune a991b6a169 [FIX] kanban: overflow-x on mobile 2015-07-06 11:11:05 +02:00
Raphael Collet 5ebc100253 [FIX] fields: handle the case of fields declared with store=False
Those fields should be considered as "dummy" fields": they are typically useful
for hackish onchange methods that need to store something into a form.
2015-07-06 11:02:39 +02:00
Josse Colpaert 995cb87c62 [IMP] stock: No need to do recompute when creating/writing pack operations manually
There is no need in recomputing each time the link between pack operations and
moves, when changing a pack operation.  It would change the remaining qty
on the move, but this is not shown anywhere.

In the tests of wise_operator, when moving pack operations to another picking,
the links shoud be deleted as it is not done somewhere else
2015-07-06 10:04:20 +02:00
Briksisn c643c8bb39 [IMP] hr: automatic fields population
When creating new Employee and linking to the existed user, this fix will
populate not only email address field, but also full name and avatar image.

Closes #7397
2015-07-06 09:49:39 +02:00
Josse Colpaert d2b4b3909e [IMP] stock: Improve lots with serial numbers, define lot tracking by picking type and convert stock with lot False to a lot when necessary
Instead of having only outgoing, manufacturing, incoming, all... traceability on the product,
we can define on the product if there is no tracking, lot tracking or unique serial number tracking.
On the picking type we can define whether we will only create lots for the picking type or use existing lots.

The lots are required when the product and the picking type demand it.

The option for serial number will check that each piece (quantity 1) has its
own serial number.

A lot splitting wizard is added on the pack operations in the picking form.

We want to be able to handle the case where we receive a lot of iPads e.g. and we
only assign a serial number when the product is delivered.  For this, when the product is
delivered, we see that we only have products with no lots.  When we see that we take something
without lot for something that needed one, we assign the lot to that piece of stock.

For negative quants: a positive quant with no lot can reconcile with a negative quant with/without lot,
a positive quant with lot, will preferably reconcile with a negative quant with the same lot, afterwards
with that without lot.
2015-07-03 17:50:35 +02:00
qdp-odoo 4d19428685 [FIX] l10n_pa is back, compliant with the new accounting 2015-07-03 16:00:41 +02:00
qdp-odoo 2ce0291a4e [FIX] l10n_tr is back, compliant with the new accounting 2015-07-03 15:26:55 +02:00
Yannick Tivisse 9f33dd3b64 [FIX] hr_timesheet_sheet : traceback when clicking on settings/companies records 2015-07-03 14:44:31 +02:00
Fabien Pinckaers c8b00014f0 [FIX] fix test allotment removed 2015-07-02 22:02:36 -07:00
Fabien Pinckaers ffd76df007 [IMP] removing barcode field as it is not used 2015-07-02 21:40:38 -07:00
Fabien Pinckaers 3f108c4fdf [IMP] removing complex and unuseful concepts 2015-07-02 21:27:42 -07:00
Fabien Pinckaers 0676a114bf [IMP] simplification of invoice SO lines 2015-07-02 17:38:41 -07:00
Raphael Collet 64b7875fd5 Revert "[FIX] fields: support fields with store=False"
The commit is causing unexpected failures when creating views.

This reverts commit 72399a195a.
2015-07-02 17:47:30 +02:00
Raphael Collet 72399a195a [FIX] fields: support fields with store=False
Fix method `to_column` to not create columns for non-stored fields.
2015-07-02 16:56:04 +02:00
Joren Van Onder 04fb3dfcff [IMP] pos_mercury: pos extension for electronic card payment.
This new module integrate the 'Mercury Pay' electronic payment
provider with the point of sale.

This commit is the end result of a large branch whose main
author is Joren Van Onder <jov@odoo.com>, with additional
contributions from Martin Donies <mdo@odoo.com> and Frederic van
der Essen <fva@odoo.com>
2015-07-02 16:42:36 +02:00
Joren Van Onder 3a26daeb29 [FIX] point_of_sale: make delete, plus and minus work again
Broke during migration of POS to the new keypress-oriented
barcode_events. The keyboard handler was written with keyup in mind, so
some keys got broken. This fixes everything and sets up a solution for
how to deal with keys that do not generate keypress events in
Chrom{e,ium}.
2015-07-02 16:42:36 +02:00
Frédéric van der Essen c8732bea1e [FIX] point_of_sale: ignore unrecognized barcodes in popups
When a popup is displayed in the point of sale, it sets-up its
own barcode callbacks to prevent the screen's default barcode
action. If a barcode doesn't handle such a barcode, and has not
been setup to handle errors either, it will be ignored, and
a warning will be emitted to the console.
2015-07-02 16:42:36 +02:00
Joren Van Onder 04baede144 [IMP] point_of_sale: make paymentlines in PosTicket more extendable 2015-07-02 16:42:35 +02:00
Joren Van Onder 9401bf0a07 [FIX] point_of_sale: use the same paymentlines for printer- and webreceipt 2015-07-02 16:42:35 +02:00
Joren Van Onder 80da43ebb8 [FIX] barcode_parser: don't match end of line
Causes issues with the card reader device.
2015-07-02 16:42:35 +02:00
Joren Van Onder c125e364af [IMP] point_of_sale: migrate point of sale to barcode_events
This makes the POS use the barcode_events framework class. It also
attempts to make the POS use only one type of keyevent, namely
keypress. This is not completely possible because we still have to
prevent backspace from doing back navigation. Backspace also doesn't
generate keypress events in Chrom{e,ium}. We handle that by calling the
keyboard handler explicitly for backspace.
2015-07-02 16:42:35 +02:00
Martin Trigaux 2d88a6fdd7 [FIX] account_budget: typo 2015-07-02 16:13:36 +02:00
Josse Colpaert d9371fce85 [IMP] stock: Stock picking report improvement
Only one picking report that shows the operations. Warning message when no operations.
Change title.
2015-07-02 15:02:52 +02:00
Géry Debongnie 25a5b15b36 [FIX] web_kanban: prevent crash when grouping some fields
The kanban view was changed recently to display the tooltips in column
headers.  Sadly, it appears that the developer forgot to take into
account the case when there are on tooltips.  This commit fixes this
unfortunate oversight.
2015-07-02 14:53:31 +02:00
Aaron Bohy 3bb35d68b6 [FIX] web: x2many fields: set_value(): missing return
The set_value() function of x2many fields is asynchronous. When a record is
loaded, the invisibility changers (IC) are evaluated once set_value() has been
performed on every fields. As set_value() didn't return its deferred, the IC where
evaluated with wrong values. It produced in particular the following bug:

Go to Customers > Agrolait (the Contacts tab is displayed), switch to next record,
which is the first contact of Agrolait. The Contacts tab is still displayed,
whereas it should not (the invisible condition being is_company == false and
child_ids == [], i.e. there is no contact).

Also call this._super() in set_value() of AbstractManyField instead of
duplicating the function of its parent.
2015-07-02 14:04:42 +02:00
Valerie Pirenne a314fa0de2 [IMP] product_extended: more computed price informations in compute price wizard 2015-07-02 13:43:21 +02:00
Thibault Delavallée 9bd8c00b01 [IMP] mail: moved methods called by mail_followers.js to controllers,
updated their code accordingly.

Subtype display in the follower widget has been improved: now displaying correctly
subtypes ordered by related model, then internal / not internal, then sequence.
2015-07-02 13:33:59 +02:00
Thibault Delavallée de27deba9b [MOVE] mass_mailing, portal_sale, purchase, website_mail_group: move code
related to the mail.mail model in their own mail_mail.py file. This ease
the process of working on the mail.mail model and inheritance, if the
code is not hidden between unrelated models.
2015-07-02 13:33:59 +02:00
qdp-odoo ba9dc70294 [FIX] add back l10n_hn, now compliant with new accounting 2015-07-02 10:52:39 +02:00
qdp-odoo 4878a269b4 [FIX] add back l10n_vn, now compliant with new accounting 2015-07-02 10:28:08 +02:00
Aaron Bohy bfac8b6346 [FIX] mail: discard changes confirm dialog
This change is required for new design compatibility because when
toggling the app switcher, the whole content is detached. The app
switcher is toggled once the deferred def is resolved. If def is
resolved before the dialog is closed, the dialog is detached as well,
and re-attached when clicking on another apps. With this rev., def is
resolved once the dialog is closed.

Also fixes the on_cancel() call which wasn't done at the right place.
2015-07-02 09:45:08 +02:00
Géry Debongnie bde3c10ce0 [IMP] web_kanban: various tweaks
* css tweaks
* display correct tooltips in columns
2015-07-02 09:36:39 +02:00
Fabien Pinckaers f2fdcbddb3 [IMP] terminology RFQ Sent 2015-07-01 18:00:03 -07:00
Fabien Pinckaers 86c8964cd3 [IMP] terminology 2015-07-01 17:57:39 -07:00