diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/l10n_fr_pos_cert/views | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/l10n_fr_pos_cert/views')
5 files changed, 138 insertions, 0 deletions
diff --git a/addons/l10n_fr_pos_cert/views/account_sale_closure.xml b/addons/l10n_fr_pos_cert/views/account_sale_closure.xml new file mode 100644 index 00000000..1a94ad56 --- /dev/null +++ b/addons/l10n_fr_pos_cert/views/account_sale_closure.xml @@ -0,0 +1,67 @@ +<odoo> + <record id="list_view_account_sale_closing" model="ir.ui.view"> + <field name="name">Sales Closings</field> + <field name="model">account.sale.closing</field> + <field name="arch" type="xml"> + <tree create="false" import="false"> + <field name="date_closing_start"/> + <field name="date_closing_stop"/> + <field name="company_id" groups="base.group_multi_company"/> + <field name="currency_id" invisible="1"/> + <field name="frequency"/> + <field name="sequence_number" groups="base.group_no_one"/> + <field name="total_interval"/> + <field name="cumulative_total"/> + </tree> + </field> + </record> + + <record id="form_view_account_sale_closing" model="ir.ui.view"> + <field name="name">Sales Closings</field> + <field name="model">account.sale.closing</field> + <field name="arch" type="xml"> + <form create="false" edit="false" string="Account Closing"> + <sheet> + <div class="oe_title"> + <h1> + <field name="name"/> + </h1> + </div> + <group> + <group> + <field name="date_closing_start"/> + <field name="date_closing_stop"/> + <field name="frequency"/> + <field name="sequence_number" groups="base.group_no_one"/> + </group> + <group> + <field name="total_interval"/> + <field name="cumulative_total"/> + <field name="last_order_id" groups="account.group_account_readonly"/> + <field name="last_order_hash" groups="account.group_account_readonly"/> + </group> + <group> + <field name="company_id" groups="base.group_multi_company"/> + <field name="currency_id" invisible="1"/> + </group> + </group> + </sheet> + </form> + </field> + </record> + + <record id="action_list_view_account_sale_closing" model="ir.actions.act_window"> + <field name="name">Sales Closings</field> + <field name="res_model">account.sale.closing</field> + <field name="view_mode">list,form</field> + <field name="help" type="html"> + <p class="o_view_nocontent_nocreate"> + The closings are created by Odoo + </p><p> + Sales closings run automatically on a daily, monthly and annual basis. It computes both period and cumulative totals from all the sales entries posted in the system after the previous closing. + </p> + </field> + </record> + + <menuitem action="action_list_view_account_sale_closing" id="menu_account_closing_reporting" parent="l10n_fr.account_reports_fr_statements_menu" sequence="90"/> +</odoo> diff --git a/addons/l10n_fr_pos_cert/views/account_views.xml b/addons/l10n_fr_pos_cert/views/account_views.xml new file mode 100644 index 00000000..27d4d2e9 --- /dev/null +++ b/addons/l10n_fr_pos_cert/views/account_views.xml @@ -0,0 +1,26 @@ +<odoo> + <record id="view_bank_statement_form_readonly" model="ir.ui.view"> + <field name="name">account.bank.statement.form</field> + <field name="model">account.bank.statement</field> + <field name="inherit_id" ref="account.view_bank_statement_form"/> + <field name="mode">extension</field> + <field name="arch" type="xml"> + <xpath expr="//form" position="inside"> + <field name="pos_session_id" invisible="1"/> + </xpath> + <xpath expr="//field[@name='name']" position="attributes"> + <attribute name="attrs">{'readonly': [('pos_session_id', '!=', False)]}</attribute> + </xpath> + <xpath expr="//field[@name='journal_id']" position="attributes"> + <attribute name="attrs">{'readonly': [('pos_session_id', '!=', False)]}</attribute> + </xpath> + <xpath expr="//field[@name='date']" position="attributes"> + <attribute name="attrs">{'readonly': [('pos_session_id', '!=', False)]}</attribute> + </xpath> + <xpath expr="//field[@name='line_ids']" position="attributes"> + <attribute name="attrs">{'readonly': [('pos_session_id', '!=', False)]}</attribute> + </xpath> + + </field> + </record> +</odoo> diff --git a/addons/l10n_fr_pos_cert/views/l10n_fr_pos_cert_templates.xml b/addons/l10n_fr_pos_cert/views/l10n_fr_pos_cert_templates.xml new file mode 100644 index 00000000..739d9dc9 --- /dev/null +++ b/addons/l10n_fr_pos_cert/views/l10n_fr_pos_cert_templates.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + + <template id="assets" inherit_id="point_of_sale.assets"> + <xpath expr="." position="inside"> + <script type="text/javascript" src="/l10n_fr_pos_cert/static/src/js/pos.js"></script> + <script type="text/javascript" src="/l10n_fr_pos_cert/static/src/js/NumpadWidget.js"></script> + <script type="text/javascript" src="/l10n_fr_pos_cert/static/src/js/PaymentScreen.js"></script> + </xpath> + </template> + +</odoo> diff --git a/addons/l10n_fr_pos_cert/views/pos_inalterability_menuitem.xml b/addons/l10n_fr_pos_cert/views/pos_inalterability_menuitem.xml new file mode 100644 index 00000000..09c42b7e --- /dev/null +++ b/addons/l10n_fr_pos_cert/views/pos_inalterability_menuitem.xml @@ -0,0 +1,21 @@ +<odoo> + <record id="action_report_pos_hash_integrity" model="ir.actions.report"> + <field name="name">Hash integrity result PDF</field> + <field name="model">res.company</field> + <field name="report_type">qweb-pdf</field> + <field name="report_name">l10n_fr_pos_cert.report_pos_hash_integrity</field> + <field name="report_file">l10n_fr_pos_cert.report_pos_hash_integrity</field> + </record> + <record model="ir.actions.server" id="action_check_pos_hash_integrity"> + <field name="name">POS Inalterability Check</field> + <field name="model_id" ref="account.model_res_company"/> + <field name="type">ir.actions.server</field> + <field name="state">code</field> + <field name="code"> + action = env.company._action_check_pos_hash_integrity() + </field> + </record> + <menuitem id="pos_fr_statements_menu" name="French Statements" parent="point_of_sale.menu_point_rep" sequence="9" /> + <menuitem action="l10n_fr_pos_cert.action_list_view_account_sale_closing" id="menu_account_closing" parent="pos_fr_statements_menu" sequence="80"/> + <menuitem action="l10n_fr_pos_cert.action_check_pos_hash_integrity" id="menu_check_move_integrity_reporting" parent="pos_fr_statements_menu" sequence="90"/> +</odoo> diff --git a/addons/l10n_fr_pos_cert/views/pos_views.xml b/addons/l10n_fr_pos_cert/views/pos_views.xml new file mode 100644 index 00000000..860021d2 --- /dev/null +++ b/addons/l10n_fr_pos_cert/views/pos_views.xml @@ -0,0 +1,12 @@ +<odoo> + <record id="pos_order_form_inherit" model="ir.ui.view"> + <field name="name">pos.order.form.inherit</field> + <field name="model">pos.order</field> + <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='pos_reference']" position='after'> + <field string='Hash' name="l10n_fr_hash" groups="base.group_no_one"/> + </xpath> + </field> + </record> +</odoo> |
