xml


Filter group by many2many field in tree view Odoo 8?


In CRM module, I am trying to set a filter group_by to many2many field, but i've received this error :
AssertionError: Fields in 'groupby' must be regular database-persisted fields (no function or related fields), or function fields with store=True
the field is 'categ_ids'
This the code py and xml:
'write_date': fields.datetime('Update Date', readonly=True),
'categ_ids': fields.many2many('crm.case.categ', 'crm_lead_category_rel', 'lead_id', 'category_id', 'Tags', \
domain="['|', ('section_id', '=', section_id), ('section_id', '=', False), ('object_id.model', '=', 'crm.lead')]", help="Classify and analyze your lead/opportunity categories like: Training, Service"),
'contact_name': fields.char('Contact Name', size=64),
For xml :
<filter string="Service" domain="[]" context="{'group_by':'categ_ids'}"/>
Thank advance
The field categ_ids is a related field (many2many). The error is saying that you can NOT use a related field for a group by function.

Related Links

zoho crm api insert/update Leads
Trouble with XSLT and default namespace
Is there any difference between <xsl:copy> and <xsl:element name=“{name()}”>?
How to make one tag become an attribute of another nested tag
XSLT split string by charlength and call function for each substring
TypeError: Error #2007: Parameter child must be non-null in as3 while playing VPAID Ads in adobe player
XSLT: Specific tag placement
Talend - getCode() error while extracting XML file
value-of select=“document($path)/ns0:element1/ns0:element2” returns NULL with SAXON-B XSLT 2.0 (saxon9)
XSD extend base with suppression of one attribute
ServiceStack Response - Change encoding?
Wrapping multiple identically named elements into a new element using XSLT
Xml schema uniqueness in entire subtree
dynamic xml nodes using xslt
xpst0003 xquery syntax error
Xsl anchor attribute

Categories

HOME
asp.net-web-api
cobalt
paraview
github-for-windows
flex
swt
oracle-apex-5
sh
spring-data-mongodb
regular-language
nuget-package
vert.x
title
flume
modal-dialog
barcode
drop-down-menu
gkturnbasedmatch
entitymanager
aws-sdk
template-engine
html5-appcache
topology
kendo-mobile
pagespeed
resourcebundle
definitelytyped
genexus-sd
datastax-enterprise-graph
tpm
bringtofront
gp
userdefaults
left-join
catch-unit-test
card.io
biztalk-rule-engine
carriage-return
mnist
playframework-2.1
xcode7.3
modernizr
z-notation
softmax
subclipse
http-request
file-sharing
double-click
rserve
google-cse
opengl-4
excel-dna
payload
java-websocket
template-toolkit
py2neo
gameplay-kit
taocp
atlas
redistributable
jodd
vorpal.js
cda
uiactionsheet
fink
nupic
nullable
crouton-os
dllimport
oracle-spatial
zen-cart
sapscript
canalyzer
airbrake
pyobjc
at-job
pseudo-class
addressing-mode
lambda-architecture
renderer
multiautocompletetextview
syndicationfeed
spring-3
ice-cube
workitem
font-awesome-4.0.0
wcf-configuration
extconf.rb
appjs
wiimote
virtualpathprovider
urlrewriter
promotion-code
mysql-error-1205
google-floodlight
google-ajax-api
umra
openfaces
sifr
cfwindow
echo3
skype4java
software-lifecycle
soappy

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App