[IMP] odex_takaful: automatic update
Auto-generated commit based on local changes.
This commit is contained in:
parent
d58f0f2b3c
commit
4ccea8fd54
|
|
@ -187,3 +187,11 @@ class DonationExtensionHistory(models.Model):
|
|||
'target': 'new',
|
||||
'type': 'ir.actions.act_window',
|
||||
}
|
||||
|
||||
def action_print_extension_receipt(self):
|
||||
"""Print the extension receipt PDF report."""
|
||||
self.ensure_one()
|
||||
return self.env.ref(
|
||||
'odex_takaful.extension_receipt_report'
|
||||
).report_action(self)
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,15 @@
|
|||
<header>
|
||||
<field name="state" widget="statusbar" statusbar_visible="active,paid,cancel" />
|
||||
<button string="Pay" name="action_pay_invoice" type="object" class="oe_highlight" states="active"/>
|
||||
<button
|
||||
name="action_print_extension_receipt"
|
||||
type="object"
|
||||
string="Print Extension Receipt"
|
||||
class="btn-primary"
|
||||
icon="fa-print"
|
||||
attrs="{'invisible': [('state', '!=', 'paid')]}"
|
||||
groups="odex_takaful.group_print_receipt"
|
||||
/>
|
||||
</header>
|
||||
<sheet>
|
||||
<widget name="web_ribbon" title="Canceld" bg_color="bg-danger" attrs="{'invisible': [('state', '!=', 'cancel')]}"/>
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@
|
|||
<field name="print_report_name">
|
||||
(object.extension_ref and ('Extension Receipt - %s' % (object.extension_ref,))) or 'Extension Receipt'
|
||||
</field>
|
||||
<field name="groups_id" eval="[(6, 0, [ref('odex_takaful.group_print_receipt')])]"/>
|
||||
</record>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue