Hi, I've been watching a lot of videos on youtube about how to make custom fields in the Edit view: Form tap.
but i was not able to make this. everybody i've watched was XML lines starting with "field ... " but not mine.
are somebody able to help me out with this?
I need to add an Attention field to the customer and a discount field
I've added the code found below:
{
'partner_id': parent.partner_id,
'quantity': product_uom_qty,
'pricelist': parent.pricelist_id,
'uom':product_uom,
'company_id': parent.company_id,
'default_description_sale': name,
'default_rent_ok': 1,
'rental_products': True,
}
['|', ('sale_ok', '=', True), ('rent_ok', '=', True),
'|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]
{
'no_open': True,
'rent': True,
'temporal': True,
}
{
'partner_id': parent.partner_id,
'quantity': product_uom_qty,
'pricelist': parent.pricelist_id,
'uom':product_uom,
'company_id': parent.company_id,
'default_description_sale': name,
'default_rent_ok': 1,
'rental_products': True,
}
['|', ('sale_ok', '=', True), ('rent_ok', '=', True),
'|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]
{
'no_open': True,
'rent': True,
'temporal': True,
}
['|', ('sale_ok', '=', True), ('rent_ok', '=', True),
'|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]
Hi still docent work after trying the guide
I was trying to post the failed code I get, but I am not allowed to.