<?xml version="1.0" encoding="utf-8"?>
<openerp>

	<data>

		<record id="view_order_form1" model="ir.ui.view">
			<field name="name">account_fiscal_postion_rule_form_view_order_form1</field>
			<field name="model">sale.order</field>
			<field name="inherit_id" ref="sale.view_order_form"/>
			<field name="priority">26</field>
			<field name="arch" type="xml">
				<field name="company_id" position="attributes">
					<attribute name="on_change">onchange_company_id(company_id, partner_id, partner_invoice_id, partner_shipping_id)</attribute>
				</field>
				<field name="partner_invoice_id" position="attributes">
					<attribute name="on_change">onchange_address_id(partner_invoice_id, partner_shipping_id, partner_id, company_id)</attribute>
				</field>
				<field name="partner_shipping_id" position="attributes">
					<attribute name="on_change">onchange_address_id(partner_invoice_id, partner_shipping_id, partner_id, company_id)</attribute>
				</field>
				<field name="partner_id" position="attributes">
					<attribute name="context">{'company_id': company_id}</attribute>
				</field>
			</field>
		</record>

	</data>

</openerp>

<?xml version="1.0" encoding="utf-8"?>
<openerp>

	<data>

		<record id="view_order_form1" model="ir.ui.view">
			<field name="name">account_fiscal_postion_rule_form_view_order_form1</field>
			<field name="model">sale.order</field>
			<field name="inherit_id" ref="sale.view_order_form"/>
			<field name="priority">26</field>
			<field name="arch" type="xml">
				<field name="company_id" position="attributes">
					<attribute name="on_change">onchange_company_id(company_id, partner_id, partner_invoice_id, partner_shipping_id, context)</attribute>
				</field>
				<field name="partner_invoice_id" position="attributes">
					<attribute name="on_change">onchange_address_id(partner_invoice_id, partner_shipping_id, partner_id, company_id, context)</attribute>
				</field>
				<field name="partner_shipping_id" position="attributes">
					<attribute name="on_change">onchange_address_id(partner_invoice_id, partner_shipping_id, partner_id, company_id, context)</attribute>
				</field>
				<field name="partner_id" position="attributes">
					<attribute name="context">{'company_id': company_id}</attribute>
				</field>
			</field>
		</record>

	</data>

</openerp>

Fix views to add context argument in on_change attribute
Fix views to add context argument in on_change attribute
