Commit Graph
96150 Commits
Author SHA1 Message Date
Yannick Tivisse cf7ed33ea0 [IMP] Project : remove issue escalation feature
Conflicts:
	addons/project_issue/project_issue_view.xml
2015-07-08 15:39:02 +02:00
Yannick Tivisse e485b6c5ee [IMP] Project : remove task delegation
Conflicts:
	addons/project/wizard/project_task_delegate.py
2015-07-08 15:39:02 +02:00
Yannick Tivisse 55ae657239 [IMP] sales_team : Remove the lead escalation feature
Conflicts:
	addons/crm/sales_team_view.xml
	addons/sales_team/sales_team.py
	addons/sales_team/sales_team.xml
2015-07-08 15:39:02 +02:00
Christophe Simonis 6c64869de1 [FIX] website{,_quote,_sale}: do not use undefined variable openerp 2015-07-08 15:21:07 +02:00
Martin Trigaux ea3621edb1 [FIX] purchase: some English errors
Courtesy of Lionel Sausin.
2015-07-08 13:56:12 +02:00
Martin Trigaux 8dab9dc7f5 [FIX] crm: useless tag in email template
Courtesy of Mustafa Raw
2015-07-08 13:31:37 +02:00
Denis Ledoux 15c1451a3e [REF] google_calendar: remove useless code/comments
Closes #2207

Courtesy of Tomasz Wysocki (@tomwys)
2015-07-08 12:28:53 +02:00
Martin Trigaux 5abec674cd [FIX] purchase: label of field
No reason to put a ? in the label of a field
2015-07-08 12:17:49 +02:00
Martin Trigaux df07ec1fc1 [FIX] stock: French in error message
I like Frenchmen very much, because even when they insult you, they do it so nicely.
  -- Josephine Baker
2015-07-08 11:21:42 +02:00
Erwin van der Ploeg 9ce56a4cc1 [IMP] stock_landed_cost: better message why landed cost can't be validated 2015-07-08 11:15:45 +02:00
Valerie Pirenne d1e4e0d58d [IMP] web_planner: hide progressbar when full 2015-07-08 10:58:38 +02:00
Martin Trigaux ebe0ff6781 [FIX] stock_account: typo 2015-07-08 08:30:00 +02:00
Aaron Bohy 20ed190429 [REF] web: ControlPanel
Adds the option clear so that, if set to false, only some elements of the
control panel can be updated while keeping the other ones unchanged.
The breadcrumbs can then be updated by simply calling update_control_panel(),
instead of triggering a specific event to do it.

A bit of documentation and refactoring as well, mainly for the
breadcrumbs to be handled as other control panel's elements.
2015-07-07 16:43:01 +02:00
Aaron Bohy 81ffa75944 [FIX] web: many2manytags: hidden if empty and readonly
In edit mode, if this field is readonly and empty, its main div has
height 0 but its border is displayed. This rev. simply hides the field
in this case.
2015-07-07 16:43:01 +02:00
qdp-odoo 08faf63a6d [FIX] l10n_at is back, compliant with the new accounting 2015-07-07 16:15:56 +02:00
Ajay Javiya d8fb8fa6a9 [ADD] website : generic template for search and add functionality to clear search box 2015-07-07 14:10:14 +02:00
Pankaj Joshi 592bf228f3 [IMP] website_forum: display username/karma (link to current user profile) to right hand side seprate from other tabs for better visibility 2015-07-07 11:04:05 +02:00
Pankaj Joshi bd0e0fc411 [fix] website_forum: always display username/karma of loggedin user in navbar 2015-07-07 11:04:05 +02:00
qsm-odoo fe1541abeb [FIX] web: many2manytags - empty value when selected
The input value was not removed once the user added a tag
2015-07-07 10:44:15 +02:00
Raphael Collet b2176210d9 Merge pull request #7202 from odoo-dev/master-i18n-rco
Make XML/HTML fields translatable like views

Add support for translating fields not as a whole, but as a value containing terms to translate:
 - for such fields, the table `ir_translation` contains a set of (term, translation) for each record;
 - use this support for the `arch` field of views, and convert translations of type 'view' into those;
 - add "fuzzy" remapping of translations when English value of such a field is updated.

Convert translation types 'field', 'help' into corresponding translated fields of `ir.model.fields`.
2015-07-06 17:01:33 +02:00
Raphael Collet 9bd60ca935 [IMP] translate: translation optionally wrap translated terms inside a <span>
Note: We do not translate `<a>` elements inline.  Translating `<a>` elements is
triggering issues in the website editor tool: menu items are screwed up.  The
menu items are handled by bootstrap, which expects menu items to be `<a>`
elements inside `<li>` inside `<ul>` elements.  The introduction of a `<span>`
in the middle of this hierarchy breaks its functionality.  Therefore we decided
to not translate `<a>` elements inline.

When invoking `read()` with `'website_editor`' in the context, missing
translations are automatically created, so that translated terms are always
wrapped as `<span data-oe-translation-id="...">...</span>`.
2015-07-06 16:58:04 +02:00
Raphael Collet 1ea32f1daf [IMP] translate: make xml_translate use an HTML parser when XML parsing fails 2015-07-06 16:58:04 +02:00
Raphael Collet ad659c39b0 [IMP] ir_translation: sanitize the values of translated fields 2015-07-06 16:58:04 +02:00
Raphael Collet cd925255b7 [FIX] addons: view extensions are no longer based on attribute string
In view inheritance, selecting an element based on the attribute `string` is
broken, since this attribute may be translated before the inheritance is
applied.  This fixes existing views to avoid such selections.
2015-07-06 16:58:04 +02:00
Raphael Collet f2be471558 [IMP] ir_ui_view: adapt translation of views by using callable field.translate
Also add constraint to prevent using translated attributes in view inheritance.
You may no longer select elements based on attributes 'string', 'help', etc:

    <page string="Stuff" position="inside">...</page>

    <xpath expr="//page[@string='Stuff']" position="inside">...</xpath>
2015-07-06 16:58:04 +02:00
Raphael Collet 4e572e351e [IMP] translate: add cases where the content of XML elements is not translated
- do not translate the content of elements with translate="off"
- translate `<attribute name="X">` only for some values of X
2015-07-06 16:58:04 +02:00
Raphael Collet 33c8aab971 [IMP] translate: do not translate XML elements without actual text 2015-07-06 16:58:04 +02:00
Raphael Collet 2eb257ff94 [IMP] translate: in XML translations, include phrasing elements in translations
HTML phrasing elements (like `<a>`, `<b>`, etc.) should be included in
translations.  This avoids splitting phrases when translating HTML content.
Note that elements with qweb-related attributes (t-*) are not translated
inline.

Add tests on xml_translate().
2015-07-06 16:58:04 +02:00
Raphael Collet 0af707594e [IMP] translate: introduce function to translate XML fields 2015-07-06 16:58:03 +02:00
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