5117
|
|
|
Humberto Arocha |
10 years ago
|
|
|
5116
|
|
|
Humberto Arocha |
10 years ago
|
|
|
5115
|
|
|
Humberto Arocha |
10 years ago
|
|
|
5114
|
|
|
Humberto Arocha |
10 years ago
|
|
|
5113
|
|
|
Humberto Arocha |
10 years ago
|
|
|
5112
|
|
|
Humberto Arocha |
10 years ago
|
|
|
5111
|
|
[IMP][fields][property] We are in the process of converting the whole property fields from non-searchable by default to searchable by default It is not going to be easy
It could that we have to manage with a subset of features and not all the features available as there are for the non-functional fields
As of now, only property many2one fields are searchable, with operator ['ilike', 'in', '=']
Default values for the property fields are not taken into account
So now it is just working for those property values that are really belonging to the records they have been assigned.
CAUTION: With this DIFF all your Property fields will become searchable, It means that you will be able to pick them from Advance Search, Though it does not mean that your search it's gonna work!!!
This webservice can be usefull to make a Proof of Concept about the workability of this DIFF
Create a DB, name it 'property', set data demo to True Copy & Paste the code below, Change some of the accounts of your partners to an account different than the one as Default e.g. 'Creditors (test)' or 'Debitors (test)' run your new webservice.
I Works!!!.
=========================================================================
#!/usr/bin/python import oerplib DB = 'property' oerp = oerplib.OERP(server='localhost',database=DB,port=8069,timeout=4000) USERS = ['admin'] PSSWS = {}.fromkeys(USERS,'admin')
for USER in USERS: oerp.login(user=USER, passwd=PSSWS[USER], database=DB) am_ids = oerp.search('res.partner',[ '|', ('property_account_payable.type','=','payable'), ('property_account_receivable.type','=','receivable'), ]) print 'AM IDS ',am_ids
|
Humberto Arocha |
10 years ago
|
|
|
5110
|
|
|
Launchpad Translatio... |
10 years ago
|
|
|
5109
|
|
|
Launchpad Translatio... |
10 years ago
|
|
|
5108
|
|
|
Martin Trigaux |
10 years ago
|
|
|
5107
|
|
|
Christophe Simonis |
10 years ago
|
|
|
5106
|
|
|
Launchpad Translatio... |
10 years ago
|
|
|
5105
|
|
|
Launchpad Translatio... |
10 years ago
|
|
|
5104
|
|
|
Launchpad Translatio... |
10 years ago
|
|
|
5103
|
|
|
Launchpad Translatio... |
10 years ago
|
|
|
5102
|
|
|
Launchpad Translatio... |
10 years ago
|
|
|
5101
|
|
|
Olivier Dony |
10 years ago
|
|
|
5100
|
|
|
Launchpad Translatio... |
10 years ago
|
|
|
5099
|
|
|
Launchpad Translatio... |
10 years ago
|
|
|
5098
|
|
|
Olivier Dony |
10 years ago
|
|
|