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/account/static/src/xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/account/static/src/xml')
6 files changed, 225 insertions, 0 deletions
diff --git a/addons/account/static/src/xml/account_journal_activity.xml b/addons/account/static/src/xml/account_journal_activity.xml new file mode 100644 index 00000000..e91b9d4c --- /dev/null +++ b/addons/account/static/src/xml/account_journal_activity.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<templates> + + <t t-name="accountJournalDashboardActivity"> + <t t-foreach="activities" t-as="activity"> + <div class="row"> + <div class="col-8 o_mail_activity"> + <a href="#" t-att-class="(activity.status == 'late' ? 'o_activity_color_overdue ' : ' ') + (activity.activity_category == 'tax_report' ? 'o_open_vat_report' : 'see_activity')" t-att-data-res-id="activity.res_id" t-att-data-id="activity.id" t-att-data-model="activity.res_model"> + <t t-esc="activity.name"/> + </a> + </div> + <div class="col-4 text-right"> + <span><t t-esc="activity.date"/></span> + </div> + </div> + </t> + <a t-if="more_activities" class="pull-right see_all_activities" href="#">See all activities</a> + </t> + +</templates> diff --git a/addons/account/static/src/xml/account_payment.xml b/addons/account/static/src/xml/account_payment.xml new file mode 100644 index 00000000..c752f838 --- /dev/null +++ b/addons/account/static/src/xml/account_payment.xml @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<templates xml:space="preserve"> + + <t t-name="ShowPaymentInfo"> + <div> + <t t-if="outstanding"> + <div> + <strong class="float-left" id="outstanding"><t t-esc="title"></t></strong> + </div> + </t> + <table style="width:100%;"> + <t t-foreach="lines" t-as="line"> + <tr> + <t t-if="outstanding"> + <td> + <a title="assign to invoice" role="button" class="oe_form_field btn btn-link outstanding_credit_assign" t-att-data-id="line.id" style="margin-right: 10px;" href="#" data-toggle="tooltip">Add</a> + </td> + <td style="max-width: 30em;"> + <div class="oe_form_field" style="margin-right: 30px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;" t-att-title="line.date" data-toggle="tooltip"><t t-esc="line.journal_name"></t></div> + </td> + </t> + <t t-if="!outstanding"> + <td> + <a role="button" tabindex="0" class="js_payment_info fa fa-info-circle" t-att-index="line.index" style="margin-right:5px;" aria-label="Info" title="Payment Info" data-toggle="tooltip"></a> + </td> + <td> + <i class="o_field_widget text-right o_payment_label">Paid on <t t-esc="line.date"></t></i> + </td> + </t> + <td style="text-align:right;"> + <span class="oe_form_field oe_form_field_float oe_form_field_monetary" style="margin-left: -10px;"> + <t t-if="line.position === 'before'"> + <t t-esc="line.currency"/> + </t> + <t t-esc="line.amount"></t> + <t t-if="line.position === 'after'"> + <t t-esc="line.currency"/> + </t> + </span> + </td> + </tr> + </t> + </table> + </div> + </t> + + <t t-name="PaymentPopOver"> + <div> + <table> + <tr> + <td><strong>Amount: </strong></td> + <td> + <t t-if="position === 'before'"> + <t t-esc="currency"/> + </t> + <t t-esc="amount"></t> + <t t-if="position === 'after'"> + <t t-esc="currency"/> + </t> + </td> + </tr> + <tr> + <td><strong>Memo: </strong></td> + <td> + <div style="width: 200px; word-wrap: break-word"> + <t t-esc="ref"/> + </div> + </td> + </tr> + <tr> + <td><strong>Date: </strong></td> + <td><t t-esc="date"/></td> + </tr> + <tr> + <td><strong>Payment Journal: </strong></td> + <td><t t-esc="journal_name"/><span t-if="payment_method_name"> (<t t-esc="payment_method_name"/>)</span></td> + </tr> + </table> + </div> + <button class="btn btn-sm btn-primary js_unreconcile_payment float-left" t-att-partial-id="partial_id" t-att-payment-id="payment_id" t-att-move-id="move_id" style="margin-top:5px; margin-bottom:5px;" groups="account.group_account_invoice">Unreconcile</button> + <button class="btn btn-sm btn-secondary js_open_payment float-right" t-att-payment-id="account_payment_id" t-att-move-id="move_id" style="margin-top:5px; margin-bottom:5px;">View</button> + </t> + +</templates> diff --git a/addons/account/static/src/xml/account_resequence.xml b/addons/account/static/src/xml/account_resequence.xml new file mode 100644 index 00000000..172a0e94 --- /dev/null +++ b/addons/account/static/src/xml/account_resequence.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<templates> + + <div t-name="account.ResequenceRenderer" owl="1" class="d-block"> + <table t-if="data.changeLines.length" class="table table-sm"> + <thead><tr> + <th>Date</th> + <th>Before</th> + <th>After</th> + </tr></thead> + <tbody t-foreach="data.changeLines" t-as="changeLine" t-key="changeLine.id"> + <ChangeLine changeLine="changeLine" ordering="data.ordering"/> + </tbody> + </table> + </div> + + <t t-name="account.ResequenceChangeLine" owl="1"> + <tr> + <td t-esc="props.changeLine.date"/> + <td t-esc="props.changeLine.current_name"/> + <td t-if="props.ordering == 'keep'" t-esc="props.changeLine.new_by_name" t-attf-class="{{ props.changeLine.new_by_name != props.changeLine.new_by_date ? 'animate' : ''}}"/> + <td t-else="" t-esc="props.changeLine.new_by_date" t-attf-class="{{ props.changeLine.new_by_name != props.changeLine.new_by_date ? 'animate' : ''}}"/> + </tr> + </t> +</templates> diff --git a/addons/account/static/src/xml/bills_tree_upload_views.xml b/addons/account/static/src/xml/bills_tree_upload_views.xml new file mode 100644 index 00000000..32505e12 --- /dev/null +++ b/addons/account/static/src/xml/bills_tree_upload_views.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<templates> + <t t-name="account.BillsHiddenUploadForm"> + <div class="d-none o_vendor_bill_upload"> + <t t-call="HiddenInputFile"> + <t t-set="multi_upload" t-value="true"/> + <t t-set="fileupload_id" t-value="widget.fileUploadID"/> + <t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t> + <input type="hidden" name="model" value=""/> + <input type="hidden" name="id" value="0"/> + </t> + </div> + </t> + + <t t-extend="ListView.buttons" t-name="BillsListView.buttons"> + <t t-jquery="button.o_list_button_add" t-operation="after"> + <button type="button" class="btn btn-secondary o_button_upload_bill"> + Upload + </button> + </t> + </t> +</templates> diff --git a/addons/account/static/src/xml/grouped_view_widget.xml b/addons/account/static/src/xml/grouped_view_widget.xml new file mode 100644 index 00000000..9863fc82 --- /dev/null +++ b/addons/account/static/src/xml/grouped_view_widget.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<templates> + <div t-name="account.GroupedListTemplate" owl="1" class="d-block"> + <table t-if="data.groups_vals.length" class="table table-sm o_list_table table table-sm table-hover table-striped o_list_table_grouped"> + <thead><tr> + <t t-foreach="data.options.columns" t-as="col"> + <th t-esc="col['label']" t-attf-class="{{col['class']}}"/> + </t> + </tr></thead> + <t t-foreach="data.groups_vals" t-as="group_vals"> + <ListGroup group_vals="group_vals" options="data.options"/> + </t> + </table> + <t t-if="data.options.discarded_number"> + <span><t t-esc="data.options.discarded_number"/> are not shown in the preview</span> + </t> + </div> + + <tbody t-name="account.GroupedItemsTemplate" owl="1"> + <tr style="background-color: #dee2e6;"> + <td t-attf-colspan="{{props.options.columns.length}}"> + <t t-esc="props.group_vals.group_name"/> + </td> + </tr> + <t t-foreach="props.group_vals.items_vals" t-as="item_vals"> + <ListItem item_vals="item_vals[2]" options="props.options"/> + </t> + </tbody> + + <tr t-name="account.GroupedItemTemplate" owl="1"> + <t t-foreach="props.options.columns" t-as="col"> + <td t-esc="props.item_vals[col['field']]" t-attf-class="{{col['class']}}"/> + </t> + </tr> + +</templates> diff --git a/addons/account/static/src/xml/tax_group.xml b/addons/account/static/src/xml/tax_group.xml new file mode 100644 index 00000000..807fcfc7 --- /dev/null +++ b/addons/account/static/src/xml/tax_group.xml @@ -0,0 +1,35 @@ +<?xml version='1.0' encoding='utf-8'?> + +<templates> + <t t-name="AccountTaxGroupTemplate"> + <table class="o_group o_inner_group oe_subtotal_footer border-0 my-0" style="min-width: 100%;"> + <tbody> + <t t-foreach="lines" t-as="line"> + <tr> + <td class="o_td_label oe_tax_group_name"> + <label class="o_form_label" t-esc="line[0]"/> + </td> + <td class="oe_tax_group_editable" t-att-data-tax-group-id="line[6]"> + <t t-if="displayEditWidget and line[1] !== 0"> + <span class="tax_group_edit"> + <i class="fa fa-pencil"></i> + <span class="oe_tax_group_amount_value"> + <t t-esc="line[3]"/> + </span> + </span> + <span class="tax_group_edit_input d-none"> + <input type="text" class="o_field_float o_field_number o_input" t-att-data-original-value="line[1]"/> + </span> + </t> + <t t-if="!displayEditWidget or line[1] === 0"> + <span class="oe_tax_group_amount_value"> + <t t-esc="line[3]"/> + </span> + </t> + </td> + </tr> + </t> + </tbody> + </table> + </t> +</templates> |
