I need to capture a tax_number of the customer when making payment for an invoice.
The text-field to be displayed on Register Payment popup (of account_payment) model. But the value need to be stored to the corresponding row on account_invoice.
On pressing Validate button on the above popup, the value to be stored to the account_invoice record of parent window.
How do I achieve this?
Thanks for any inputs.
I ended up adding a new field both to account_invoice and account_payment models, like below. Here' even though I don't wan't to save the value to account_payment model, it save the value to it. When I set store=False attribute, the value of self.tax_number becomes False. Please let me know if there's a better way.