Q: On PO lines need to select analytical account and tag for each line. Is there a way to assign these values once and will be defaulted in all lines?
A: 1. Enable developer mode and on PO create two new fields as shown on the screen below,
2. In the xml update the context as below,
<field name="order_line" attrs="{'readonly': [('state', 'in', ('done', 'cancel'))]}" context="{'default_account_analytic_id': x_analytic_account1, 'default_analytic_tag_ids': x_analytic_tags}">
3. Now when you will add line(s) it will default from header.
Default analytic account on PO
Who is online
Users browsing this forum: No registered users and 0 guests