[6.0RC1][account_fiscal_position_rule_sale] Problems with 'onchange_partner_id'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Hi all,
Using following revisions from trunk (just downloaded today):
Server: 3163
Addons: 4033
Extra-addons:5126
and having installed 'account_
(extract from sale_view.xml, lines 30-40)
<record id="view_
<field name="name"
<field name="model"
<field name="inherit_id" ref="sale.
<field name="priority"
<field name="arch" type="xml">
<field name="partner_id" position="replace">
</field>
</field>
</record>
when it should be:
(...)
<field name="partner_id" on_change=
(...)
Regards,
Hello Alberto:
Do you have the "delivery" module installed? fiscal_ position_ rule_sale cannot depend on "delivery" (because it makes no sense, just bloat the system). fiscal_ position_ rule_sale!
if yes, this is a know issue: because account_
Still delivery redefines the onchange_partner_id method! So it conflicts with account_
This is a generic issue with the crappy positional arguments system used in OpenERP on_change methods. Hopefully we will have a better system (dictionary based) in future OpenERP versions.
For now, a workaround to make account_ fiscal_ position_ rule_sale work, is to change its __openerp__.py file in order to make it depend on "delivery". Then restart the server and do an "update module list" in OpenERP admin.
Now it should work.
Since we should cope with the current OpenERP on_change system, I would like we make a new module like "account_ fiscal_ position_ rule_sale_ delivery" that depends both on account_ fiscal_ position_ rule_sale and delivery and only override the on_change with the proper signature. This module would do nothing but just make module compatible.
Does the trick work for you? What do you think about creating an other "compatibility module" while OpenERP sticks with that crappy on_change system?