Public bug reported:
please see also bug
https://bugs.launchpad.net/bugs/889741
I changed (error) (1)
on_change="product_id_change_c2c_pu(product_id, uos_id, quantity, name,
parent.type, parent.partner_id, parent.fiscal_position, price_unit_pu,
parent.address_invoice_id, parent.currency_id, {'company_id':
parent.company_id},price_unit_id)"
to (working) (2)
on_change="product_id_change_c2c_pu(product_id, uos_id, quantity, name,
parent.type, parent.partner_id, parent.fiscal_position, price_unit_pu,
parent.address_invoice_id, parent.currency_id,
parent.company_id,price_unit_id)"/>
replacing
{'company_id': parent.company_id}
by
parent.company_id
nevertheless
parent.company_id is a non existing field
- hence the the coding (1) returned an error - which is correct behaviour
- while coding(2) just ignores a reference to a not existing field - which IMHO
should not be allowed.
** Affects: openerp-web
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/893911
Title:
incorrect parent handling
Status in OpenERP Web:
New
Bug description:
please see also bug
https://bugs.launchpad.net/bugs/889741
I changed (error) (1)
on_change="product_id_change_c2c_pu(product_id, uos_id, quantity, name,
parent.type, parent.partner_id, parent.fiscal_position, price_unit_pu,
parent.address_invoice_id, parent.currency_id, {'company_id':
parent.company_id},price_unit_id)"
to (working) (2)
on_change="product_id_change_c2c_pu(product_id, uos_id, quantity, name,
parent.type, parent.partner_id, parent.fiscal_position, price_unit_pu,
parent.address_invoice_id, parent.currency_id,
parent.company_id,price_unit_id)"/>
replacing
{'company_id': parent.company_id}
by
parent.company_id
nevertheless
parent.company_id is a non existing field
- hence the the coding (1) returned an error - which is correct behaviour
- while coding(2) just ignores a reference to a not existing field - which
IMHO should not be allowed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/893911/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp