mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
account_check_deposit: add print button
This commit is contained in:
@@ -263,6 +263,11 @@ class AccountCheckDeposit(models.Model):
|
||||
else:
|
||||
self.currency_id = self.journal_id.company_id.currency_id
|
||||
|
||||
def get_report(self):
|
||||
action = self.env['report'].get_action(
|
||||
self, 'account_check_deposit.report_checkdeposit')
|
||||
return action
|
||||
|
||||
|
||||
class AccountMoveLine(models.Model):
|
||||
_inherit = "account.move.line"
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
type="object" class="oe_highlight"/>
|
||||
<button name="backtodraft" states="done"
|
||||
string="Back to Draft" type="object" />
|
||||
<button name="get_report" string="Print" type="object"/>
|
||||
<field name="state" widget="statusbar"
|
||||
statusbar_visible="draft,done" />
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user