snippets
This commit is contained in:
1 parent
1fe9d50ec6
commit
a747e3f7c3
21 files changed
+403
-31
No files matched your search
+1
-1
Submodule oca/hr-attendance updated: 96b8dbcc8f...5a0dddbc1a.
+1
-1
Submodule oca/hr-holidays updated: 9005d54de0...d7e5390134.
+1
-1
Submodule oca/l10n-switzerland updated: bb7affa612...97f98d96c7.
@@ -1834,6 +1834,21 @@ ID: `mint_system.account.report_invoice_document.reset_address`
|
||||
```
|
||||
Source: [snippets/account.report_invoice_document.reset_address.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/account.report_invoice_document.reset_address.xml)
|
||||
|
||||
### Round Price Unit
|
||||
ID: `mint_system.account.report_invoice_document.round_price_unit`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.report_invoice_document" priority="50">
|
||||
|
||||
<xpath expr="//span[@t-field='line.price_unit']" position="replace">
|
||||
<span class="text-nowrap" t-esc="'{0:,.2f}'.format(float(line.price_unit)).replace(',','\'')"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/account.report_invoice_document.round_price_unit.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/account.report_invoice_document.round_price_unit.xml)
|
||||
|
||||
### Round Price
|
||||
ID: `mint_system.account.report_invoice_document.round_price`
|
||||
```xml
|
||||
@@ -4408,6 +4423,21 @@ ID: `mint_system.account.report_invoice_document.reset_address`
|
||||
```
|
||||
Source: [snippets/account.report_invoice_document.reset_address.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/account.report_invoice_document.reset_address.xml)
|
||||
|
||||
### Round Price Unit
|
||||
ID: `mint_system.account.report_invoice_document.round_price_unit`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.report_invoice_document" priority="50">
|
||||
|
||||
<xpath expr="//span[@t-field='line.price_unit']" position="replace">
|
||||
<span class="text-nowrap" t-esc="'{0:,.2f}'.format(float(line.price_unit)).replace(',','\'')"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/account.report_invoice_document.round_price_unit.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/account.report_invoice_document.round_price_unit.xml)
|
||||
|
||||
### Round Price
|
||||
ID: `mint_system.account.report_invoice_document.round_price`
|
||||
```xml
|
||||
@@ -5736,6 +5766,21 @@ ID: `mint_system.account.view_move_line_tree_grouped_general.amount_currency_opt
|
||||
```
|
||||
Source: [snippets/account.view_move_line_tree_grouped_general.amount_currency_optional.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/account.view_move_line_tree_grouped_general.amount_currency_optional.xml)
|
||||
|
||||
## View Move Line Tree
|
||||
### Show Cumulated Balance
|
||||
ID: `mint_system.account.view_move_line_tree.show_cumulated_balance`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_move_line_tree" priority="50">
|
||||
|
||||
<field name="balance" position="after">
|
||||
<field name="cumulated_balance" optional="hide" />
|
||||
</field>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/account.view_move_line_tree.show_cumulated_balance.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/account.view_move_line_tree.show_cumulated_balance.xml)
|
||||
|
||||
## View Move Tree
|
||||
### X Account Codes
|
||||
ID: `mint_system.account.view_move_tree.x_account_codes`
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="business_requirement.portal_br_page" priority="50">
|
||||
|
||||
<div t-if="br.description" position="after">
|
||||
<div class="row" t-if="br.scenario">
|
||||
<div t-if="br.business_requirement"
|
||||
t-attf-class="col-12 col-lg-7 mb-4 mb-md-0 col-lg-12">
|
||||
<hr class="mb-1" />
|
||||
<strong class="d-block mb-2">Scenario</strong>
|
||||
<div class="py-1 px-2 bg-100 small" t-field="br.scenario" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" t-if="br.gap">
|
||||
<div t-if="br.business_requirement"
|
||||
t-attf-class="col-12 col-lg-7 mb-4 mb-md-0 col-lg-12">
|
||||
<hr class="mb-1" />
|
||||
<strong class="d-block mb-2">Gap</strong>
|
||||
<div class="py-1 px-2 bg-100 small" t-field="br.gap" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</data>
|
||||
@@ -155,6 +155,21 @@ ID: `mint_system.hr.view_employee_form.plan_permission`
|
||||
```
|
||||
Source: [snippets/hr.view_employee_form.plan_permission.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/hr.view_employee_form.plan_permission.xml)
|
||||
|
||||
### User Id Domain
|
||||
ID: `mint_system.hr.view_employee_form.user_id_domain`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="hr.view_employee_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='user_id']" position="attributes">
|
||||
<attribute name="domain">[]</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/hr.view_employee_form.user_id_domain.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/hr.view_employee_form.user_id_domain.xml)
|
||||
|
||||
## View Employee Tree
|
||||
### Add Mobile Phone
|
||||
ID: `mint_system.hr.view_employee_tree.add_mobile_phone`
|
||||
|
||||
@@ -423,6 +423,22 @@ ID: `mint_system.hr_timesheet.timesheet_view_tree_user.show_billable_type`
|
||||
```
|
||||
Source: [snippets/hr_timesheet.timesheet_view_tree_user.show_billable_type.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/hr_timesheet.timesheet_view_tree_user.show_billable_type.xml)
|
||||
|
||||
### Show Product Uom Id
|
||||
ID: `mint_system.hr_timesheet.timesheet_view_tree_user.show_product_uom_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="hr_timesheet.timesheet_view_tree_user" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='unit_amount']" position="after">
|
||||
<field name="product_uom_category_id" invisible="1" />
|
||||
<field name="product_uom_id" optional="show" />
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/hr_timesheet.timesheet_view_tree_user.show_product_uom_id.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/hr_timesheet.timesheet_view_tree_user.show_product_uom_id.xml)
|
||||
|
||||
### X Timesheet Invoice Type
|
||||
ID: `mint_system.hr_timesheet.timesheet_view_tree_user.x_timesheet_invoice_type`
|
||||
```xml
|
||||
|
||||
File renamed without changes.
@@ -2139,6 +2139,28 @@ ID: `mint_system.ir_model.sale_order_line.x_weight_delivered`
|
||||
Source: [snippets/ir_model.sale_order_line.x_weight_delivered.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/ir_model.sale_order_line.x_weight_delivered.xml)
|
||||
|
||||
## Sale Order
|
||||
### X As4import
|
||||
ID: `mint_system.ir_model.sale_order.x_as4import`
|
||||
```xml
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_as4import" model="ir.model.fields">
|
||||
<field name="field_description">AS4 Import</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="model_id" ref="sale.model_sale_order"/>
|
||||
<field name="name">x_as4import</field>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="False"/>
|
||||
<field name="copied" eval="True"/>
|
||||
<field name="ttype">boolean</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
```
|
||||
Source: [snippets/ir_model.sale_order.x_as4import.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/ir_model.sale_order.x_as4import.xml)
|
||||
|
||||
### X Client Project Ref
|
||||
ID: `mint_system.ir_model.sale_order.x_client_project_ref`
|
||||
```xml
|
||||
|
||||
@@ -15,6 +15,21 @@ ID: `mint_system.project.edit_project.domain_action_view_so`
|
||||
```
|
||||
Source: [snippets/project.edit_project.domain_action_view_so.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/project.edit_project.domain_action_view_so.xml)
|
||||
|
||||
### Show Collaborator Ids
|
||||
ID: `mint_system.project.edit_project.show_collaborator_ids`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="project.edit_project" priority="50">
|
||||
|
||||
<field name="privacy_visibility" position="after">
|
||||
<field name="collaborator_ids" />
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/project.edit_project.show_collaborator_ids.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/project.edit_project.show_collaborator_ids.xml)
|
||||
|
||||
### Show Date Start
|
||||
ID: `mint_system.project.edit_project.show_date_start`
|
||||
```xml
|
||||
@@ -364,6 +379,19 @@ ID: `mint_system.project.view_task_form2.show_key`
|
||||
```
|
||||
Source: [snippets/project.view_task_form2.show_key.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/project.view_task_form2.show_key.xml)
|
||||
|
||||
### Show Partner Mobile
|
||||
ID: `mint_system.project.view_task_form2.show_partner_mobile`
|
||||
```xml
|
||||
<data inherit_id="project.view_task_form2" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='partner_phone']" position="after">
|
||||
<field name="partner_mobile" widget="phone"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/project.view_task_form2.show_partner_mobile.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/project.view_task_form2.show_partner_mobile.xml)
|
||||
|
||||
### Timesheet Sort Date Desc
|
||||
ID: `mint_system.project.view_task_form2.timesheet_sort_date_desc`
|
||||
```xml
|
||||
@@ -464,6 +492,26 @@ ID: `mint_system.project.view_task_form2.x_vehicle_id`
|
||||
```
|
||||
Source: [snippets/project.view_task_form2.x_vehicle_id.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/project.view_task_form2.x_vehicle_id.xml)
|
||||
|
||||
## View Task Kanban
|
||||
### Show Planned Date Begin
|
||||
ID: `mint_system.project.view_task_kanban.show_planned_date_begin`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="project.view_task_kanban" priority="50">
|
||||
|
||||
<div name="date_deadline" position="replace">
|
||||
|
||||
<div t-if="record.planned_date_begin.raw_value" name="planned_date_begin" attrs="{'invisible': [('is_closed', '=', True)]}">
|
||||
<field name="planned_date_begin" widget="remaining_days"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/project.view_task_kanban.show_planned_date_begin.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/project.view_task_kanban.show_planned_date_begin.xml)
|
||||
|
||||
## View Task Tree2
|
||||
### Sale Line Optional
|
||||
ID: `mint_system.project.view_task_tree2.sale_line_optional`
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<data inherit_id="project.view_task_form2" priority="50">
|
||||
|
||||
<field name="partner_id" position="before">
|
||||
<field name="x_business_requirement_id" domain="[('x_project_id', '=', project_id)]" context="{'default_project_id': project_id}"/>
|
||||
<field name="x_business_requirement_id" domain="[('x_project_id', '=', project_id)]" context="{'default_x_project_id': project_id, 'default_x_task_id': id, 'default_partner_id': partner_id}"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
+127
-2
@@ -480,6 +480,26 @@ ID: `mint_system.purchase.report_purchaseorder_document.add_taxes`
|
||||
```
|
||||
Source: [snippets/purchase.report_purchaseorder_document.add_taxes.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchaseorder_document.add_taxes.xml)
|
||||
|
||||
### Append Incoterm
|
||||
ID: `mint_system.purchase.report_purchaseorder_document.append_incoterm`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase.report_purchaseorder_document" priority="50">
|
||||
|
||||
<xpath expr="//div[@id='total']" position="after">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<span t-if="o.incoterm_id.display_name">
|
||||
Lieferbedingungen: <strong t-field="o.incoterm_id.display_name"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase.report_purchaseorder_document.append_incoterm.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchaseorder_document.append_incoterm.xml)
|
||||
|
||||
### Append Payment Terms
|
||||
ID: `mint_system.purchase.report_purchaseorder_document.append_payment_terms`
|
||||
```xml
|
||||
@@ -565,6 +585,21 @@ ID: `mint_system.purchase.report_purchaseorder_document.format_as_date`
|
||||
```
|
||||
Source: [snippets/purchase.report_purchaseorder_document.format_as_date.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchaseorder_document.format_as_date.xml)
|
||||
|
||||
### Format Date
|
||||
ID: `mint_system.purchase.report_purchaseorder_document.format_date`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase.report_purchaseorder_document" priority="50">>
|
||||
|
||||
<xpath expr="//tbody//td/span[@t-field='line.date_planned']" position="attributes">
|
||||
<attribute name="t-options-widget">"date"</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/purchase.report_purchaseorder_document.format_date.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchaseorder_document.format_date.xml)
|
||||
|
||||
### Format Qty With Decimal
|
||||
ID: `mint_system.purchase.report_purchaseorder_document.format_qty_with_decimal`
|
||||
```xml
|
||||
@@ -840,6 +875,21 @@ ID: `mint_system.purchase.report_purchaseorder_document.product_description_repl
|
||||
```
|
||||
Source: [snippets/purchase.report_purchaseorder_document.product_description_replace.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchaseorder_document.product_description_replace.xml)
|
||||
|
||||
### Product Hide Bracket Description
|
||||
ID: `mint_system.purchase.report_purchaseorder_document.product_hide_bracket_description`
|
||||
```xml
|
||||
<data inherit_id="purchase.report_purchaseorder_document" priority="50">
|
||||
|
||||
<xpath expr="//td[@id='product']" position="replace">
|
||||
<td id="product">
|
||||
<span t-esc="line.name.split('(')[0].strip()"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase.report_purchaseorder_document.product_hide_bracket_description.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchaseorder_document.product_hide_bracket_description.xml)
|
||||
|
||||
### Qty Remaining
|
||||
ID: `mint_system.purchase.report_purchaseorder_document.qty_remaining`
|
||||
```xml
|
||||
@@ -1195,13 +1245,36 @@ ID: `mint_system.purchase.report_purchaseorder_document.replace_representative`
|
||||
```
|
||||
Source: [snippets/purchase.report_purchaseorder_document.replace_representative.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchaseorder_document.replace_representative.xml)
|
||||
|
||||
### Replace Taxes Id
|
||||
ID: `mint_system.purchase.report_purchaseorder_document.replace_taxes_id`
|
||||
```xml
|
||||
<data inherit_id="purchase.report_purchaseorder_document" priority="50">
|
||||
|
||||
<xpath expr="//thead//th[@name='th_taxes']" position="replace"/>
|
||||
<xpath expr="//thead//th[@name='th_amount']" position="before">
|
||||
<th name="th_taxes" class="text-right">
|
||||
<strong>Taxes</strong>
|
||||
</th>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//tbody//td[@name='td_taxes']" position="replace"/>
|
||||
<xpath expr="//tbody//span[@t-field='line.price_subtotal']/.." position="before">
|
||||
<td name="td_taxes" class="text-right">
|
||||
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.taxes_id))"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase.report_purchaseorder_document.replace_taxes_id.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchaseorder_document.replace_taxes_id.xml)
|
||||
|
||||
### Round Price
|
||||
ID: `mint_system.purchase.report_purchaseorder_document.round_price`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase.report_purchaseorder_document" priority="50">
|
||||
|
||||
<xpath expr="//table[2]/tbody[1]/t[2]/tr[1]/t[1]/td[6]/span[1]" position="replace">
|
||||
<xpath expr="//tbody//span[@t-field='line.price_unit']" position="replace">
|
||||
<span t-esc="'%g' % line.price_unit if str(line.price_unit)[::-1].find('.') >= 3 else '%.2f' % line.price_unit"/>
|
||||
</xpath>
|
||||
|
||||
@@ -1376,6 +1449,42 @@ ID: `mint_system.purchase.report_purchaseorder_document.style_moser`
|
||||
```
|
||||
Source: [snippets/purchase.report_purchaseorder_document.style_moser.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchaseorder_document.style_moser.xml)
|
||||
|
||||
### Style Tissa
|
||||
ID: `mint_system.purchase.report_purchaseorder_document.style_tissa`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase.report_purchaseorder_document" priority="50">
|
||||
|
||||
<xpath expr="//div[hasclass('page')]" position="before">
|
||||
<style>
|
||||
table#info {
|
||||
font-size: 9pt;
|
||||
font-family: arial;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
margin: 50px 0 30px 0
|
||||
}
|
||||
body {
|
||||
font-size: 11pt;
|
||||
font-family: arial;
|
||||
}
|
||||
</style>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@t-field='o.picking_type_id.warehouse_id.partner_id']" position="attributes">
|
||||
<attribute name="t-options">{"widget": "contact", "fields": ["address"], "no_marker": True, "phone_icons": False}</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@t-field='o.partner_id']" position="attributes">
|
||||
<attribute name="t-options">{"widget": "contact", "fields": ["address", "name"], "no_marker": True, "phone_icons": False}</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase.report_purchaseorder_document.style_tissa.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchaseorder_document.style_tissa.xml)
|
||||
|
||||
### Terms And Conditions
|
||||
ID: `mint_system.purchase.report_purchaseorder_document.terms_and_conditions`
|
||||
```xml
|
||||
@@ -1676,7 +1785,7 @@ ID: `mint_system.purchase.report_purchasequotation_document.format_date`
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase.report_purchasequotation_document" priority="50">
|
||||
|
||||
<xpath expr="//tbody[1]/t[1]/tr[1]/t[1]/td[2]/span[1]" position="attributes">
|
||||
<xpath expr="//tbody//td/span[@t-field='order_line.date_planned']" position="attributes">
|
||||
<attribute name="t-options-widget">"date"</attribute>
|
||||
</xpath>
|
||||
|
||||
@@ -1875,6 +1984,22 @@ ID: `mint_system.purchase.report_purchasequotation_document.modify_main_table`
|
||||
```
|
||||
Source: [snippets/purchase.report_purchasequotation_document.modify_main_table.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchasequotation_document.modify_main_table.xml)
|
||||
|
||||
### Product Hide Bracket Description
|
||||
ID: `mint_system.purchase.report_purchasequotation_document.product_hide_bracket_description`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase.report_purchasequotation_document" priority="50">
|
||||
|
||||
<xpath expr="//td[@id='product']" position="replace">
|
||||
<td id="product">
|
||||
<span t-esc="order_line.name.split('(')[0].strip()"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase.report_purchasequotation_document.product_hide_bracket_description.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/purchase.report_purchasequotation_document.product_hide_bracket_description.xml)
|
||||
|
||||
### Remove Date Planned
|
||||
ID: `mint_system.purchase.report_purchasequotation_document.remove_date_planned`
|
||||
```xml
|
||||
|
||||
@@ -4264,6 +4264,20 @@ ID: `mint_system.sale.view_quotation_tree.replace_create_date`
|
||||
```
|
||||
Source: [snippets/sale.view_quotation_tree.replace_create_date.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.view_quotation_tree.replace_create_date.xml)
|
||||
|
||||
### Show Delivery Status
|
||||
ID: `mint_system.sale.view_quotation_tree.show_delivery_status`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.view_quotation_tree" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='partner_id']" position="after">
|
||||
<field name="delivery_status" optional="show"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/sale.view_quotation_tree.show_delivery_status.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.view_quotation_tree.show_delivery_status.xml)
|
||||
|
||||
### Show Payment Term Id
|
||||
ID: `mint_system.sale.view_quotation_tree.show_payment_term_id`
|
||||
```xml
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.sale_order_line_view_form_readonly" priority="50">
|
||||
|
||||
<form position="replace">
|
||||
<form string="Sales Order Item">
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="display_name" />
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="order_id" />
|
||||
<field name="product_id" />
|
||||
<field name="name" />
|
||||
<field name="product_uom_qty" />
|
||||
<field name="qty_delivered" />
|
||||
<field name="qty_invoiced" />
|
||||
<field name="product_uom_category_id" />
|
||||
<field name="product_uom" />
|
||||
<field name="company_id" options="{'no_create': True}"
|
||||
groups="base.group_multi_company" />
|
||||
<field name="order_partner_id" invisible="1" />
|
||||
<field name="display_type" invisible="1" />
|
||||
<field name="product_updatable" invisible="1" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="price_unit" />
|
||||
<field name="discount" groups="product.group_discount_per_so_line" />
|
||||
<field name="price_subtotal" widget="monetary" />
|
||||
<field name="tax_id" widget="many2many_tags" />
|
||||
<field name="price_tax" widget="monetary" />
|
||||
<field name="price_total" widget="monetary" />
|
||||
<field name="currency_id" invisible="1" />
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</form>
|
||||
|
||||
</data>
|
||||
File renamed without changes.
@@ -213,6 +213,26 @@ ID: `mint_system.sale_blanket_order.report_blanketorder_document.add_infotable`
|
||||
```
|
||||
Source: [snippets/sale_blanket_order.report_blanketorder_document.add_infotable.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale_blanket_order.report_blanketorder_document.add_infotable.xml)
|
||||
|
||||
### Add Product Uom
|
||||
ID: `mint_system.sale_blanket_order.report_blanketorder_document.add_product_uom`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="//table/thead//th[3]" position="after">
|
||||
<th name="th_product_uom" class="text-right">ME</th>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table/tbody//span[@t-field='l.original_uom_qty']/.." position="after">
|
||||
<td name="td_product_uom" class="text-right">
|
||||
<span t-field="l.product_uom"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/sale_blanket_order.report_blanketorder_document.add_product_uom.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale_blanket_order.report_blanketorder_document.add_product_uom.xml)
|
||||
|
||||
### Address Block
|
||||
ID: `mint_system.sale_blanket_order.report_blanketorder_document.address_block`
|
||||
```xml
|
||||
@@ -449,8 +469,6 @@ ID: `mint_system.sale_blanket_order.report_blanketorder_document.replace_address
|
||||
<div class="col-7"></div>
|
||||
<div class="col-5">
|
||||
<div t-field="doc.partner_id" t-options="{"widget": "contact", "fields": ["address", "name", "fax"], "no_marker": True, "phone_icons": True}"/>
|
||||
<p t-if="doc.partner_id.vat">VAT: <span t-field="doc.partner_id.vat"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<xpath expr="//div//span[@t-field='doc.amount_total']/../../../../.." position="after">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<span t-if="doc.payment_term_id.note">
|
||||
Zahlungsbedingungen: <strong t-field="doc.payment_term_id.name"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
@@ -1,9 +0,0 @@
|
||||
<xpath expr="//div//span[@t-field='doc.amount_total']/../../../../.." position="after">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<span t-if="doc.payment_term_id.note">
|
||||
Zahlungsbedingungen: <strong t-field="doc.payment_term_id.name"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
@@ -448,6 +448,25 @@ function clear-assets() {
|
||||
docker exec db psql postgres://odoo:odoo@localhost/$DATABASE -c "delete from ir_attachment where res_model='ir.ui.view' and name like '%assets_%';"
|
||||
}
|
||||
|
||||
function reset-views() {
|
||||
if test -z "$1"; then echo "\$1 is empty."; exit; fi
|
||||
|
||||
DATABASE=$1
|
||||
KEY=$(basename $2)
|
||||
|
||||
# Use default database if second param is not given
|
||||
if test -z "$2"; then
|
||||
DATABASE="$GIT_BRANCH"
|
||||
KEY=$(basename $1)
|
||||
fi
|
||||
|
||||
locale
|
||||
activate-venv
|
||||
echo "Reset views for key $KEY"
|
||||
echo "self.env['ir.ui.view'].search([('key', 'ilike', '$KEY')]).reset_arch(mode='hard')" |
|
||||
odoo-bin shell -d $DATABASE --config 'config/odoo-native.conf' --no-http
|
||||
}
|
||||
|
||||
function convert-database() {
|
||||
if test -z "$1"; then echo "\$1 is empty."; exit; fi
|
||||
|
||||
@@ -1124,6 +1143,9 @@ case "$1" in
|
||||
source)
|
||||
activate-venv
|
||||
;;
|
||||
reset-views)
|
||||
reset-views $2 $3
|
||||
;;
|
||||
*)
|
||||
help task
|
||||
exit 1
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
| checkout-revision | [revision] | Switch to a different Odoo revision by tag name. |
|
||||
| clear-assets | [db] | Clear all assets of Odoo database. |
|
||||
| clear-filestore | [db] | Clear local filestore folder. No param will clear all filestores. Default is branch name. |
|
||||
| convert-database | [db] | Convert database backup file from postgres 9.5 to latest. Default is branch name. |
|
||||
| convert-database | [db] | Convert database backup file from postgres 9.5 to latest. Default is branch name. |
|
||||
| create-module | [path] | Create new Odoo module from template. |
|
||||
| disable-auto-install | | Disable auto install for enterprise modules. |
|
||||
| disable-mailserver | [env] | Disable mail server settings via xmlrpc. |
|
||||
@@ -41,20 +41,21 @@
|
||||
| release-module | [path] | Create GitHub release for a module. |
|
||||
| remove-module | [db][name] | Remove target Odoo module. |
|
||||
| remove-submodule | [path] | Remove git submodule. |
|
||||
| reset-views | [db][key] | Execute hard reset on views matching keys. |
|
||||
| restart | [name] | Restart docker container. |
|
||||
| save-config | [name] | Save Odoo database config |
|
||||
| send-support-mail | | Sends an mail for support@local to smtp://localhost |
|
||||
| set-admin | [db] | Sets the password for the first user in database. Default is branch name. |
|
||||
| set-admin | [db] | Sets the password for the first user in database. Default is branch name. |
|
||||
| source | | Source the Python virtual env. |
|
||||
| start | [name] [db] | Start docker container. Options: none, db, admin, odoo, native, mail. |
|
||||
| start-psql | [db] | Start PSQL shell in Docker container. Default is branch name. |
|
||||
| start-shell | [db] | Start Odoo shell from source folder. Default is branch name. |
|
||||
| start-psql | [db] | Start PSQL shell in Docker container. Default is branch name. |
|
||||
| start-shell | [db] | Start Odoo shell from source folder. Default is branch name. |
|
||||
| stop | [name] | Stop docker containers. |
|
||||
| switch-branch | [branch] | Switch submodules to target branch. |
|
||||
| test-jsonrpc | [env] | Test json rpc connection. |
|
||||
| test-module | [db][name,path] | Test target Odoo module. |
|
||||
| update-app-list | [db] | Update app list. |
|
||||
| update-config | | Update odoo config. |
|
||||
| update-config | | Update Odoo native and docker config files. |
|
||||
| update-docs | | Update project docs. |
|
||||
| update-module | [db][name,path] | Update target Odoo module. |
|
||||
| update-readme | [path] | Update Readme file of Odoo module collection. |
|
||||
|
||||
Reference in new issue
Block a user