How to get the active_ids for the children

21 views
Skip to first unread message

Markus Bala

unread,
Feb 15, 2016, 3:50:07 AM2/15/16
to tryton-dev
hi,

I am doing keyword action "form_action".


The function is to merge the stock.move data.

My question is how can I get the selected ID for the stock.move (child). At now, I only can get the parent;s active_id (stock.shipment.in).

Please advice

Best Regard,
Markus Bala

Cédric Krier

unread,
Feb 15, 2016, 4:05:03 AM2/15/16
to tryton-dev
On 2016-02-15 00:50, Markus Bala wrote:
> hi,
>
> I am doing keyword action "form_action".
>
> Model: stock.shipment.in
>
> The function is to merge the stock.move data.
>
> My question is how can I get the selected ID for the stock.move (child). At
> now, I only can get the parent;s active_id (stock.shipment.in).

You can not. The One2Many should be seen as a single value so there is
no state on that.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Markus Bala

unread,
Feb 15, 2016, 4:16:26 AM2/15/16
to tryto...@googlegroups.com
On Mon, Feb 15, 2016 at 4:04 PM, Cédric Krier <cedric...@b2ck.com> wrote:
On 2016-02-15 00:50, Markus Bala wrote:
> hi,
>
> I am doing keyword action "form_action".
>
> Model: stock.shipment.in
>
> The function is to merge the stock.move data.
>
> My question is how can I get the selected ID for the stock.move (child). At
> now, I only can get the parent;s active_id (stock.shipment.in).

You can not. The One2Many should be seen as a single value so there is
no state on that.

Thank cedric, Noted 
--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

--
You received this message because you are subscribed to the Google Groups "tryton-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/20160215090454.GB18582%40tetsuo.

Reply all
Reply to author
Forward
0 new messages