Commit Graph
99161 Commits
Author SHA1 Message Date
Aaron Bohy 0fe349def2 [IMP] web: sidebar: generalize it for client actions 2015-09-01 20:05:09 +02:00
Aaron Bohy 5bd8e02dc8 [IMP] web: action_manager: update client action's title
when the widget's title changes, as it is displayed in the breadcrumbs
2015-09-01 20:05:05 +02:00
Jérome Maes 275efedaad [IMP] web : add partner_id of the current in the webclient session 2015-09-01 20:05:00 +02:00
Christophe Simonis df3e7fedcf [MERGE] forward port of branch 8.0 up to a0d44f9 2015-09-01 18:46:55 +02:00
Lionel Sausin a0d44f9952 [IMP] update the expiry dates when changing the product
Written in the new API even though the rest is in the old API, because otherwise we'd have to add an onchange in the views which may be a problem for existing custom modules.

We want this behavior because previously, in some cases the default values were only added at create() time, ie. possibily when the users close the pop-up, so they may never have an opportunity to see and adjust the default.
2015-09-01 18:04:45 +02:00
Christophe Simonis 396d58ef3f [FIX] core: always better to not use undefined variables 2015-09-01 18:02:19 +02:00
Denis Ledoux 3c0fe940aa [FIX] google_calendar: force internal id only on creation
This rev. is related to 1c533b193f

The reason why we force the event Google internal id is
explained in the above commit.

Forcing the internal id must be done only when creating the
event in Google, not when updating, for retro-compatibility:
if the event is already in the attendee calendar, with a different
internal id then the other attendee, we must leave it like this,
otherwise Google will be lost.
2015-09-01 17:36:52 +02:00
Denis Ledoux 1c533b193f [FIX] google_calendar: events disappearing
This rev. is related to a9e3d74713

This new revision is about the same use case than above, except
that both Google users login doesn't match the Odoo login email.

e.g.
User A: A@agrolait.com in Odoo, A@gmail.com in Google
User B: B@agrolait.com in Odoo, B@gmail.com in Google.

When A creates an event, with B in the attendees, and
syncs his calendar to Google, B is not automatically invited
Google side, as his attendee email is B@agrolait.com, which
doesn't match any existing Google User (doesn't match B@gmail.com)

While the revision mentioned above, a9e3d74713,
expected the attendee to be automatically invited Google side, and therefore
expected the event to already exists in B's calendar.

Therefore, when B syncs his calendar in Odoo, as the event
was there in his Odoo calendar, but not in his Google Calendar,
the code actually think it's no - longer - there, and take the assumption
the event has been deleted Google side. So, it deletes the event
in Odoo side as well, for both users A & B.

To overcome this new issue, when the Google & Odoo users emails
do not match, while keeping the compatibility when the Google & Odoo
emails do match (and therefore the invitation is automatically sent
Google side, as the email matches an existing Google account, and
the event is automatically created in B's calendar without needing the
sync in Odoo), we now force the Google internal id to be the same
for all attendees of an event, event by Google side.

opw-645745
2015-09-01 17:15:43 +02:00
Josse Colpaert 042f05f2e5 [IMP] stock: barcode of a product or location should not be copied when duplicating (copy=False) 2015-09-01 16:20:50 +02:00
Denis Ledoux b8f630e59f [FIX] stock_account: context could be None
In the use case of a mrp repair ending, the
context when calling `_store_average_cost_price`
is None

opw-648254
2015-09-01 16:18:10 +02:00
pvy 5d7f12f03e [REF] l10n_be: moved belgian statement menuitem from l10n_be_reports to l10n_be 2015-09-01 15:47:53 +02:00
Darshan Kalola 7f024fe5ef [IMP]planner: some correction according to new features added in master. 2015-09-01 15:46:22 +02:00
Yannick Tivisse 7097f68a80 [IMP] Project: Discover Odoo Project Fine Tuning 2015-09-01 15:38:12 +02:00
Christophe Matthieu 0f6b97a6da [FIX] web_editor: clean_for_save is not called for custom snippets because all() not contains all html matched tags 2015-09-01 15:18:07 +02:00
David Monjoie bf109373c2 [FIX] website_form: don't check editable_select elements
They are supposed to be removed by clean_for_save, but when
someone breaks it, the result is a js error here instead of
a proper error in the subsequent tour steps.
2015-09-01 15:17:30 +02:00
Josse Colpaert 75a20bcea0 [IMP] stock: pack operations read-only compute fields and product_id_change should set lots_visible
In other words, the 'split lot' button should be visible immediately
when choosing a product with lot/serial number tracking and this will
also make the quantity field read-only.

Compute fields do not need to be set as read-only.
It gave problems with the old onchange that needed to set it.
2015-09-01 15:10:08 +02:00
Arthur Maniet 1c1d3855e4 [MERGE] web/barcodes: add backend barcode scanning tools 2015-09-01 13:30:08 +02:00
Arthur Maniet 17e2526667 [FIX] barcodes: use _.bind instead of function.bind because IE 2015-09-01 13:26:03 +02:00
Arthur Maniet 121556dcea [ADD] barcodes/web: element button can use attribute barcode_trigger
A button can be triggered when a barcode corresponding to its attribute
'barcode_trigger' is scanned
2015-09-01 13:26:02 +02:00
Arthur Maniet 9cf6339b3e [ADD] web: fields char and many2one can take an option barcode_events
This allows to detect barcode scans while the focus is in such a field.
It is not the default behaviour because buffering keystrokes to see if
they are a barcode then releasing them if they aren't isn't trivial
(it is impossible to trigger a native keyboard event).
2015-09-01 13:26:02 +02:00
Arthur Maniet 670d759dbf [ADD] barcodes: BarcodeHandlerMixin that starts/stops the event handling
Only the barcode handlers in the front view should listen to barcode events.
2015-09-01 13:26:02 +02:00
Arthur Maniet 2df4060c77 [ADD] barcodes: onchange-like mechanism to react to scans in form view
For a model to use it, it must :
- Inherit barcodes.barcode_events_mixin and override on_barcode_scanned(self, barcode)
- Add <field name=barcode_scanned widget=barcode_handler/> to each form view that
  should listen to barcode events and trigger on_barcode_scanned.

The method on_barcode_scanned works just like an onchange.
2015-09-01 13:25:52 +02:00
Yannick Tivisse c62ecdbd68 [IMP] hr_equipment,mrp_repair : Add summary to modules 2015-09-01 13:19:00 +02:00
Yannick Tivisse 99c0b405d1 [IMP] base: move company logo to data 2015-09-01 13:19:00 +02:00
Yannick Tivisse 496e41bc31 [REM] hr_recruitment: Remove default alias for spontaneous applications 2015-09-01 13:19:00 +02:00
Yannick Tivisse 0bbef194f0 [REM] hr_recruitment: remove tip on breadcrumb + add on hr.job recruitment target 2015-09-01 13:19:00 +02:00
Yannick Tivisse 5a1fc21848 [IMP] hr_recruitement: Remove view switcher buttons on dashboard 2015-09-01 13:18:59 +02:00
Yannick Tivisse c5f4c42294 [IMP] crm: display opprotunities by next activities even if the date field is not set 2015-09-01 13:18:59 +02:00
Yannick Tivisse 8c5f512ec6 [IMP] crm: Your Pipeline, open the list view first 2015-09-01 13:18:59 +02:00
Yannick Tivisse c85b67a1d5 [IMP] product: Display m³ and kg next to volume and weight fields 2015-09-01 13:18:59 +02:00
Thomas Rehn 0fb00808b2 [FIX] account_bank_statement_extensions: lines confirmation
Confirm lines of account cash statement on closing

The `account_bank_statement_extensions` adds
a state field to account.bank.statement.line
and sets the status to 'confirm'
when a bank statement is closed.

When a cash statement is closed,
the lines remained in draft.

Closes #3584
2015-09-01 12:41:20 +02:00
Goffin Simon fdd08a8b4b [FIX] account: closed period in test
The period used to make the test must be closed.
2015-09-01 12:05:29 +02:00
Aaron Bohy c1cc4b830b [FIX] web: stat_button: display none on hover
A 'display: none' rule on hover has been added for boolean buttons, on each
'o_stat_button o_stat_text' that hasn't classname o_hover. This applies on
every stat button that isn't a boolean button, so their content is always
hidden on hover.
2015-09-01 11:02:41 +02:00
Commandant Custo f26df86ea9 [FIX] portal_sale: fix default domains
Quotations/Sales orders menu in the portal must copy the behavior
of the menus in the regular back-end.
Backport of e5c5b1cc23

closes #8271
opw:648186
2015-09-01 09:58:41 +02:00
Christophe Matthieu 447dd53de5 [FIX] web_editor: wrong typo in fontIconsDialog widget 2015-09-01 09:42:33 +02:00
Commandant Custo e5c5b1cc23 [FIX] portal_sale: fix default domains
Quotations/Sales orders menu in the portal must copy the behavior
of the menus in the regular back-end.

closes #8271
opw:648186
2015-09-01 09:35:39 +02:00
Christophe Matthieu 4b5b6b5f6e [FIX] web_editor: drop near select children of editable nodes 2015-09-01 09:23:24 +02:00
Christophe Matthieu a5c9be3a8d [FIX] mass_mailing: remove the on_change_model_and_list empty message from onchange 2015-09-01 09:23:24 +02:00
Christophe Matthieu 7bf80d22dd [FIX] mass_mailing: window can be undefined
If the user cancel a mass_mailing creating and click on create again,
_downup is called but the iframe don't exist
2015-09-01 09:23:24 +02:00
Christophe Matthieu 3d00c210f9 [FIX] web_editor: html widget: escape value before save. 2015-09-01 09:23:24 +02:00
Mahendra barad a223111b92 [IMP] delivery, website_sale_delivery: refactoring and usability
* migration to new API
* removed delivery.grid object, has been merged with delivery.carrier
* change view of delivery.carrier (price rules, etc.)
* tests from yml to py
* website : restrict the list of countries for delivery address in the shop
2015-09-01 08:14:16 +02:00
Gaurav Panchal bb1200adc7 [IMP] project, project_issue : email cc set follower
Partner is created on the fly if it didn't exist yet.
2015-09-01 08:13:53 +02:00
Jigar Patel f41595f15b [IMP] warning: warn partner according to company 2015-09-01 08:13:53 +02:00
Kinjal Mehta 58f16b7060 [IMP] base: use currency position from language
Currency position is something that is dependent
on the language and not the currency as we used
to think. Proof is, it is on the Python locale:
https://docs.python.org/2/library/locale.html?highlight=nl_langinfo#locale.CRNCYSTR
2015-09-01 08:13:52 +02:00
Binjal Desai d4507cce3d [FIX] procurement : Run procurements in more menus 2015-09-01 08:13:52 +02:00
Damien Bouvy f746fe55cc [FIX] product_visible_discount: if super is multi, you gotta be multi 2015-08-31 22:01:25 +02:00
Damien Bouvy 61ffceb3ba [FIX] website_quote: sale refactoring compatibility (probably not the last time I use this commit message *sigh*)
[IMP] sale: you got anymore of that inheritance?
2015-08-31 21:56:18 +02:00
Damien Bouvy 1847cdf90e [FIX] website_sale: pop needs a default or it raises an exception 2015-08-31 21:56:18 +02:00
Damien Bouvy 37c62282a2 [FIX] website_mail: if there is a partner linked to the user, let him write
Who's the idiot who coded this stupi... Oh. Right. Never mind.
2015-08-31 21:56:18 +02:00
Jeremy Kersten df2bed3c16 [FIX] website_customer: rename tag into website tag
Confusing since b51795e924

todo: merge 2 models?
2015-08-31 21:02:42 +02:00