El 06/10/14 a les 16:14, Oscar Tark ha escrit:
I'm trying to modify a field for Parties which is a selection field. We
had installed a module for declaring Tax included and Tax Exluded for
specified parties so that when doing a sale it is automatic. Now the
Requirment is that we have the Value at index price_type[0]{ "Tax
Included" } programmatically known as 't_inc' set as the default value
whenever we create a new Party, is there any way to do this?

Just return the internal value in the default method. For example:

@staticmethod
def default_field_name():
    return 't_inc'

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Reply via email to