Martin Trigaux [Wed, 17 Sep 2014 09:05:32 +0000 (11:05 +0200)]
[IMP] payment: simplify rev d99835e
The group public is defined in base so no need to add security rule in website_payment module (same as for portal)
Martin Trigaux [Tue, 16 Sep 2014 13:27:56 +0000 (15:27 +0200)]
[FIX] payment: access rights limitation
Do not allow everybody to access account.transactions.
Restrict by default to readonly and even restrict the access with a record rule, give access to salesman.
Denis Ledoux [Mon, 15 Sep 2014 13:22:04 +0000 (15:22 +0200)]
[FIX] web: do not check if db in session match filter if no db
Martin Trigaux [Mon, 15 Sep 2014 10:54:40 +0000 (12:54 +0200)]
Forward port of 7.0 up to revision 42680c9
Well actually it's an empty forward port to avoid forward porting last 7.0 commit in saas...
Denis Ledoux [Mon, 7 Apr 2014 08:24:45 +0000 (10:24 +0200)]
[FIX] web: backport of ebb826a and 2372d30
Fixing breadcrumb not being displayed after some action button (e.g. validate invoice, opw 612763)
Denis Ledoux [Mon, 15 Sep 2014 09:58:10 +0000 (11:58 +0200)]
[MERGE] forward port of branch 7.0 up to b601015
Denis Ledoux [Mon, 15 Sep 2014 09:55:53 +0000 (11:55 +0200)]
[FIX] tools: restrict available attributes
Olivier Dony [Fri, 12 Sep 2014 15:51:56 +0000 (17:51 +0200)]
[IMP] ir.model:.fields allow setting ondelete=restrict foncustom fields
Christophe Simonis [Fri, 12 Sep 2014 15:28:55 +0000 (17:28 +0200)]
[MERGE] forward port of branch 7.0 up to 9b1cdea
Denis Ledoux [Fri, 12 Sep 2014 14:25:48 +0000 (16:25 +0200)]
[FIX] mrp_repair: invoice the actual invoice partner id
Fekete Mihai [Fri, 12 Sep 2014 14:04:22 +0000 (16:04 +0200)]
[FIX] l10n_ro: backport of fix done in res_partner.py from aa76885
PR #720
Denis Ledoux [Thu, 11 Sep 2014 15:54:58 +0000 (17:54 +0200)]
[FIX] product: can be sold as default filter for templates
fka-odoo [Wed, 2 Jul 2014 08:38:41 +0000 (14:08 +0530)]
[FIX] web: sort with undefined value
In this awesome programming language called javascript, undefined is neither bigger nor smaller than a string. Previous code was then considering undefined values equal to any string.
This fix allows to sort in a column of a o2m field and group the undefined values together. opw 607704
Denis Ledoux [Thu, 11 Sep 2014 15:20:27 +0000 (17:20 +0200)]
[FIX] stock: return picking, pass serial number value when returning
Dharti Ratani [Thu, 11 Sep 2014 15:01:03 +0000 (17:01 +0200)]
[FIX] survey: access rights error when editing
The wizard 'Edit Survey' > 'Add Question' was trowing an access rights error as the id was passed as a string instead of a real id. opw 607854
Denis Ledoux [Thu, 11 Sep 2014 15:00:45 +0000 (17:00 +0200)]
[FIX] web_graph: pivot_table, use _.isEmpty to check if value_lookup is False
Martin Trigaux [Wed, 10 Sep 2014 16:06:38 +0000 (18:06 +0200)]
[FIX] hr_expense: tax amount computation
The tax_amount field should contain the basic amount (without tax) for base tax code. (opw 613470)
Denis Ledoux [Thu, 11 Sep 2014 07:58:38 +0000 (09:58 +0200)]
[FIX] web: *.openerp.com to *.odoo.com
Martin Trigaux [Wed, 10 Sep 2014 15:35:44 +0000 (17:35 +0200)]
[FIX] mail: encoding of sender name with unicode
When sending an email, both formats 'Name <email>' or '"Name" <email>' can be used for fields 'From', 'To' and others. If the name contains unicode characters, a regex only matching '"Name" <email>' was used to encode the name with RFC2047. That meant that the name was not encoded and eventually dropped, using only the email part.
Instead of using a limited regex, use the parseaddr method from email library.
Fixes lp:1272610, opw 607683
Denis Ledoux [Wed, 10 Sep 2014 15:25:56 +0000 (17:25 +0200)]
[FIX] mail: alias domain should be fetch as superuser
as ir.config.parameter has limited access
Frederic van der Essen [Wed, 10 Sep 2014 12:30:43 +0000 (14:30 +0200)]
[FIX] point_of_sale: chrome was dropping the cookie when loading the company logo, resulting in an incorrect logo in multi-db setups.
Frederic van der Essen [Wed, 10 Sep 2014 11:39:50 +0000 (13:39 +0200)]
[FIX] point_of_sale: fix some image chaching issues with the receipt logo. Using a random url at each fetch ensures that we don't get cached results
Denis Ledoux [Wed, 10 Sep 2014 10:18:14 +0000 (12:18 +0200)]
[FIX] ir_attachment: attachements removed on record unlink
Bhavik Bagdiya [Fri, 22 Aug 2014 09:29:39 +0000 (14:59 +0530)]
[FIX] web: stages positioned properly when there is no sheet
Fixes #271
Closes #2004
Denis Ledoux [Tue, 9 Sep 2014 17:17:23 +0000 (19:17 +0200)]
[FIX] email_template: a tag link rendering, do not process if no href
Denis Ledoux [Tue, 9 Sep 2014 17:00:58 +0000 (19:00 +0200)]
[FIX] website_event_sale: take taxes from product_id_change into account
Denis Ledoux [Tue, 9 Sep 2014 16:23:32 +0000 (18:23 +0200)]
[MERGE] forward port of branch 7.0 up to 8dff247
Denis Ledoux [Tue, 9 Sep 2014 16:02:30 +0000 (18:02 +0200)]
[MERGE] forward port of branch 7.0 up to 33e0910
Denis Ledoux [Tue, 9 Sep 2014 14:45:42 +0000 (16:45 +0200)]
[FIX] orm, read_group: read_group_fill_results handle no_leaf
Martin Trigaux [Tue, 9 Sep 2014 11:43:04 +0000 (13:43 +0200)]
[FIX] hr_expense: tax included computation
When a tax included has a several childs, the source line should not be duplicated for each tax.
Without the patch, the actual product price (without taxes) would be (total - tax amount) for the last tax only (and not the sum of each tax). (opw 609104)
Simon Lejeune [Tue, 9 Sep 2014 09:52:44 +0000 (11:52 +0200)]
[FIX] web: missing backport of rev
df3c6b750249
[FIX] web: do not try to close a destroyed dialog. trigger "closing" signal on close by top-right "X" button
Denis Ledoux [Mon, 8 Sep 2014 08:49:56 +0000 (10:49 +0200)]
[FIX] ir_attachment: ignore if model uninstalled
if the model of an attachement no longer exists (the according module have been uninstalled, for instance), ignore the security check
Mohammed Shekha [Fri, 5 Sep 2014 14:39:06 +0000 (16:39 +0200)]
[IMP] css: width of readonly list view field
readonly float fields in list view were not correctly placed when the focus was on the line (seen espacially if field was large, e.g. nb_register on registration)
Loïc Bellier [Tue, 29 Jul 2014 16:48:26 +0000 (18:48 +0200)]
[FIX] stock: show the UoS quantity on picking lines
The pickings already show the UoS, but not the associated quantity, which makes it useless.
Denis Ledoux [Fri, 5 Sep 2014 12:57:20 +0000 (14:57 +0200)]
[FIX] web: do not allow to access a database if not matching db-filter
Rifakathusen Haradwala [Mon, 1 Sep 2014 13:26:04 +0000 (18:56 +0530)]
[FIX] mail: translate tracked fields name in chatter
Status tracking messages are not translated into user's language while updating any document with tracked fields (opw 612847)
Denis Ledoux [Fri, 5 Sep 2014 09:44:20 +0000 (11:44 +0200)]
[FIX] tools,mail: improve parsing of references from rev.
0bee015dd67cb809fd235215b43d331074824e42
Backport of 8.0 fix was not enough for 7.0, because it still fails for the legacy reference match (model+res_id), which is not used in 8.0
Christophe Simonis [Thu, 4 Sep 2014 15:46:51 +0000 (17:46 +0200)]
[MERGE] forward port of branch 7.0 up to 59b76ee
Your Name [Thu, 21 Aug 2014 12:55:49 +0000 (18:25 +0530)]
[FIX] sale: keep page when confirming a sale order
To keep the pager and view changer after confirmation of a sale order, do not reload the view (quotation and sale order view are the same anyway)
Fixes #250
Somesh Khare [Tue, 26 Aug 2014 06:25:23 +0000 (11:55 +0530)]
[FIX] document: display Attachment(s) menu only on form view
The attachment menu (list and add) has no effect in tree view (not supporting multi-items upload and display), the menu should then only be displayed in these view (opw 612534)
Denis Ledoux [Thu, 4 Sep 2014 10:31:14 +0000 (12:31 +0200)]
[MERGE] forward port of branch 7.0 up to 5872c24
Denis Ledoux [Thu, 4 Sep 2014 10:28:16 +0000 (12:28 +0200)]
[FIX] stock: on partial picking, do no open a new window action if not needed
This is related to rev. dd4d72d
Not opening a new window action allows to keep the current list of stock picking being threated, and to use the next an previous arrow of the forom view of the web client.
Martin Trigaux [Thu, 4 Sep 2014 08:17:18 +0000 (10:17 +0200)]
[IMP] crm_partner_assign: remove inexistant onchange
This field is readonly so a onchange is useless anyway (opw 612593)
Denis Ledoux [Wed, 3 Sep 2014 16:26:53 +0000 (18:26 +0200)]
[MERGE] forward port of branch 7.0 up to 7307227
Denis Ledoux [Wed, 3 Sep 2014 16:25:19 +0000 (18:25 +0200)]
[FIX] mrp: do not reset back stock moves to confirm
For instance, setting a BOM Phantom with:
Finished product: stockable, MTO Manufacture
Components: stockable, MTS, Buy. Inventory set to 1000
Stock moves of components are directly set to assigned once the procurement confirmed thanks to JIT
The stock moves should not be set back to confirmed after they have been assigned
Denis Ledoux [Wed, 3 Sep 2014 13:19:26 +0000 (15:19 +0200)]
[FIX] payment_paypal: avoid json decode error
with post.pop('custom', '{}'), if the key 'custom' is not there, it will return '{}', but if the key is there, but the value is equivalent to False, the json decode will fail.
Olivier Dony [Tue, 2 Sep 2014 17:42:24 +0000 (19:42 +0200)]
[IMP] web: extra comments to explain commit 57b4860
Added some cryptic comments so we remember a bit
why we have a complicated dance with on_close.
Basically we do not want to reload the
original form view until the last popup is closed,
in the case where several wizard (steps) are opened
one after the other.
Denis Ledoux [Tue, 2 Sep 2014 16:43:22 +0000 (18:43 +0200)]
[FIX] account_payment: lin2bank correct fallback condition
Stéphane Wirtel [Thu, 12 Jun 2014 13:08:33 +0000 (15:08 +0200)]
[IMP] Optimize the schedulers of the calendar, fetchmail and base_action_rules modules
Disable the the crons when they'd have nothing to do, re-enable them when a
task is (probably) introduced
Denis Ledoux [Tue, 2 Sep 2014 15:32:37 +0000 (17:32 +0200)]
[FIX] web: chain close action on wizard confirm
If a wizard has several steps, or laucnh a second wizard, the view from where has been loaded the initial wizard is finally reloaded
Denis Ledoux [Mon, 1 Sep 2014 14:10:40 +0000 (16:10 +0200)]
[FIX] web: no_create, if loose focus do not open quick_create
Anael Closson [Wed, 18 Jun 2014 12:33:35 +0000 (14:33 +0200)]
[FIX] mail: more robust parsing of In-Reply-To/References (OPW 608919)
When parsing incoming messages, ignore white-space around
In-Reply-To headers, and extract message-id items inside
the References header using a regex.
This actually serves as a workaround for broken MTAs
mangling References (such as outlook.com nesting past ones
with commas, violating RFC2822).
Closes #516 as a manual rebase.
Denis Ledoux [Fri, 29 Aug 2014 18:54:15 +0000 (20:54 +0200)]
[MERGE] forward port of branch 7.0 up to 18d365c
Denis Ledoux [Fri, 29 Aug 2014 18:40:31 +0000 (20:40 +0200)]
"[REVERT][FIX] point_of_sale: field date of report.pos.order should be a datetime"
This reverts commit
97d097a2af8c3992d5108bd75b82fa8479d196cc.
As explained in the commit comments (on Github), this patch leads to an infinite loop in 7.0, the filter of the pos orders report using the '=' operator in its domain, which is not available for datetime fields, but is for date fields.
This should not be forward ported to newer release (saas-3)
Denis Ledoux [Fri, 29 Aug 2014 14:29:17 +0000 (16:29 +0200)]
[FIX] stock: display product variant name in the slip
Denis Ledoux [Fri, 29 Aug 2014 13:46:36 +0000 (15:46 +0200)]
[FIX] l10n_ma: proper chart of account name
Christophe Simonis [Thu, 28 Aug 2014 17:07:11 +0000 (19:07 +0200)]
[MERGE] forward port of branch 7.0 up to 15ee4d8
Christophe Simonis [Thu, 28 Aug 2014 17:04:14 +0000 (19:04 +0200)]
[FIX] email_template: remove group restriction on field mail.compose.message.template_id
This was added as a security check, but access to this field is need by the wizard itself.
As non employee users can't read/create email templates, this will not be problematic
Christophe Simonis [Thu, 28 Aug 2014 16:32:11 +0000 (18:32 +0200)]
[FIX] mail: read ir.config_parameter with SUPERUSER_ID
Christophe Simonis [Thu, 28 Aug 2014 16:15:10 +0000 (18:15 +0200)]
[MERGE] forward port of branch 7.0 up to f65c913
Christophe Simonis [Thu, 28 Aug 2014 16:14:08 +0000 (18:14 +0200)]
[FIX] base: security: employee must have access to res.groups
Christophe Simonis [Thu, 28 Aug 2014 15:21:54 +0000 (17:21 +0200)]
[FIX] account: use method has_group() instead of browsing the group directly.
Christophe Simonis [Thu, 28 Aug 2014 15:17:10 +0000 (17:17 +0200)]
[FIX] hr_holidays: remove now invalid xml attribute "model" (introduced by last forward-port)
Christophe Simonis [Thu, 28 Aug 2014 14:12:55 +0000 (16:12 +0200)]
[MERGE] forward port of branch 7.0 up to 3509e15
Denis Ledoux [Wed, 27 Aug 2014 16:13:53 +0000 (18:13 +0200)]
[FIX] website_blog: controllers blog expects a date, not a datetime
Leonardo Donelli [Fri, 27 Jun 2014 15:30:16 +0000 (17:30 +0200)]
[IMP] report_sxw: missing parameter without_company for display_address
Fixes #811
Ravi Gohil [Wed, 6 Aug 2014 22:37:09 +0000 (04:07 +0530)]
[FIX] account: avoid date and cache issues
Explicitely refresh invoice browse_record(...) in order to have correct 'date' in account.move.
Use context_today() date instead of time.strftime() for date_invoice. (opw 611210)
Nicolas Seinlet [Wed, 27 Aug 2014 09:48:40 +0000 (11:48 +0200)]
[FIX] sale: on create, set taxes if product_id_change called
Denis Ledoux [Tue, 26 Aug 2014 16:10:14 +0000 (18:10 +0200)]
[FIX] resource: security, resource not readable by externals
Denis Ledoux [Tue, 26 Aug 2014 15:32:04 +0000 (17:32 +0200)]
[FIX] email_template: security, email_template no rights for externals
Denis Ledoux [Tue, 26 Aug 2014 14:17:24 +0000 (16:17 +0200)]
[FIX] security: disallow read on ir.sequence for externals
Denis Ledoux [Tue, 26 Aug 2014 13:35:47 +0000 (15:35 +0200)]
[FIX] security: remove read access on company critical fields
Denis Ledoux [Tue, 26 Aug 2014 11:31:41 +0000 (13:31 +0200)]
[FIX] security: res.groups should be readable by admins only
Denis Ledoux [Tue, 26 Aug 2014 10:55:48 +0000 (12:55 +0200)]
[FIX] security: externals should be able to read attachements
without having the rights to read ir.config_parameter
Denis Ledoux [Tue, 26 Aug 2014 10:50:04 +0000 (12:50 +0200)]
[FIX] security: ir.config_parameter should not be readable by externals
Denis Ledoux [Tue, 26 Aug 2014 08:56:44 +0000 (10:56 +0200)]
Revert "[FIX] web: grid headers should be aligned properly"
This reverts commit
4c335588a1f5d6d1f03e17aa20e37ffe4197447c.
It leads to table widths inconsistencies: The tables take more width then before, and overflow much more than before. This can be seen in "Accounting" > "Journal Entries", in the list of the form view
TheCloneMaster [Mon, 25 Aug 2014 07:16:45 +0000 (01:16 -0600)]
[FIX] hw_escpos: Replaced "tab" by space
call to self.open() had a tab instead of spaces
Daniel Dico [Mon, 25 Aug 2014 15:16:35 +0000 (11:16 -0400)]
[FIX] sale_order_line: use order date to compute currency instead of current date
Daniel Dico [Mon, 25 Aug 2014 15:19:43 +0000 (11:19 -0400)]
[FIX] product_visible_discount: use order date to compute currency instead of current date
Denis Ledoux [Mon, 25 Aug 2014 12:51:03 +0000 (14:51 +0200)]
[FIX] hr_holidays: employees cannot approve their holidays
Nor modify once approved
It wasn't possible for employees to approve their holidays themself, thanks to the GUI, but this was possible through xmlrpc calls, or when altering the html directly in the browser.
Besides, this was also possible to edit the holiday through the same trick once the holiday validated
Ravish Murari [Thu, 7 Aug 2014 12:34:42 +0000 (18:04 +0530)]
[FIX] board: Do not offer to create dashboard when there is no action
In case we have no defined action (e.g. redirection by python code), adding a dashboard should not be possible as the rendering based on the action.
This patch hides the 'Add to Dashboard' button in search view (opw 611288)
Martin Trigaux [Fri, 22 Aug 2014 13:29:23 +0000 (15:29 +0200)]
[FIX] point_of_sale: generate bank statement with commerical partner
When a pos session is closed & confirmed, the account.move were generated with the commercial partner except for the bank statement which prevented automatic reconciliation.
This patch uses the commercial partner also for bank statement.
Fixes #1558, #1764
Martin Trigaux [Fri, 22 Aug 2014 10:49:39 +0000 (12:49 +0200)]
[FIX] fetchmail: do not delete a failing email when using POP
In case of IMAP, the email is simply set as read but in case of POP, the email is deleted. To avoid loosing data (e.g. misconfiguration of server), the email is kept for POP.
Bug lp:1296724, opw 605667
Bhavik Bagdiya [Tue, 19 Aug 2014 05:07:54 +0000 (10:37 +0530)]
[FIX] web: grid headers should be aligned properly
Martin Trigaux [Thu, 21 Aug 2014 15:57:57 +0000 (17:57 +0200)]
Forward port of branch 7.0 up to 0ab88f5
Martin Trigaux [Thu, 21 Aug 2014 13:27:31 +0000 (15:27 +0200)]
[FIX] ir_model: invalidate cache when adding new fields
When a new ir.model.field is created, add the new field in the fields_by_model (cache of custom fields). This is required as the __init__ method would not retrieve the new field if fields_by_model is already set.
Otherwise, the _columns would not contain the new fields and we could not access it without restarting the server (e.g. the installation of a module adds ir.model.fields and use it in the a view.
Desai Binjal [Wed, 6 Aug 2014 12:16:46 +0000 (17:46 +0530)]
[FIX] note: small bugs
Martin Trigaux [Thu, 21 Aug 2014 12:30:10 +0000 (14:30 +0200)]
[FIX] base: wrong model change check
Comparing an id and a browse record will always fail so the exception would have always been raised when changing a model (e.g. updating a module with custom fields).
fka-odoo [Wed, 6 Aug 2014 12:12:30 +0000 (17:42 +0530)]
[IMP] account_budget: added date filter in print budget report
Fixes #1743, opw 611307
Denis Ledoux [Thu, 21 Aug 2014 09:17:29 +0000 (11:17 +0200)]
[FIX] point_of_sale: report, product_id of line is product_product
product_id column of pos_order_line is a product_product
the left join of l.product_id was done on product_template, instead of product_product
It worked as long as the ids product_product were the same as product_template. Meaning that, if you used variants, this report view was screwed.
Christophe Simonis [Wed, 20 Aug 2014 15:45:05 +0000 (17:45 +0200)]
[MERGE] forward port of branch 7.0 up to d0a0b7d
Christophe Simonis [Wed, 20 Aug 2014 15:33:27 +0000 (17:33 +0200)]
[FIX] web: correct /web/proxy/load to set correct base_url
Guewen Baconnier [Wed, 9 Jul 2014 11:56:24 +0000 (13:56 +0200)]
[FIX] purchase: skip move if not linked to a purchase order
When this situation happens. the 'cost' is None and the web interface cannot handle this value, provoking a JS error. Thus, prefer to fallback on the standard way to get the cost: based on the current standard price of the product.
Fixes #1032
Martin Ambroz [Wed, 20 Aug 2014 04:42:19 +0000 (08:42 +0400)]
[FIX] base: python 2.6 incompatibility for dictionary comprehension
Sandy Carter [Mon, 11 Aug 2014 17:21:29 +0000 (13:21 -0400)]
[IMP] auth_oauth: set default 'zocial' css_class
The buttons for new providers needs at least the zocial css class to be seen as button. As the field css_class is not in the default form view, add it by default.
Daniel Dico [Sat, 16 Aug 2014 04:59:27 +0000 (00:59 -0400)]
[FIX] account_anglo_saxon: variable 'standard_price' referenced before assignment
Due to forward-port, the variable standard_price was reintroduced instead of valuation_price_unit
Move the change of currency after the fifo/lifo computation.
Fixes #1801
Sébastien BEAU [Sat, 16 Aug 2014 23:44:12 +0000 (01:44 +0200)]
[FIX] web: ignored readonly attribute on image widget
fka-odoo [Wed, 13 Aug 2014 07:13:34 +0000 (12:43 +0530)]
[FIX] web: rendering issue in mail composer on Firefox
The cleditor width does not include the margins. Setting 100% will make the editable area too large (104%) on Firefox (opw 611700).
Replaced by auto, the default value adviced by CLEditor.
David Arnold [Tue, 19 Aug 2014 06:43:47 +0000 (01:43 -0500)]
[FIX] account_voucher: wrong type in context
The type 'general' no longer exists on a account.voucher. As in general context, removed the default value on this menu.
Fixes #1261, it produces a traceback in 8.0 where the selection fields are less fault-tolerant.
Denis Ledoux [Tue, 19 Aug 2014 07:48:05 +0000 (09:48 +0200)]
[FIX] sale: define sale_note field before using it as a default value for sale.order
When uninstalling/installing sale module, this can be problematic