How can we display payment methods in our customer reports and customer invoices by which it will be easy to tally the payments?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
in your custom module create a function
class AccountMove(models.Model):
_inherit = 'account.move'
def your_function_name(self):
bill = [
('ref', 'ilike', self.name),
]
return str(self.env['account.payment'].search(bill, limit=10).journal_id.name)
and in your invoice report which might template_id = report_invoice_document
you can mention this code
which will give you the payment method through which it was done
<!--<t t-set="any_name" t-value="o.your_function_name()"/>
<span t-esc="any_name"/>
through this you can see which payment method it was and then you modify it the way you want
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 24
|
692 | ||
|
1
Jan 24
|
314 | ||
|
1
May 23
|
1465 | ||
|
1
Feb 23
|
1198 | ||
|
0
Feb 23
|
1179 |