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

Can I use xinclude and entities in the same XML file?
Correct schema for XML message with header and multiple body types
(XML) The markup in the document following the root element must be well-formed. Start location: 6:2
XmlPullParserException: Unexpected token
use & symbol in URL Link in .XML
Recursive element in XML
Quickbooks OAuth - Getting started guide and API reference - where can I find them [closed]
Specify a multi-word enumeration value in an XML/DTD
Paypal / Flash button integration as3 problems
xslt grouping issue
Importance of indenting XML file [closed]
Xquery using FLWOR Expression Query
How to insert the text from the .txt file into a xml file [closed]
Using dbDacFx in a manifest file
Parallel iteration over XML nodes with XSLT
oracle xmlcast(xmlquery) in subselect

Categories

HOME
search
jpa
checkstyle
pagination
pyqt
powerpoint
hessian
mstest
vscode-extensions
grafana
javacc
settings
pattern-matching
arangodb
categorical-data
siddhi
line
flash-player
google-picker
smartclient
replication
sar
tosca
perlbrew
onload
custom-post-type
gpio
jasmine-node
amazon-quicksight
errbot
iis-express
uitapgesturerecognizer
custom-controls
mockjax
jbutton
git-squash
instantiation
sendbird
dynamic-jasper
indy10
baidu-map
yowsup
servicestack-text
python-pptx
google-knowledge-graph
projects-and-solutions
odroid
recurrent-neural-network
linq-to-objects
install.packages
rfc3339
tinymce-3
insight
static-cast
java-6
oracleclient
seq
mach-o
gpg-signature
trigger.io
filenet
change-tracking
ziparchive
webjars
freepbx
wiredep
django-urls
ocra
cakephp-2.7
java-security
showdialog
cosine-similarity
android-cookiemanager
addressing-mode
deform
sql-scripts
matrix-inverse
renderer
gae-quotas
breakout
cnf
tree-balancing
garbage
cuda-gdb
fusefabric
ikimagebrowserview
fsevents
webdev.webserver
jqote
cdonts
appledoc
nhprof
ie-compatibility-mode
ajax-polling
duplex
data-mapping
fail-fast-fail-early
fault-tolerance
int64
entitykey
netbeans6.1

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