← Back to team overview

openerp-community-reviewer team mailing list archive

Re: [Merge] lp:~nicolariolini/account-invoicing/add_module_account_payment_term_month into lp:account-invoicing

 

Hi Nicola, Lorenzo, Holger,
what about delete "commercial_month" field and put this code instead?
"if line.months != 0:"

And in the view set the field "days" required if "months" if false and viceversa:

<field name="months" attrs="{'required':[('days','=',False)]}"/>

and

<xpath expr="/form/group/group/field[@name='days']" position="attributes">
    <attribute name="attrs">{'required':[('months','=',False)]}</attribute>
</xpath>
-- 
https://code.launchpad.net/~nicolariolini/account-invoicing/add_module_account_payment_term_month/+merge/212400
Your team Account Core Editors is subscribed to branch lp:account-invoicing.


Follow ups

References