Commit Graph

90096 Commits

Author SHA1 Message Date
Christophe Simonis dc9bcf479d [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.
2014-08-06 15:01:01 +02:00
Daniel Dico 6dc4676632 [FIX] website_livechat: reference of demo data was preventing to install the module
Added a record of im_livechat.channel in website_livechat data
2014-08-06 14:50:01 +02:00
Mohammed Shekha e106ef91ef [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
2014-08-06 14:10:00 +02:00
Fekete Mihai 87a870ccbd [FIX] stock: typo when selecting inventory on single product 2014-08-06 11:37:22 +02:00
Raphael Collet 6a83425ba9 [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.
2014-08-06 11:24:37 +02:00
Richard Mathot 52a37be447 [FIX] project_issue: reviewer_id doesn(t exist
(partial revert of 44a5268c00)
2014-08-06 10:30:52 +02:00
Raphael Collet 4c18c5fb6e [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.
2014-08-06 09:07:57 +02:00
Thibault Delavallée 836b0f864e [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. 2014-08-06 09:01:09 +02:00
Denis Ledoux 625aa7e75d [MERGE] forward port of branch saas-5 up to 7d7f6fe 2014-08-05 16:04:58 +02:00
Denis Ledoux 7d7f6fefb1 [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
2014-08-05 16:01:55 +02:00
Denis Ledoux 497883cc51 [FIX] web_kanban: parent can be undefined in some cases
opw-611106, when clicking quickly Sales > Opportunities than Sales > Leads.
2014-08-05 15:44:57 +02:00
Raphael Collet 54b901effd [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.
2014-08-05 15:20:14 +02:00
cod-odoo 2d54afef9e [FIX] account: prevent crash onchange company_id
(rebase of #1534)
2014-08-05 15:09:32 +02:00
Samus CTO 5f6fc4735a [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.
2014-08-05 15:02:23 +02:00
Raphael Collet 56c54a52df [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)
2014-08-05 14:17:11 +02:00
Cedric Snauwaert 81415b526b [FIX] web: tooltip container set to body in all case
Mandatory since we changed the structure of the dom since 8.0.
2014-08-05 13:57:49 +02:00
Wolfgang Taferner b09a766f0a [IMP] workflow: add sequence for ordering workflow transitions (split/join mode especially for XOR)
Makes ordering transitions easier and more deterministic.

(Rebase of #1564)
2014-08-05 12:26:28 +02:00
qdp-odoo 973770f7cb Merge pull request #1581 from odoo-dev/8.0-fix-account-invoice-rco
[FIX] account: fix unexpected invalidation of field account_invoice.reconciled
2014-08-05 11:48:49 +02:00
Florian Hatat c4f5caa511 [FIX] mrp: Fix spelling error on 'manufacturing'
Changing .po files to avoid to retranslate existing terms.
Fixes #1328
2014-08-05 11:11:49 +02:00
Jay Patel f274572c30 [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. 2014-08-05 10:05:49 +02:00
Raphael Collet c0997d332a [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.
2014-08-05 10:01:07 +02:00
Jitendra Prajapati 240e042363 [FIX] sale_stock: invoice createde from picking was not using the prive list from the bom components 2014-08-05 09:49:42 +02:00
Mahendra barad dc72b26821 [FIX] website_blog: fixed mobile css for the blog footer 2014-08-05 09:49:42 +02:00
Martin Trigaux dbca34511e [FIX] account: method should return browse records, not set 2014-08-05 09:30:14 +02:00
Denis Ledoux 52eadd5199 [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
2014-08-04 21:08:18 +02:00
Christophe Simonis e29a7b7b4c [FIX] account: correct v8 version of map_tax() method of account.fiscal.postion 2014-08-04 19:41:43 +02:00
Olivier Dony c5b517696d [IMP] base: improved doc for `states` attribute of fields
See #1527
2014-08-04 18:20:13 +02:00
Denis Ledoux 0c48520a8d [FIX] stock, sale_stock: product.packaging, product_id renamed to product_tmpl_id
Some domains have not been altered according to this rename
2014-08-04 18:12:29 +02:00
Denis Ledoux 1bb219907f [MERGE] forward port of branch saas-5 up to 655a5b9 2014-08-04 16:56:10 +02:00
Martin Trigaux 4d8337fec8 [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)
2014-08-04 16:28:18 +02:00
Denis Ledoux 655a5b948d [MERGE] forward port of branch saas-4 up to 8c0c743 2014-08-04 16:14:31 +02:00
Denis Ledoux 8c0c74300f [MERGE] forward port of branch saas-3 up to ebf317a 2014-08-04 16:14:05 +02:00
Denis Ledoux ebf317a3b0 [MERGE] forward port of branch 7.0 up to e07bc5d 2014-08-04 16:10:06 +02:00
sle-odoo 5af8868c46 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
2014-08-04 16:09:40 +02:00
Christophe Simonis 7b3e28dc74 [FIX] web: redirect "My Odoo.com Account" link to accounts.odoo.com 2014-08-04 16:00:33 +02:00
Denis Ledoux e07bc5d845 [ADD] res_partner: test case for fix rev 4a27880974 2014-08-04 15:54:56 +02:00
Raphael Collet 2154cc9344 [FIX] purchase: fix test merge_order (check on date_order was not correct) 2014-08-04 15:50:14 +02:00
Raphael Collet a1d0394ff4 [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
2014-08-04 15:50:04 +02:00
Simon Lejeune e56635c3f1 [REF] website_quote: displayed string of validity_date field changed from 'Validity Date' to 'Expiry Date' 2014-08-04 15:49:16 +02:00
dhr-odoo 4b5015469d [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
2014-08-04 15:32:28 +02:00
Raphael Collet 2d2274aeed [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.
2014-08-04 15:10:12 +02:00
Thibault Delavallée 7f0353974d [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'). 2014-08-04 14:46:47 +02:00
Simon Lejeune 834dfc00eb [FIX] sale/website_quote: inherit the sale order report to show the validity date 2014-08-04 14:45:38 +02:00
Christophe Matthieu 8d53c357ba Merge pull request #1428 from odoo-dev/sass-5-fixes-chm
[FIX] website_sale and point_of_sale fixes
2014-08-04 14:43:54 +02:00
Martin Trigaux 4152e99bbd [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).
2014-08-04 14:43:28 +02:00
Martin Trigaux 6231427f0a [FIX] procurement: missing variable
scheduler_cron_id was not initialised so the scheduler always crashed (with just info message)
2014-08-04 14:43:28 +02:00
Jeremy Kersten 19a6e879f0 [FIX] website: encode param for seo search, else multi words will not work. 2014-08-04 14:41:55 +02:00
Denis Ledoux 4a27880974 [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
2014-08-04 14:34:08 +02:00
Jeremy Kersten 28e62e46b5 [FIX] website: use internal route for SEO suggest keyword, old server is down 2014-08-04 12:25:59 +02:00
cod-odoo fca77ad8c5 [FIX] gamification: prevent traceback in goals history
Closes #1536
2014-08-04 11:37:26 +02:00