*** This bug is a duplicate of bug 1132898 ***
https://bugs.launchpad.net/bugs/1132898
Already fixed with 7.0 and Trunk
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1163360
Title:
[7.0/Trunk] Analytic distribution not available on customer invoices
Status in OpenERP Addons (modules):
Confirmed
Bug description:
Steps to reproduce:
1. Go on runbot db_all
2. Check you've analytic accounting rights (you shouldn't need technical
rights for that and analytic plan module should be installed)
3. Accounting > Customer > Customer invoices and pick an invoice
4. Impossible to define an analytic distribution but only and analytic
account while on a supplier invoice, the field has been changed.
I think no views have been designed for the customer invoice part
while there's an existing view for the supplier invoice part.
<!-- Replace analytic_id with analytics_id in account.invoice.line -->
<record model="ir.ui.view" id="view_invoice_line_form_inherit">
<field name="name">account.invoice.line.form.inherit</field>
<field name="model">account.invoice.line</field>
<field name="inherit_id" ref="account.view_invoice_line_form"/>
<field name="arch" type="xml">
<field name="account_analytic_id" position="replace">
<field name="analytics_id"
context="{'journal_id':parent.journal_id}"
domain="[('plan_id','<>',False)]"
groups="analytic.group_analytic_accounting"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="invoice_supplier_form_inherit">
<field name="name">account.invoice.supplier.form.inherit</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="priority">2</field>
<field name="arch" type="xml">
<field name="account_analytic_id" position="replace">
<field name="analytics_id"
domain="[('plan_id','<>',False)]"
context="{'journal_id':parent.journal_id}"
groups="analytic.group_analytic_accounting"/>
</field>
</field>
</record>
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1163360/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help : https://help.launchpad.net/ListHelp