Community mailing list archives

community@mail.odoo.com

Re: advance onchange

by
sarkazimustafa
- 01/30/2016 01:21:15
Hans,

You may write like:
def product_id_change_with_wh(self, cr, uid, ids, pricelist, product, qty=0,
            uom=False, qty_uos=0, uos=False, name='', partner_id=False,
            lang=False, update_tax=True, date_order=False, packaging=False,
            fiscal_position=False, flag=False, warehouse_id=False, context=None, newparam=defaultvalue):

#TODO
call super without newparam
Thanks.

--

Best Regards,

Mustafa Sarkazi
Technology Consultant

On Tue, Jan 26, 2016 at 1:46 PM, Other Hans <other.hans@gmail.com> wrote:
Dear all,

i wanna ask something about onchange in xml


The issue is, in method product_id_change_with_wh, i want to add parameter order_line, and it can not, so how can I send all data in order line via parameter in that method?

Thank you

Regards,
Hans

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe