Thibault Delavallée [Thu, 7 Aug 2014 12:34:58 +0000 (14:34 +0200)]
[FIX] email_template: when generating body containing the user's signature, add it as html as it is now pure html, not plaintext anymore.
Thibault Delavallée [Thu, 7 Aug 2014 09:21:41 +0000 (11:21 +0200)]
[FIX] tools: html_sanitize: keep mako tags (<% ... %>), required for example in the portal sale quotation email.
Christophe Simonis [Thu, 7 Aug 2014 13:17:43 +0000 (15:17 +0200)]
[MERGE] pos improvements
manual fix of fp-style merge
Frederic van der Essen [Thu, 7 Aug 2014 12:59:26 +0000 (14:59 +0200)]
Merge branch '8.0' into 8.0-pos-imps2-fva
Frederic van der Essen [Thu, 7 Aug 2014 12:05:30 +0000 (14:05 +0200)]
[IMP] pos_restaurant: update some paths due to module name change
Christophe Simonis [Thu, 7 Aug 2014 11:50:27 +0000 (13:50 +0200)]
[FIX] fields.py: correct copy/paste error, use the right attribute
Frederic van der Essen [Thu, 7 Aug 2014 11:27:51 +0000 (13:27 +0200)]
[IMP] restaurant: renamed to pos_restaurant
Christophe Simonis [Thu, 7 Aug 2014 11:04:26 +0000 (13:04 +0200)]
[FIX] fields.py: handle "change_default" and "deprecated" attributes in new fields
Christophe Simonis [Thu, 7 Aug 2014 11:01:03 +0000 (13:01 +0200)]
[FIX] fields.py: fix old field to new field convertion
Richard Mathot [Thu, 7 Aug 2014 07:50:16 +0000 (09:50 +0200)]
[FIX] website_sale_option: make options work
Thibault Delavallée [Wed, 6 Aug 2014 12:29:48 +0000 (14:29 +0200)]
[FIX] mail: compose wizard: fixed default_get overrides not correctly managing the received field_list + improved custom call to default_get to correctly manage its in and out values.
Thibault Delavallée [Wed, 6 Aug 2014 11:00:06 +0000 (13:00 +0200)]
[FIX] crm: fixed day_open and day_close computation (conditional store + be sure that date_open and date_closed fields are set)
Thibault Delavallée [Wed, 6 Aug 2014 09:36:54 +0000 (11:36 +0200)]
[FIX] project_issue, resource: fixed computation of hours / days to open (assign) or close an issue. Those fields now have a conditional store, because they were not recomputed even when changing date_open and date_closed. Changing the stage now correctly changes the date_closed. Also added some fixes in resource module, the date was not correctly taken into account when computing the number of working hours between two dates.
Olivier Dony [Wed, 6 Aug 2014 16:48:35 +0000 (18:48 +0200)]
[FIX] orm: _compute_related: ensure prefetch is done in batch
Due to the use of a sudo env, the records
were being added to the sudo cache one by
one instead of all at once. This meant the
prefetching was not able to load all
records at once, leading to prohibitive
times when processing thousands of
records.
Christophe Simonis [Wed, 6 Aug 2014 15:27:27 +0000 (17:27 +0200)]
[FIX] web: make search by `id` possible.
+ correct tests
Raphael Collet [Wed, 6 Aug 2014 09:40:03 +0000 (11:40 +0200)]
[IMP] models: name_search() should call _name_search()
This avoids code duplication between methods, and keeps backward compatibility
with existing code overriding _name_search().
Raphael Collet [Thu, 10 Jul 2014 20:04:03 +0000 (22:04 +0200)]
[IMP] fields: add mechanism to extend a selection field
If a selection field is defined by a list as selection, such as:
state = fields.Selection([('a', 'A'), ('b', 'B')])
one can extend it by inheritance by redefining the field, as:
state = fields.Selection(selection_add=[('c', 'C')])
The result is that the selection field will have the list
[('a', 'A'), ('b', 'B'), ('c', 'C')] as selection.
Christophe Simonis [Wed, 6 Aug 2014 12:59:57 +0000 (14:59 +0200)]
[FIX] Allow search on `_inherits` fields.
As `_inherits` fields are now handled via `related`
fields (not stored, obviously), a new descriptor
`searchable` has been added to `fields_get()` result
to indicated if the field is searchable or not.
Daniel Dico [Sat, 2 Aug 2014 08:03:11 +0000 (04:03 -0400)]
[FIX] website_livechat: reference of demo data was preventing to install the module
Added a record of im_livechat.channel in website_livechat data
Mohammed Shekha [Wed, 6 Aug 2014 09:40:46 +0000 (15:10 +0530)]
[FIX] Exporting of res.partner works again
Singleton object was required while access model properties, but search returns multiple results and hence caused traceback while accessing record.property
Fekete Mihai [Wed, 6 Aug 2014 09:36:13 +0000 (11:36 +0200)]
[FIX] stock: typo when selecting inventory on single product
Raphael Collet [Wed, 6 Aug 2014 09:20:38 +0000 (11:20 +0200)]
[FIX] base: fixes #1167, change password wizard (wrong default value)
The one2many field 'user_ids' was initialized with an incorrect value for the
inverse field 'wizard_id', using a res.users id. The latter was causing a
MissingError exception. The fix is simply to not define explicitly the inverse
field in the one2many.
Also did a small cleanup of the code of the wizard.
Richard Mathot [Wed, 6 Aug 2014 08:28:16 +0000 (10:28 +0200)]
[FIX] project_issue: reviewer_id doesn(t exist
(partial revert of
44a5268c00443cfb0664d7679d93772422a7403)
Raphael Collet [Wed, 9 Jul 2014 15:06:29 +0000 (17:06 +0200)]
[FIX] fields: convert_to_cache() on *2many fields must take record's current value
The existing code was buggy when writing on *2many fields with a list of
commands: the value was converted for the cache, but taking an empty recordset
as the current value of the field.
Thibault Delavallée [Tue, 5 Aug 2014 12:49:52 +0000 (14:49 +0200)]
[FIX] hr_contract: count the number of contracts of an employee as superuser_id as this field is required in the form view. However no data is displayed, and no data about the contracts are leaked, so no security holes.
Denis Ledoux [Tue, 5 Aug 2014 14:04:58 +0000 (16:04 +0200)]
[MERGE] forward port of branch saas-5 up to 7d7f6fe
Denis Ledoux [Tue, 5 Aug 2014 14:01:55 +0000 (16:01 +0200)]
[FIX] purchase: now allow 'can be purchased' to be checked even if not variant
Before, the field purchase_ok was set as readonly on the product form if the product wasn't a variant, to avoid users to set all the products variants associated to the product template to be set as purchase able in one action.
We now consider that this can be done by the end user
Denis Ledoux [Tue, 5 Aug 2014 13:44:57 +0000 (15:44 +0200)]
[FIX] web_kanban: parent can be undefined in some cases
opw-611106, when clicking quickly Sales > Opportunities than Sales > Leads.
Raphael Collet [Tue, 5 Aug 2014 12:50:44 +0000 (14:50 +0200)]
[IMP] models: turn _patch_method() and _revert_method() into class methods
This makes the patching mechanism more flexible, and enables patching BaseModel,
for instance. This should fix #1501.
cod-odoo [Mon, 28 Jul 2014 10:40:46 +0000 (16:10 +0530)]
[FIX] account: prevent crash onchange company_id
(rebase of #1534)
Samus CTO [Tue, 5 Aug 2014 09:34:19 +0000 (11:34 +0200)]
[IMP] Do not create FK when destination model is _auto=False
It is not useful to try to create foreign keys when the destination model is
a PostgreSQL view for example.
We already do this kind of verifications but ir.actions and transient models
but did not for _auto.
Raphael Collet [Mon, 4 Aug 2014 09:37:16 +0000 (11:37 +0200)]
[IMP] base/res_users: improve reading/writing of reified group fields
- simplify the code by removing unused cases
- do not modify input argument 'value' of create/write
- do not call BaseModel.read() with reified group fields (this causes warnings)
Frederic van der Essen [Mon, 4 Aug 2014 09:09:47 +0000 (11:09 +0200)]
[FIX] point_of_sale: partner list rendering was not refreshing correctly. + limited display to 1000 partners for performance reasons
Frederic van der Essen [Tue, 29 Jul 2014 13:29:28 +0000 (15:29 +0200)]
[IMP] restaurant: discard kitchen order changes when splitting the bill.
Frederic van der Essen [Mon, 28 Jul 2014 11:28:39 +0000 (13:28 +0200)]
[IMP] restaurant: a module that extends the point of sale with restaurant features
Frederic van der Essen [Mon, 28 Jul 2014 11:27:44 +0000 (13:27 +0200)]
[FIX] point_of_sale: removed useless console.log()
Frederic van der Essen [Mon, 28 Jul 2014 09:33:24 +0000 (11:33 +0200)]
[IMP] point_of_sale: allow an order to remember what screen it was on, instead
of switching back to default screen.
This is used by the soon to be merged restaurant addon to create new orders
and display them at a particular screen. However, this behaviour is more
confusing in the other cases, so I'll think of a better way to solve this.
Frederic van der Essen [Thu, 24 Jul 2014 16:08:12 +0000 (18:08 +0200)]
[IMP] pos_discount: a new pos extension that allows you to quickly give a global discount on the current order
Frederic van der Essen [Thu, 24 Jul 2014 13:21:54 +0000 (15:21 +0200)]
[IMP] point_of_sale: report errors when loading the point of sale with a traceback and a nice popup
Frederic van der Essen [Thu, 24 Jul 2014 12:09:46 +0000 (14:09 +0200)]
[IMP] point_of_sale: made the server data loading more modular for easier development of point_of_sale extensions
Frederic van der Essen [Wed, 23 Jul 2014 14:23:38 +0000 (16:23 +0200)]
[IMP] point_of_sale: tests work better when they are loaded and run by the unit test system!
Frederic van der Essen [Wed, 23 Jul 2014 13:59:54 +0000 (15:59 +0200)]
[IMP] point_of_sale: forgot changes in this file in the previous commit that introduced unit tests
Frederic van der Essen [Wed, 23 Jul 2014 13:58:08 +0000 (15:58 +0200)]
[IMP] point_of_sale: add a basic UI unit test based on the new 'Tour' module
Frederic van der Essen [Tue, 22 Jul 2014 13:58:08 +0000 (15:58 +0200)]
[IMP] point_of_sale: add a debug option to delete all unsent orders
Frederic van der Essen [Tue, 22 Jul 2014 13:27:34 +0000 (15:27 +0200)]
[IMP] point_of_sale: add debug popup that displays unsent order data, for when localStorage is hard to inspect
Conflicts:
addons/point_of_sale/static/src/js/widgets.js
Frederic van der Essen [Tue, 22 Jul 2014 12:33:32 +0000 (14:33 +0200)]
[IMP] point_of_sale: show traceback popup when there is a server error when posting orders (which should NEVER happen !)
Frederic van der Essen [Fri, 18 Jul 2014 12:30:13 +0000 (14:30 +0200)]
[FIX] point_of_sale: it was impossible to delete a pos session
Frederic van der Essen [Fri, 18 Jul 2014 11:28:22 +0000 (13:28 +0200)]
[FIX] point_of_sale: order invoicing was broken
Frederic van der Essen [Thu, 17 Jul 2014 15:51:27 +0000 (17:51 +0200)]
[IMP] point_of_sale: improved rendering speed of the partner list
Frederic van der Essen [Thu, 17 Jul 2014 15:20:56 +0000 (17:20 +0200)]
[IMP] point_of_sale: a little explaination of how the barcode pattern system works
Frederic van der Essen [Wed, 16 Jul 2014 15:11:18 +0000 (17:11 +0200)]
[IMP] point_of_sale: add an error sound to the error popups
Cedric Snauwaert [Tue, 5 Aug 2014 11:55:18 +0000 (13:55 +0200)]
[FIX] web: tooltip container set to body in all case
Mandatory since we changed the structure of the dom since 8.0.
Wolfgang Taferner [Mon, 4 Aug 2014 14:07:25 +0000 (16:07 +0200)]
[IMP] workflow: add sequence for ordering workflow transitions (split/join mode especially for XOR)
Makes ordering transitions easier and more deterministic.
(Rebase of #1564)
qdp-odoo [Tue, 5 Aug 2014 09:48:49 +0000 (11:48 +0200)]
Merge pull request #1581 from odoo-dev/8.0-fix-account-invoice-rco
[FIX] account: fix unexpected invalidation of field account_invoice.reconciled
Florian Hatat [Mon, 4 Aug 2014 08:25:00 +0000 (10:25 +0200)]
[FIX] mrp: Fix spelling error on 'manufacturing'
Changing .po files to avoid to retranslate existing terms.
Fixes #1328
Jay Patel [Thu, 10 Jul 2014 10:14:51 +0000 (15:44 +0530)]
[FIX] website_forum: when a user posting a new answer or question does not have a valid email address, redirect to the user's profile instead of crashing when trying to send notifications.
Raphael Collet [Tue, 5 Aug 2014 08:01:07 +0000 (10:01 +0200)]
[FIX] account: fix unexpected invalidation of field account_invoice.reconciled
Problem: the field account_invoice.reconciled was invalidated by a workflow
signal sent from the compute method of the field. The purpose of the signal was
to re-open the invoice when the account move lines were no longer reconciled,
for instance after cancelling a reconciliation.
Solution: modify the workflow such that it makes an automatic transition from
'paid' to 're-open' when the condition 'not reconciled' is met. This works
because the field 'reconciled' is stored, and each recomputation forces a
reevaluation the workflow. The signal to re-open the invoice is thus no longer
necessary.
Jitendra Prajapati [Mon, 7 Jul 2014 10:04:01 +0000 (15:34 +0530)]
[FIX] sale_stock: invoice createde from picking was not using the prive list from the bom components
Mahendra barad [Mon, 4 Aug 2014 13:38:09 +0000 (19:08 +0530)]
[FIX] website_blog: fixed mobile css for the blog footer
Martin Trigaux [Tue, 5 Aug 2014 07:30:14 +0000 (09:30 +0200)]
[FIX] account: method should return browse records, not set
Denis Ledoux [Mon, 4 Aug 2014 19:08:18 +0000 (21:08 +0200)]
[FIX] website: use SUPERUSER_ID to browse company for res_company
In a multi-company environment,
if the user signed in was not working in the company displayed by the website,
he couldn't browse the website
Christophe Simonis [Mon, 4 Aug 2014 17:41:43 +0000 (19:41 +0200)]
[FIX] account: correct v8 version of map_tax() method of account.fiscal.postion
Olivier Dony [Mon, 4 Aug 2014 16:19:47 +0000 (18:19 +0200)]
[IMP] base: improved doc for `states` attribute of fields
See #1527
Denis Ledoux [Mon, 4 Aug 2014 16:12:29 +0000 (18:12 +0200)]
[FIX] stock, sale_stock: product.packaging, product_id renamed to product_tmpl_id
Some domains have not been altered according to this rename
Denis Ledoux [Mon, 4 Aug 2014 14:56:10 +0000 (16:56 +0200)]
[MERGE] forward port of branch saas-5 up to 655a5b9
Martin Trigaux [Mon, 4 Aug 2014 12:22:54 +0000 (14:22 +0200)]
[FIX] mrp: better selection of bom
When searching for a bom based on a product.product, the method used to return any bom linked to the template (so searching for bom for variant A could return bom for variant B if both share the same product.template).
This will allow to return bom not linked to a variant without returning the one of another variant (opw 609358)
Denis Ledoux [Mon, 4 Aug 2014 14:14:31 +0000 (16:14 +0200)]
[MERGE] forward port of branch saas-4 up to 8c0c743
Denis Ledoux [Mon, 4 Aug 2014 14:14:05 +0000 (16:14 +0200)]
[MERGE] forward port of branch saas-3 up to ebf317a
Denis Ledoux [Mon, 4 Aug 2014 14:10:06 +0000 (16:10 +0200)]
[MERGE] forward port of branch 7.0 up to e07bc5d
sle-odoo [Mon, 4 Aug 2014 14:09:40 +0000 (16:09 +0200)]
Merge pull request #1563 from odoo-dev/saas-4-sale-report-validity-date-sle
website_quote: renamed validity date to expiry date & adapted the sale order report to display the expiry date in website_quote module instead of sale module
Christophe Simonis [Mon, 4 Aug 2014 14:00:33 +0000 (16:00 +0200)]
[FIX] web: redirect "My Odoo.com Account" link to accounts.odoo.com
Denis Ledoux [Mon, 4 Aug 2014 13:54:56 +0000 (15:54 +0200)]
[ADD] res_partner: test case for fix rev
4a278809741d4e961ac13d3477a046d43b32cfa7
Raphael Collet [Mon, 4 Aug 2014 09:20:03 +0000 (11:20 +0200)]
[FIX] purchase: fix test merge_order (check on date_order was not correct)
Raphael Collet [Mon, 4 Aug 2014 09:12:39 +0000 (11:12 +0200)]
[FIX] models: default_get() shall not return a dict as a many2one value
When a new record is returned as the value for a many2one on a new record, the
method Many2one.convert_to_write() now returns a NewID, and default_get() then
discards that value from its result. This makes it consistent with its former
behavior.
Manual rebase of #1547
Simon Lejeune [Mon, 4 Aug 2014 13:49:16 +0000 (15:49 +0200)]
[REF] website_quote: displayed string of validity_date field changed from 'Validity Date' to 'Expiry Date'
dhr-odoo [Tue, 10 Jun 2014 08:56:08 +0000 (14:26 +0530)]
[FIX] survey: missing timezone conversions
As the survey hardcode lot's of views and reports in python, we do not beneficiate from automatic timezone conversions in the webclient.
Hopefully this is fixed in v8 after refactoring of the survey module. opw 608786
Raphael Collet [Mon, 4 Aug 2014 09:45:11 +0000 (11:45 +0200)]
[FIX] module loading: manual x2x fields can now refer to manual models
The fix consists in this: when setting up models, ignore manual fields that
refer to unknown models if all models have not been loaded yet.
Thibault Delavallée [Mon, 4 Aug 2014 11:02:42 +0000 (13:02 +0200)]
[REF] mail: same_thread field changed into no_auto_thread, its contrary, to avoid migration issues (adding a 'always False' column is easier than an 'always True').
Simon Lejeune [Mon, 4 Aug 2014 12:45:38 +0000 (14:45 +0200)]
[FIX] sale/website_quote: inherit the sale order report to show the validity date
Christophe Matthieu [Mon, 4 Aug 2014 12:43:54 +0000 (14:43 +0200)]
Merge pull request #1428 from odoo-dev/sass-5-fixes-chm
[FIX] website_sale and point_of_sale fixes
Martin Trigaux [Mon, 4 Aug 2014 09:42:40 +0000 (11:42 +0200)]
[FIX] mrp: duplicated find bom buttons
The product_id field is not required on a mrp.bom (while product_tmpl_id is). When searching for BOMs linked to a product.product, we should display the one specific to this product and the ones linked to the template (but not linked to another variant).
Martin Trigaux [Mon, 4 Aug 2014 10:14:11 +0000 (12:14 +0200)]
[FIX] procurement: missing variable
scheduler_cron_id was not initialised so the scheduler always crashed (with just info message)
Jeremy Kersten [Mon, 4 Aug 2014 12:41:55 +0000 (14:41 +0200)]
[FIX] website: encode param for seo search, else multi words will not work.
Denis Ledoux [Mon, 4 Aug 2014 12:34:08 +0000 (14:34 +0200)]
[FIX] res_partner: commercial partner sync
On child partner creation of a parent partner, the commercial_partner_id is not computed (and stored) in the create method.
Therefore, we should compute the commercial_partner_id before trying to sync his data
Jeremy Kersten [Mon, 4 Aug 2014 10:25:59 +0000 (12:25 +0200)]
[FIX] website: use internal route for SEO suggest keyword, old server is down
cod-odoo [Fri, 1 Aug 2014 04:40:03 +0000 (10:10 +0530)]
[FIX] gamification: prevent traceback in goals history
Closes #1536
rba-odoo [Wed, 30 Jul 2014 07:15:00 +0000 (12:45 +0530)]
[FIX] im_char: correct display over kanban view
Denis Ledoux [Mon, 4 Aug 2014 09:05:01 +0000 (11:05 +0200)]
[FIX] payment*: add the customer state to payment (paypal) transactions
Denis Ledoux [Mon, 4 Aug 2014 08:25:59 +0000 (10:25 +0200)]
[FIX] payment_paypal: paypal IPN, receiver_id is not always passed
The method _paypal_form_get_invalid_parameters checks that the params passed by the paypal feedback coroborate with the transaction requested by Odoo.
It looks like the 'receiver_id' is not always passed by the paypal feedback. Therefore, we check this param only if it is available in the paypal feeback.
This issue had as side-effect to not validate the paypal transaction, which remained 'draft' permanently.
Raphael Collet [Mon, 4 Aug 2014 07:49:35 +0000 (09:49 +0200)]
[IMP] openerp.api: improve documentation
Olivier Dony [Sat, 2 Aug 2014 18:42:19 +0000 (20:42 +0200)]
[MERGE] Forward-port saas-5 up to 37ba23d
Olivier Dony [Sat, 2 Aug 2014 18:35:51 +0000 (20:35 +0200)]
[MERGE] Forward-port saas-3 up to b6acdc4
Olivier Dony [Sat, 2 Aug 2014 18:34:44 +0000 (20:34 +0200)]
[MERGE] Forward-port 7.0 up to 2493395
Olivier Dony [Sun, 3 Aug 2014 18:12:45 +0000 (20:12 +0200)]
[FIX] product_visible_discount: no crash when no pricelist passed or product without company
Fixes an error introduced in f6fb2b6
Olivier Dony [Sat, 2 Aug 2014 01:32:09 +0000 (03:32 +0200)]
[FIX] product_visible_discount: no crash when no pricelist passed or product without company
Fixes an error introduced in f6fb2b6
Olivier Dony [Fri, 1 Aug 2014 21:14:59 +0000 (23:14 +0200)]
[MERGE] Forward-port saas-3 up to 7273474
Olivier Dony [Fri, 1 Aug 2014 21:10:29 +0000 (23:10 +0200)]
[MERGE] Forward-port saas-3 up to fc92027
Olivier Dony [Fri, 1 Aug 2014 21:04:42 +0000 (23:04 +0200)]
[FIX] website: OpenERP->Odoo in website footer
Olivier Dony [Fri, 1 Aug 2014 21:01:57 +0000 (23:01 +0200)]
[MERGE] Forward-port 7.0 up to
9411a2da
Olivier Dony [Fri, 1 Aug 2014 20:42:01 +0000 (22:42 +0200)]
[FIX] Model.load(): extra error checking while importing data
If any missing or partially incorrect values cause
an exception other than a psycopg2 error, we should
still catch it, rollback that record and report
the error, rather than letting bubble and fail
without any feedback to the user.
Fixes #1485