how to process new added attributes to xml elements

Asked by Cuong

Hi,

I added a new attribute to element <field> in xml architecture. Now how can I process this new attribute and pass it to openerp client?

Thanks,

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Cuong
Solved:
Last query:
Last reply:
Revision history for this message
OpenBMS JSC (openbmsjsc) said :
#1

Google for example in position="attributes"

Revision history for this message
Cuong (bhcuong2008) said :
#2

Hi Phong,

I dont understand your suggestion. I means if I add new attribute to field definition such as

<field name="line_ids" load="employee_id" />

Here, I add attribute load="employee_id". Then how can I process this and send it to web/gtk client when client needs.

Thanks,

Revision history for this message
Naresh(OpenERP) (nch-openerp) said :
#3

Hello,
you need to add this attribute for validation at server in
server/openerp/addons/base/rng/view.rng inside the "field tag" .
then at client in the form / tree view parser (as per your need ) you
need to extract and process accordingly.

Hope this helps !
Thanks,

Naresh Soni,
Application Engineer,
Tiny ERP Private Limited
16& 17 IT Tower - I
Info City Gandhinagar
Pin code: 382009
Gujarat, India

On Friday 15 July 2011 10:45 AM, Cuong wrote:
> Question #164754 on OpenERP Server changed:
> https://answers.launchpad.net/openobject-server/+question/164754
>
> Cuong posted a new comment:
> Hi Phong,
>
> I dont understand your suggestion. I means if I add new attribute to
> field definition such as
>
> <field name="line_ids" load="employee_id" />
>
> Here, I add attribute load="employee_id". Then how can I process this
> and send it to web/gtk client when client needs.
>
> Thanks,
>

Revision history for this message
Cuong (bhcuong2008) said :
#4

Hi Naresh,

I already validate it at server. At web client, could you tell me where form/tree view parser process this? I already looked at openerp web client source, however I can't find where.

Thank you very much,

Revision history for this message
Naresh(OpenERP) (nch-openerp) said :
#5

well Cuong,

you can have a look in this etiny/addons/openerp/widgets. may be this turns out to be the starting point.

Thanks

Revision history for this message
Cuong (bhcuong2008) said :
#6

Hi Naresh,

Thank you for your help.