Browse Source
[IMP] *_online_ponto: Add UI to show ponto buffers
12.0
Ronald Portier (Therp BV)
2 years ago
No known key found for this signature in database
GPG Key ID: A181F8124D7101D3
6 changed files with
66 additions and
0 deletions
-
account_bank_statement_import_online_ponto/__manifest__.py
-
account_bank_statement_import_online_ponto/models/ponto_buffer.py
-
account_bank_statement_import_online_ponto/models/ponto_buffer_line.py
-
account_bank_statement_import_online_ponto/views/ir_actions_act_window.xml
-
account_bank_statement_import_online_ponto/views/ir_ui_menu.xml
-
account_bank_statement_import_online_ponto/views/ponto_buffer.xml
|
|
@ -17,5 +17,8 @@ |
|
|
|
"data/ir_cron.xml", |
|
|
|
"security/ir.model.access.csv", |
|
|
|
"views/online_bank_statement_provider.xml", |
|
|
|
"views/ponto_buffer.xml", |
|
|
|
"views/ir_actions_act_window.xml", |
|
|
|
"views/ir_ui_menu.xml", |
|
|
|
], |
|
|
|
} |
|
|
@ -13,6 +13,8 @@ class PontoBuffer(models.Model): |
|
|
|
"""Define model to hold data retrieved from Ponto.""" |
|
|
|
_name = "ponto.buffer" |
|
|
|
_description = "Group transactions retrieved from Ponto." |
|
|
|
_order = "effective_date desc" |
|
|
|
_rec_name = "effective_date" |
|
|
|
|
|
|
|
provider_id = fields.Many2one( |
|
|
|
comodel_name="online.bank.statement.provider", |
|
|
|
|
|
@ -8,6 +8,8 @@ class PontoBuffer(models.Model): |
|
|
|
"""Define model to hold transactions retrieved from Ponto.""" |
|
|
|
_name = "ponto.buffer.line" |
|
|
|
_description = "Hold transactions retrieved from Ponto." |
|
|
|
_order = "effective_date_time desc" |
|
|
|
_rec_name = "effective_date_time" |
|
|
|
|
|
|
|
buffer_id = fields.Many2one( |
|
|
|
comodel_name="ponto.buffer", |
|
|
|
|
|
@ -0,0 +1,11 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<odoo> |
|
|
|
<record id="action_ponto_buffer" model="ir.actions.act_window"> |
|
|
|
<field name="name">Ponto Buffer</field> |
|
|
|
<field name="res_model">ponto.buffer</field> |
|
|
|
<field name="view_type">form</field> |
|
|
|
<field name="view_mode">tree,form</field> |
|
|
|
<field eval="False" name="view_id"/> |
|
|
|
</record> |
|
|
|
</odoo> |
|
|
|
|
|
|
@ -0,0 +1,13 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<odoo> |
|
|
|
|
|
|
|
<menuitem |
|
|
|
id="menu_ponto_buffer" |
|
|
|
name="Show Ponto Buffer" |
|
|
|
parent="account.account_reports_management_menu" |
|
|
|
sequence="90" |
|
|
|
action="action_ponto_buffer" |
|
|
|
groups="account.group_account_user" |
|
|
|
/> |
|
|
|
|
|
|
|
</odoo> |
|
|
@ -0,0 +1,35 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8" ?> |
|
|
|
<odoo> |
|
|
|
<record model="ir.ui.view" id="ponto_buffer_tree"> |
|
|
|
<field name="name">ponto.buffer.tree</field> |
|
|
|
<field name="model">ponto.buffer</field> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<tree> |
|
|
|
<field name="provider_id" /> |
|
|
|
<field name="effective_date" /> |
|
|
|
</tree> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record model="ir.ui.view" id="ponto_buffer_form"> |
|
|
|
<field name="name">ponto.buffer.form</field> |
|
|
|
<field name="model">ponto.buffer</field> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<form> |
|
|
|
<group name="ponto_buffer_main"> |
|
|
|
<field name="provider_id" /> |
|
|
|
<field name="effective_date" /> |
|
|
|
</group> |
|
|
|
<group name="ponto_buffer_lines" string="Buffer Lines"> |
|
|
|
<field name="buffer_line_ids" mode="tree"> |
|
|
|
<tree> |
|
|
|
<field name="effective_date_time" /> |
|
|
|
<field name="ponto_id" /> |
|
|
|
<field name="transaction_data" /> |
|
|
|
</tree> |
|
|
|
</field> |
|
|
|
</group> |
|
|
|
</form> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
</odoo> |