← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 695103] [NEW] [6.0RC1][account_fiscal_position_rule_sale] Problems with 'onchange_partner_id'

 

Public bug reported:

Hi all,
Using following revisions from trunk (just downloaded today):

Server: 3163
Addons: 4033
Extra-addons:5126

and having installed 'account_fiscal_position_rule_sale' module: when
creating a new Sale Order, the 'onchange_partner_id' method overriden in
this module crashes because it receives an incorrect number of
parameters from view:

(extract from sale_view.xml, lines 30-40)
<record id="view_order_form3" model="ir.ui.view">
			<field name="name">account_fiscal_postion_rule_form_view_order_form3</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="sale.view_order_form"/>
	   		<field name="priority">32</field>
	   		<field name="arch" type="xml">
				<field name="partner_id" position="replace">
	                            <field name="partner_id" on_change="onchange_partner_id(partner_invoice_id, partner_id, shop_id)" required="1"/>
				</field>
	        	</field>
		</record>

when it should be:

(...)
<field name="partner_id" on_change="onchange_partner_id(partner_id, shop_id)" required="1"/>
(...)

Regards,

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/695103

Title:
  [6.0RC1][account_fiscal_position_rule_sale] Problems with 'onchange_partner_id'

Status in OpenObject Addons Modules:
  New

Bug description:
  Hi all,
Using following revisions from trunk (just downloaded today):

Server: 3163
Addons: 4033
Extra-addons:5126

and having installed 'account_fiscal_position_rule_sale' module: when creating a new Sale Order, the 'onchange_partner_id' method overriden in this module crashes because it receives an incorrect number of parameters from view:

(extract from sale_view.xml, lines 30-40)
<record id="view_order_form3" model="ir.ui.view">
			<field name="name">account_fiscal_postion_rule_form_view_order_form3</field>
	   		<field name="model">sale.order</field>
	   		<field name="inherit_id" ref="sale.view_order_form"/>
	   		<field name="priority">32</field>
	   		<field name="arch" type="xml">
				<field name="partner_id" position="replace">
	                            <field name="partner_id" on_change="onchange_partner_id(partner_invoice_id, partner_id, shop_id)" required="1"/>
				</field>
	        	</field>
		</record>

when it should be:

(...)
<field name="partner_id" on_change="onchange_partner_id(partner_id, shop_id)" required="1"/>
(...)

Regards,





Follow ups

References