sync from 14.0
This commit is contained in:
1 parent
a7bc2735c4
commit
42709b753b
97 files changed
+2428
-128
No files matched your search
+1
-1
@@ -35,7 +35,7 @@ module.exports = {
|
||||
'/snippets': [
|
||||
{
|
||||
text: 'Snippets',
|
||||
collapsible: true,
|
||||
collapsable: false,
|
||||
children: sidebarSidebar,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -1 +1 @@
|
||||
module.exports = ['/snippets/account.md','/snippets/account_budget.md','/snippets/agreement.md','/snippets/agreement_legal.md','/snippets/base.md','/snippets/business_requirement.md','/snippets/calendar.md','/snippets/certificate_planer.md','/snippets/crm.md','/snippets/crm_iap_lead_enrich.md','/snippets/delivery.md','/snippets/digest.md','/snippets/fleet.md','/snippets/gio_payroll_custom.md','/snippets/helpdesk.md','/snippets/hr.md','/snippets/hr_attendance.md','/snippets/hr_contract.md','/snippets/hr_holidays.md','/snippets/hr_holidays_delegations.md','/snippets/hr_payroll.md','/snippets/hr_recruitment.md','/snippets/hr_timesheet.md','/snippets/ir_model.md','/snippets/ir_ui_view.md','/snippets/l10n_ch.md','/snippets/mail.md','/snippets/mail_activity_board.md','/snippets/mrp.md','/snippets/mrp_workorder.md','/snippets/printnode_base.md','/snippets/product.md','/snippets/project.md','/snippets/purchase.md','/snippets/purchase_requisition.md','/snippets/res_groups.md','/snippets/sale.md','/snippets/sale_blanket_order.md','/snippets/sale_management.md','/snippets/sale_margin.md','/snippets/sale_order_contact_person.md','/snippets/sale_order_line_date.md','/snippets/sale_order_picking_note.md','/snippets/sale_partner_incoterm.md','/snippets/sale_product_set.md','/snippets/stock.md','/snippets/stock_delivery_note.md','/snippets/timesheet_grid.md','/snippets/web.md','/snippets/website_discount_voucher.md','/snippets/website_sale.md',]
|
||||
module.exports = ['/snippets/account.md','/snippets/account_budget.md','/snippets/agreement.md','/snippets/agreement_legal.md','/snippets/base.md','/snippets/business_requirement.md','/snippets/calendar.md','/snippets/certificate_planer.md','/snippets/contract.md','/snippets/crm.md','/snippets/crm_iap_lead_enrich.md','/snippets/delivery.md','/snippets/digest.md','/snippets/fleet.md','/snippets/gio_payroll_custom.md','/snippets/helpdesk.md','/snippets/hr.md','/snippets/hr_attendance.md','/snippets/hr_contract.md','/snippets/hr_holidays.md','/snippets/hr_holidays_delegations.md','/snippets/hr_payroll.md','/snippets/hr_recruitment.md','/snippets/hr_timesheet.md','/snippets/ir_model.md','/snippets/ir_ui_view.md','/snippets/l10n_ch.md','/snippets/l10n_ch_qr_isr_invoice_import.md','/snippets/mail.md','/snippets/mail_activity_board.md','/snippets/mrp.md','/snippets/mrp_workorder.md','/snippets/printnode_base.md','/snippets/product.md','/snippets/project.md','/snippets/purchase.md','/snippets/purchase_requisition.md','/snippets/res_groups.md','/snippets/sale.md','/snippets/sale_blanket_order.md','/snippets/sale_management.md','/snippets/sale_margin.md','/snippets/sale_order_contact_person.md','/snippets/sale_order_line_date.md','/snippets/sale_order_picking_note.md','/snippets/sale_partner_incoterm.md','/snippets/sale_product_set.md','/snippets/sale_subscription.md','/snippets/stock.md','/snippets/stock_delivery_note.md','/snippets/timesheet_grid.md','/snippets/web.md','/snippets/website_discount_voucher.md','/snippets/website_sale.md',]
|
||||
+1
-1
@@ -33,7 +33,7 @@ services:
|
||||
- ./config/servers.json:/pgadmin4/servers.json
|
||||
db:
|
||||
container_name: db
|
||||
image: postgres:14
|
||||
image: postgres:12
|
||||
ports:
|
||||
- "127.0.0.1:5432:5432"
|
||||
environment:
|
||||
|
||||
@@ -8,6 +8,7 @@ In Odoo everything is described as an XML document. Snippets are modificatio
|
||||
## [Business Requirement](snippets/business_requirement.md)
|
||||
## [Calendar](snippets/calendar.md)
|
||||
## [Certificate Planer](snippets/certificate_planer.md)
|
||||
## [Contract](snippets/contract.md)
|
||||
## [Crm](snippets/crm.md)
|
||||
## [Crm Iap Lead Enrich](snippets/crm_iap_lead_enrich.md)
|
||||
## [Delivery](snippets/delivery.md)
|
||||
@@ -26,6 +27,7 @@ In Odoo everything is described as an XML document. Snippets are modificatio
|
||||
## [Ir Model](snippets/ir_model.md)
|
||||
## [Ir Ui View](snippets/ir_ui_view.md)
|
||||
## [L10n Ch](snippets/l10n_ch.md)
|
||||
## [L10n Ch Qr Isr Invoice Import](snippets/l10n_ch_qr_isr_invoice_import.md)
|
||||
## [Mail](snippets/mail.md)
|
||||
## [Mail Activity Board](snippets/mail_activity_board.md)
|
||||
## [Mrp](snippets/mrp.md)
|
||||
@@ -45,6 +47,7 @@ In Odoo everything is described as an XML document. Snippets are modificatio
|
||||
## [Sale Order Picking Note](snippets/sale_order_picking_note.md)
|
||||
## [Sale Partner Incoterm](snippets/sale_partner_incoterm.md)
|
||||
## [Sale Product Set](snippets/sale_product_set.md)
|
||||
## [Sale Subscription](snippets/sale_subscription.md)
|
||||
## [Stock](snippets/stock.md)
|
||||
## [Stock Delivery Note](snippets/stock_delivery_note.md)
|
||||
## [Timesheet Grid](snippets/timesheet_grid.md)
|
||||
|
||||
@@ -3608,6 +3608,21 @@ ID: `mint_system.account.res_config_settings_view_form.domain_expense_currency_e
|
||||
```
|
||||
Source: [snippets/account.res_config_settings_view_form.domain_expense_currency_exchange_account_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.res_config_settings_view_form.domain_expense_currency_exchange_account_id.xml)
|
||||
|
||||
## View Account Payment Register Form
|
||||
### Show Partner Id
|
||||
ID: `mint_system.account.view_account_payment_register_form.show_partner_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_account_payment_register_form" priority="50" >
|
||||
|
||||
<field name="partner_bank_id" position="before">
|
||||
<field name="partner_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/account.view_account_payment_register_form.show_partner_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_account_payment_register_form.show_partner_id.xml)
|
||||
|
||||
## View Bank Statement Form
|
||||
### Edit Balance
|
||||
ID: `mint_system.account.view_bank_statement_form.edit_balance`
|
||||
@@ -3628,6 +3643,21 @@ ID: `mint_system.account.view_bank_statement_form.edit_balance`
|
||||
```
|
||||
Source: [snippets/account.view_bank_statement_form.edit_balance.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_bank_statement_form.edit_balance.xml)
|
||||
|
||||
### Edit Transactions
|
||||
ID: `mint_system.account.view_bank_statement_form.edit_transactions`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_bank_statement_form" priority="50">
|
||||
|
||||
<field name="line_ids" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('state', '=', 'confirm')]}</attribute>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/account.view_bank_statement_form.edit_transactions.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_bank_statement_form.edit_transactions.xml)
|
||||
|
||||
### Show Cashbox
|
||||
ID: `mint_system.account.view_bank_statement_form.show_cashbox`
|
||||
```xml
|
||||
@@ -3707,6 +3737,22 @@ ID: `mint_system.account.view_bank_statement_line_search.filter_move_id`
|
||||
```
|
||||
Source: [snippets/account.view_bank_statement_line_search.filter_move_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_bank_statement_line_search.filter_move_id.xml)
|
||||
|
||||
## View Bank Statement Line Tree
|
||||
### Enable Create
|
||||
ID: `mint_system.account.view_bank_statement_line_tree.enable_create`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_bank_statement_line_tree" priority="50">
|
||||
|
||||
<tree position="attributes">
|
||||
<attribute name="create">1</attribute>
|
||||
</tree>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/account.view_bank_statement_line_tree.enable_create.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_bank_statement_line_tree.enable_create.xml)
|
||||
|
||||
## View In Invoice Tree
|
||||
### Add Discount Date
|
||||
ID: `mint_system.account.view_in_invoice_tree.add_discount_date`
|
||||
@@ -3765,6 +3811,20 @@ ID: `mint_system.account.view_invoice_tree.x_account_codes`
|
||||
```
|
||||
Source: [snippets/account.view_invoice_tree.x_account_codes.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_invoice_tree.x_account_codes.xml)
|
||||
|
||||
### X Recurring Inverval
|
||||
ID: `mint_system.account.view_invoice_tree.x_recurring_inverval`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_invoice_tree" priority="50">
|
||||
|
||||
<field name="invoice_date" position="after">
|
||||
<field name="x_recurring_inverval" optional="show"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/account.view_invoice_tree.x_recurring_inverval.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_invoice_tree.x_recurring_inverval.xml)
|
||||
|
||||
## View Move Form
|
||||
### Domain Partner Bank Ids
|
||||
ID: `mint_system.account.view_move_form.domain_partner_bank_ids`
|
||||
@@ -3794,6 +3854,24 @@ ID: `mint_system.account.view_move_form.hide_payment_reference`
|
||||
```
|
||||
Source: [snippets/account.view_move_form.hide_payment_reference.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.hide_payment_reference.xml)
|
||||
|
||||
### Hide Send Button On Refund
|
||||
ID: `mint_system.account.view_move_form.hide_send_button_on_refund`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_move_form" priority="50" >
|
||||
|
||||
<xpath expr="//button[@name='action_invoice_sent'][1]" position="attributes">
|
||||
<attribute name="attrs"> {'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', True), ('move_type', 'not in', ('out_invoice'))]}</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//button[@name='action_invoice_sent'][2]" position="attributes">
|
||||
<attribute name="attrs">{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', False), ('move_type', 'not in', ('out_invoice', 'in_invoice', 'in_refund'))]}</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/account.view_move_form.hide_send_button_on_refund.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.hide_send_button_on_refund.xml)
|
||||
|
||||
### Payment Reference Readonly
|
||||
ID: `mint_system.account.view_move_form.payment_reference_readonly`
|
||||
```xml
|
||||
@@ -3822,6 +3900,21 @@ ID: `mint_system.account.view_move_form.remove_isr_button`
|
||||
```
|
||||
Source: [snippets/account.view_move_form.remove_isr_button.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.remove_isr_button.xml)
|
||||
|
||||
### Show Bank Partner Id
|
||||
ID: `mint_system.account.view_move_form.show_bank_partner_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_move_form" priority="50" >
|
||||
|
||||
<field name="partner_id" position="after">
|
||||
<field name="bank_partner_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/account.view_move_form.show_bank_partner_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.show_bank_partner_id.xml)
|
||||
|
||||
### Show Commercial Partner Id
|
||||
ID: `mint_system.account.view_move_form.show_commercial_partner_id`
|
||||
```xml
|
||||
@@ -3851,6 +3944,24 @@ ID: `mint_system.account.view_move_form.show_invoice_origin`
|
||||
```
|
||||
Source: [snippets/account.view_move_form.show_invoice_origin.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.show_invoice_origin.xml)
|
||||
|
||||
### Show Line Partner Id
|
||||
ID: `mint_system.account.view_move_form.show_line_partner_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_move_form" priority="50" >
|
||||
|
||||
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='partner_id']" position="replace">
|
||||
<field name="partner_id" optional="hide" />
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='line_ids']/tree/field[@name='partner_id']" position="replace">
|
||||
<field name="partner_id" domain="['|', ('parent_id', '=', False), ('is_company', '=', True)]"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/account.view_move_form.show_line_partner_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.show_line_partner_id.xml)
|
||||
|
||||
### Show Posted Before
|
||||
ID: `mint_system.account.view_move_form.show_posted_before`
|
||||
```xml
|
||||
@@ -3893,6 +4004,20 @@ ID: `mint_system.account.view_move_form.show_user_id`
|
||||
```
|
||||
Source: [snippets/account.view_move_form.show_user_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.show_user_id.xml)
|
||||
|
||||
### X Recurring Inverval
|
||||
ID: `mint_system.account.view_move_form.x_recurring_inverval`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_move_form" priority="50" >
|
||||
|
||||
<field name="invoice_date" position="after">
|
||||
<field name="x_recurring_inverval" />
|
||||
</field>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/account.view_move_form.x_recurring_inverval.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.x_recurring_inverval.xml)
|
||||
|
||||
### X Sale Order Id
|
||||
ID: `mint_system.account.view_move_form.x_sale_order_id`
|
||||
```xml
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_account_payment_register_form" priority="50" >
|
||||
|
||||
<field name="partner_bank_id" position="before">
|
||||
<field name="partner_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_bank_statement_form" priority="50">
|
||||
|
||||
<field name="line_ids" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('state', '=', 'confirm')]}</attribute>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_bank_statement_line_tree" priority="50">
|
||||
|
||||
<tree position="attributes">
|
||||
<attribute name="create">1</attribute>
|
||||
</tree>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_invoice_tree" priority="50">
|
||||
|
||||
<field name="invoice_date" position="after">
|
||||
<field name="x_recurring_inverval" optional="show"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_move_form" priority="50" >
|
||||
|
||||
<xpath expr="//button[@name='action_invoice_sent'][1]" position="attributes">
|
||||
<attribute name="attrs"> {'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', True), ('move_type', 'not in', ('out_invoice'))]}</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//button[@name='action_invoice_sent'][2]" position="attributes">
|
||||
<attribute name="attrs">{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', False), ('move_type', 'not in', ('out_invoice', 'in_invoice', 'in_refund'))]}</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_move_form" priority="50" >
|
||||
|
||||
<field name="partner_id" position="after">
|
||||
<field name="bank_partner_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_move_form" priority="50" >
|
||||
|
||||
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='partner_id']" position="replace">
|
||||
<field name="partner_id" optional="hide" />
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='line_ids']/tree/field[@name='partner_id']" position="replace">
|
||||
<field name="partner_id" domain="['|', ('parent_id', '=', False), ('is_company', '=', True)]"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_move_form" priority="50" >
|
||||
|
||||
<field name="invoice_date" position="after">
|
||||
<field name="x_recurring_inverval" />
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -54,3 +54,19 @@ ID: `mint_system.calendar.view_calendar_event_calendar_timeline.view`
|
||||
```
|
||||
Source: [snippets/calendar.view_calendar_event_calendar_timeline.view.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/calendar.view_calendar_event_calendar_timeline.view.xml)
|
||||
|
||||
## View Calendar Event Form
|
||||
### Show Res Model And Id
|
||||
ID: `mint_system.calendar.view_calendar_event_form.show_res_model_and_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="calendar.view_calendar_event_form" priority="50">
|
||||
|
||||
<xpath expr="//page[@name='page_misc']//field[@name='user_id']" position="after">
|
||||
<field name="res_id"/>
|
||||
<field name="res_model"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/calendar.view_calendar_event_form.show_res_model_and_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/calendar.view_calendar_event_form.show_res_model_and_id.xml)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="calendar.view_calendar_event_form" priority="50">
|
||||
|
||||
<xpath expr="//page[@name='page_misc']//field[@name='user_id']" position="after">
|
||||
<field name="res_id"/>
|
||||
<field name="res_model"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="contract.contract_contract_tree_view" priority="50">
|
||||
|
||||
<field name="partner_id" position="after">
|
||||
<field name="recurring_next_date" optional="show"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,19 @@
|
||||
---
|
||||
prev: ./snippets.md
|
||||
---
|
||||
# Contract
|
||||
## Contract Contract Tree View
|
||||
### Show Recurring Next Date
|
||||
ID: `mint_system.contract.contract_contract_tree_view.show_recurring_next_date`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="contract.contract_contract_tree_view" priority="50">
|
||||
|
||||
<field name="partner_id" position="after">
|
||||
<field name="recurring_next_date" optional="show"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/contract.contract_contract_tree_view.show_recurring_next_date.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/contract.contract_contract_tree_view.show_recurring_next_date.xml)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="hr_holidays.hr_leave_view_form_manager_approve" priority="50">
|
||||
|
||||
<field name="employee_id" position="after">
|
||||
<field name="meeting_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="hr_holidays.hr_leave_view_tree" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='state']" position="after">
|
||||
<field name="x_synced" widget="toggle_button"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="hr_holidays.hr_leave_view_tree">
|
||||
|
||||
<xpath expr="//field[@name='state']" position="after">
|
||||
<field name="x_synced" widget="toggle_button" groups="hr.group_hr_user"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -3,6 +3,21 @@ prev: ./snippets.md
|
||||
---
|
||||
# Hr Holidays
|
||||
## Hr Leave View Form Manager Approve
|
||||
### Add Meeting Id
|
||||
ID: `mint_system.hr_holidays.hr_leave_view_form_manager_approve.add_meeting_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="hr_holidays.hr_leave_view_form_manager_approve" priority="50">
|
||||
|
||||
<field name="employee_id" position="after">
|
||||
<field name="meeting_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/hr_holidays.hr_leave_view_form_manager_approve.add_meeting_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_holidays.hr_leave_view_form_manager_approve.add_meeting_id.xml)
|
||||
|
||||
### Report Note Group
|
||||
ID: `mint_system.hr_holidays.hr_leave_view_form_manager_approve.report_note_group`
|
||||
```xml
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="hr_payroll.hr_payslip_line_view_search_register" priority="50">
|
||||
|
||||
<xpath expr="//filter[@name='last_quarter']" position="after">
|
||||
<separator/>
|
||||
<filter string="Datum" name="date_filter" date="date_from" default_period="last_year"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -24,6 +24,23 @@ ID: `mint_system.hr_payroll.hr_payslip_line.view_pivot`
|
||||
```
|
||||
Source: [snippets/hr_payroll.hr_payslip_line.view_pivot.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_payroll.hr_payslip_line.view_pivot.xml)
|
||||
|
||||
## Hr Payslip Line View Search Register
|
||||
### Filter Date From
|
||||
ID: `mint_system.hr_payroll.hr_payslip_line_view_search_register.filter_date_from`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="hr_payroll.hr_payslip_line_view_search_register" priority="50">
|
||||
|
||||
<xpath expr="//filter[@name='last_quarter']" position="after">
|
||||
<separator/>
|
||||
<filter string="Datum" name="date_filter" date="date_from" default_period="last_year"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/hr_payroll.hr_payslip_line_view_search_register.filter_date_from.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_payroll.hr_payslip_line_view_search_register.filter_date_from.xml)
|
||||
|
||||
## Hr Salary Rule Form
|
||||
### Switch Account
|
||||
ID: `mint_system.hr_payroll.hr_salary_rule_form.switch_account`
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="hr_timesheet.hr_timesheet_line_tree" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='project_id']" position="before">
|
||||
<field name="partner_id"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='project_id']" position="attributes">
|
||||
<attribute name="domain">[('partner_id', '=', partner_id)]</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -19,6 +19,25 @@ ID: `mint_system.hr_timesheet.hr_timesheet_line_tree.invoice_details`
|
||||
```
|
||||
Source: [snippets/hr_timesheet.hr_timesheet_line_tree.invoice_details.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_timesheet.hr_timesheet_line_tree.invoice_details.xml)
|
||||
|
||||
### Show Partner Id
|
||||
ID: `mint_system.hr_timesheet.hr_timesheet_line_tree.show_partner_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="hr_timesheet.hr_timesheet_line_tree" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='project_id']" position="before">
|
||||
<field name="partner_id"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='project_id']" position="attributes">
|
||||
<attribute name="domain">[('partner_id', '=', partner_id)]</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/hr_timesheet.hr_timesheet_line_tree.show_partner_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_timesheet.hr_timesheet_line_tree.show_partner_id.xml)
|
||||
|
||||
## Portal My Timesheets
|
||||
### Show Billable
|
||||
ID: `mint_system.hr_timesheet.portal_my_timesheets.show_billable`
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_recurring_inverval" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Abrechnungsintervall</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="model_id" ref="account.model_account_move"/>
|
||||
<field name="name">x_recurring_inverval</field>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="False"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">selection</field>
|
||||
<field name="selection_id">[
|
||||
{'value':'daily','name':'Daily'},
|
||||
{'value':'monthly','name':'Monthly'},
|
||||
{'value':'quarterly','name':'Quarterly'},
|
||||
{'value':'yearly','name':'Yearly'}
|
||||
]</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_code_name" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Code mit Name</field>
|
||||
<field name="model">hr.payslip.line</field>
|
||||
<field name="model_id" ref="hr_payroll.model_hr_payslip_line"/>
|
||||
<field name="name">x_code_name</field>
|
||||
<field name="state">manual</field>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="True"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">char</field>
|
||||
<field name="depends">name,code</field>
|
||||
<field name="compute">for rec in self:
|
||||
rec['x_code_name'] = rec.code + ' ' + rec.name</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
+144
-6
@@ -173,6 +173,35 @@ ID: `mint_system.ir_model.account_move.x_picking_list`
|
||||
```
|
||||
Source: [snippets/ir_model.account_move.x_picking_list.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.account_move.x_picking_list.xml)
|
||||
|
||||
### X Recurring Inverval
|
||||
ID: `mint_system.ir_model.account_move.x_recurring_inverval`
|
||||
```xml
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_recurring_inverval" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Abrechnungsintervall</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="model_id" ref="account.model_account_move"/>
|
||||
<field name="name">x_recurring_inverval</field>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="False"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">selection</field>
|
||||
<field name="selection_id">[
|
||||
{'value':'daily','name':'Daily'},
|
||||
{'value':'monthly','name':'Monthly'},
|
||||
{'value':'quarterly','name':'Quarterly'},
|
||||
{'value':'yearly','name':'Yearly'}
|
||||
]</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
```
|
||||
Source: [snippets/ir_model.account_move.x_recurring_inverval.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.account_move.x_recurring_inverval.xml)
|
||||
|
||||
### X Studio Description
|
||||
ID: `mint_system.ir_model.account_move.x_studio_description`
|
||||
```xml
|
||||
@@ -524,6 +553,34 @@ ID: `mint_system.ir_model.hr_contract.x_struct_id`
|
||||
```
|
||||
Source: [snippets/ir_model.hr_contract.x_struct_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.hr_contract.x_struct_id.xml)
|
||||
|
||||
## Hr Payslip Line
|
||||
### X Code Name
|
||||
ID: `mint_system.ir_model.hr_payslip_line.x_code_name`
|
||||
```xml
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_code_name" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Code mit Name</field>
|
||||
<field name="model">hr.payslip.line</field>
|
||||
<field name="model_id" ref="hr_payroll.model_hr_payslip_line"/>
|
||||
<field name="name">x_code_name</field>
|
||||
<field name="state">manual</field>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="True"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">char</field>
|
||||
<field name="depends">name,code</field>
|
||||
<field name="compute">for rec in self:
|
||||
rec['x_code_name'] = rec.code + ' ' + rec.name</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
```
|
||||
Source: [snippets/ir_model.hr_payslip_line.x_code_name.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.hr_payslip_line.x_code_name.xml)
|
||||
|
||||
## Mrp Bom
|
||||
### X Note
|
||||
ID: `mint_system.ir_model.mrp_bom.x_note`
|
||||
@@ -907,12 +964,12 @@ ID: `mint_system.ir_model.project_task.x_business_requirement_id`
|
||||
<field name="model_id" ref="project.model_project_task"/>
|
||||
<field name="name">x_business_requirement_id</field>
|
||||
<field name="state">manual</field>
|
||||
<field name="store" eval="False"/>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="False"/>
|
||||
<field name="copied" eval="True"/>
|
||||
<field name="ttype">many2one</field>
|
||||
<field name="relation">business.requirement</field>
|
||||
<field name="depends">project_id</field>
|
||||
<field name="depends">project_id,name</field>
|
||||
<field name="compute">for record in self:
|
||||
record['x_business_requirement_id'] = self.env['business.requirement'].search([('x_task_id', '=', record.id)], limit=1)
|
||||
</field>
|
||||
@@ -1545,17 +1602,18 @@ ID: `mint_system.ir_model.stock_move.x_count_boxes`
|
||||
# qty = rec.product_packaging.qty
|
||||
# qty_up = (qty - 0.1)
|
||||
|
||||
# Change
|
||||
# Set factor
|
||||
factor_xs = 6
|
||||
if delivery_name == 'Gebinde':
|
||||
factor = 6
|
||||
factor_xs = 6
|
||||
elif delivery_name == 'Gebinde Migros':
|
||||
factor = 4
|
||||
factor_xs = 6
|
||||
|
||||
if rec.product_packaging.name == "Schale Gross":
|
||||
rec['x_count_boxes'] = (rec.quantity_done/4 + 2.4)/2.5
|
||||
|
||||
elif rec.product_packaging.name == "Schale Klein":
|
||||
rec['x_count_boxes'] = (rec.quantity_done/factor + 0.9)/1
|
||||
rec['x_count_boxes'] = (rec.quantity_done/factor_xs + 0.9)/1
|
||||
|
||||
elif rec.product_packaging.name == "Vakuum Gross":
|
||||
rec['x_count_boxes'] = (rec.quantity_done/4 + 2.4)/2.5
|
||||
@@ -1735,6 +1793,86 @@ ID: `mint_system.ir_model.stock_move.x_scrap_id`
|
||||
```
|
||||
Source: [snippets/ir_model.stock_move.x_scrap_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.stock_move.x_scrap_id.xml)
|
||||
|
||||
## Stock Production Lot
|
||||
### X Production Ids
|
||||
ID: `mint_system.ir_model.stock_production_lot.x_production_ids`
|
||||
```xml
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_production_ids" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Fertigungsaufträge</field>
|
||||
<field name="model">stock.production.lot</field>
|
||||
<field name="model_id" ref="stock.model_stock_production_lot"/>
|
||||
<field name="name">x_production_ids</field>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="True"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">One2many</field>
|
||||
<field name="relation">mrp.production</field>
|
||||
<field name="relation_field">lot_producing_id</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
```
|
||||
Source: [snippets/ir_model.stock_production_lot.x_production_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.stock_production_lot.x_production_ids.xml)
|
||||
|
||||
### X Production Id
|
||||
ID: `mint_system.ir_model.stock_production_lot.x_production_id`
|
||||
```xml
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_production_id" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Fertigungsauftrag</field>
|
||||
<field name="model">stock.production.lot</field>
|
||||
<field name="model_id" ref="stock.model_stock_production_lot"/>
|
||||
<field name="name">x_production_id</field>
|
||||
<field name="store" eval="False"/>
|
||||
<field name="readonly" eval="True"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">char</field>
|
||||
<field name="depends">x_production_ids</field>
|
||||
<field name="compute">for rec in self:
|
||||
if rec.x_production_ids:
|
||||
rec['x_production_id'] = rec.x_production_ids[0].name.split('-')[0]
|
||||
else:
|
||||
rec['x_production_id'] = ''
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
```
|
||||
Source: [snippets/ir_model.stock_production_lot.x_production_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.stock_production_lot.x_production_id.xml)
|
||||
|
||||
### X Weight Uom
|
||||
ID: `mint_system.ir_model.stock_production_lot.x_weight_uom`
|
||||
```xml
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_weight_uom" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Nettogewicht [kg]</field>
|
||||
<field name="model">stock.production.lot</field>
|
||||
<field name="model_id" ref="stock.model_stock_production_lot"/>
|
||||
<field name="name">x_weight_uom</field>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="True"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">float</field>
|
||||
<field name="depends">product_qty, product_id.weight, product_id.weight_uom_id</field>
|
||||
<field name="compute">for record in self:
|
||||
record['x_weight_uom'] = record.product_qty * record.product_id.product_tmpl_id.weight_uom_id._compute_quantity(record.product_id.weight, self.env.ref('uom.product_uom_kgm'))
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
```
|
||||
Source: [snippets/ir_model.stock_production_lot.x_weight_uom.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.stock_production_lot.x_weight_uom.xml)
|
||||
|
||||
## Stock Quant
|
||||
### X Last Delivery Partner Id
|
||||
ID: `mint_system.ir_model.stock_quant.x_last_delivery_partner_id`
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
<field name="model_id" ref="project.model_project_task"/>
|
||||
<field name="name">x_business_requirement_id</field>
|
||||
<field name="state">manual</field>
|
||||
<field name="store" eval="False"/>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="False"/>
|
||||
<field name="copied" eval="True"/>
|
||||
<field name="ttype">many2one</field>
|
||||
<field name="relation">business.requirement</field>
|
||||
<field name="depends">project_id</field>
|
||||
<field name="depends">project_id,name</field>
|
||||
<field name="compute">for record in self:
|
||||
record['x_business_requirement_id'] = self.env['business.requirement'].search([('x_task_id', '=', record.id)], limit=1)
|
||||
</field>
|
||||
|
||||
@@ -24,17 +24,18 @@
|
||||
# qty = rec.product_packaging.qty
|
||||
# qty_up = (qty - 0.1)
|
||||
|
||||
# Change
|
||||
# Set factor
|
||||
factor_xs = 6
|
||||
if delivery_name == 'Gebinde':
|
||||
factor = 6
|
||||
factor_xs = 6
|
||||
elif delivery_name == 'Gebinde Migros':
|
||||
factor = 4
|
||||
factor_xs = 6
|
||||
|
||||
if rec.product_packaging.name == "Schale Gross":
|
||||
rec['x_count_boxes'] = (rec.quantity_done/4 + 2.4)/2.5
|
||||
|
||||
elif rec.product_packaging.name == "Schale Klein":
|
||||
rec['x_count_boxes'] = (rec.quantity_done/factor + 0.9)/1
|
||||
rec['x_count_boxes'] = (rec.quantity_done/factor_xs + 0.9)/1
|
||||
|
||||
elif rec.product_packaging.name == "Vakuum Gross":
|
||||
rec['x_count_boxes'] = (rec.quantity_done/4 + 2.4)/2.5
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_production_id" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Fertigungsauftrag</field>
|
||||
<field name="model">stock.production.lot</field>
|
||||
<field name="model_id" ref="stock.model_stock_production_lot"/>
|
||||
<field name="name">x_production_id</field>
|
||||
<field name="store" eval="False"/>
|
||||
<field name="readonly" eval="True"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">char</field>
|
||||
<field name="depends">x_production_ids</field>
|
||||
<field name="compute">for rec in self:
|
||||
if rec.x_production_ids:
|
||||
rec['x_production_id'] = rec.x_production_ids[0].name.split('-')[0]
|
||||
else:
|
||||
rec['x_production_id'] = ''
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_production_ids" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Fertigungsaufträge</field>
|
||||
<field name="model">stock.production.lot</field>
|
||||
<field name="model_id" ref="stock.model_stock_production_lot"/>
|
||||
<field name="name">x_production_ids</field>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="True"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">One2many</field>
|
||||
<field name="relation">mrp.production</field>
|
||||
<field name="relation_field">lot_producing_id</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_weight_uom" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Nettogewicht [kg]</field>
|
||||
<field name="model">stock.production.lot</field>
|
||||
<field name="model_id" ref="stock.model_stock_production_lot"/>
|
||||
<field name="name">x_weight_uom</field>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="True"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">float</field>
|
||||
<field name="depends">product_qty, product_id.weight, product_id.weight_uom_id</field>
|
||||
<field name="compute">for record in self:
|
||||
record['x_weight_uom'] = record.product_qty * record.product_id.product_tmpl_id.weight_uom_id._compute_quantity(record.product_id.weight, self.env.ref('uom.product_uom_kgm'))
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="l10n_ch_qr_isr_invoice_import.account_invoice_import_form" priority="50">
|
||||
|
||||
<field name="partner_id" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['|',('scan_type', '!=', 'qr'), ('state', '!=', 'select-partner')], 'invisible': [('state', 'in', ('import', 'reference-update'))]}</attribute>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
prev: ./snippets.md
|
||||
---
|
||||
# L10n Ch Qr Isr Invoice Import
|
||||
## Account Invoice Import Form
|
||||
### Show Partner Id
|
||||
ID: `mint_system.l10n_ch_qr_isr_invoice_import.account_invoice_import_form.show_partner_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="l10n_ch_qr_isr_invoice_import.account_invoice_import_form" priority="50">
|
||||
|
||||
<field name="partner_id" position="attributes">
|
||||
<attribute name="attrs">{'readonly': ['|',('scan_type', '!=', 'qr'), ('state', '!=', 'select-partner')], 'invisible': [('state', 'in', ('import', 'reference-update'))]}</attribute>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/l10n_ch_qr_isr_invoice_import.account_invoice_import_form.show_partner_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/l10n_ch_qr_isr_invoice_import.account_invoice_import_form.show_partner_id.xml)
|
||||
|
||||
@@ -332,3 +332,39 @@ ID: `mint_system.mail.mail_notification_paynow.white_background`
|
||||
```
|
||||
Source: [snippets/mail.mail_notification_paynow.white_background.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_paynow.white_background.xml)
|
||||
|
||||
## Message Activity Assigned
|
||||
### Redirect Access Link
|
||||
ID: `mint_system.mail.message_activity_assigned.redirect_access_link`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mail.message_activity_assigned" priority="50">
|
||||
|
||||
<xpath expr="//p[1]" position="replace">
|
||||
<p style="margin: 16px 0px 16px 0px;">
|
||||
<span t-esc="activity._name" />
|
||||
<span t-esc="activity.id" />
|
||||
<a t-att-href="access_link" t-att-data-oe-model="activity._name" t-att-data-oe-id="activity.id" style="background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;">
|
||||
View Activity
|
||||
</a>
|
||||
<a href="#" t-att-data-oe-model="activity._name" t-att-data-oe-id="activity.id">
|
||||
View Activity
|
||||
</a>
|
||||
</p>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/mail.message_activity_assigned.redirect_access_link.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.message_activity_assigned.redirect_access_link.xml)
|
||||
|
||||
### Remove Access Link
|
||||
ID: `mint_system.mail.message_activity_assigned.remove_access_link`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mail.message_activity_assigned" priority="50">
|
||||
|
||||
<xpath expr="//p[1]" position="replace" />
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/mail.message_activity_assigned.remove_access_link.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.message_activity_assigned.remove_access_link.xml)
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mail.message_activity_assigned" priority="50">
|
||||
|
||||
<xpath expr="//p[1]" position="replace">
|
||||
<p style="margin: 16px 0px 16px 0px;">
|
||||
<span t-esc="activity._name" />
|
||||
<span t-esc="activity.id" />
|
||||
<a t-att-href="access_link" t-att-data-oe-model="activity._name" t-att-data-oe-id="activity.id" style="background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;">
|
||||
View Activity
|
||||
</a>
|
||||
<a href="#" t-att-data-oe-model="activity._name" t-att-data-oe-id="activity.id">
|
||||
View Activity
|
||||
</a>
|
||||
</p>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mail.message_activity_assigned" priority="50">
|
||||
|
||||
<xpath expr="//p[1]" position="replace" />
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,215 @@
|
||||
<t t-name="mrp.label_production_view_pdf.basis57">
|
||||
<t t-call="web.basic_layout">
|
||||
<style>
|
||||
.external-ref {
|
||||
font-size: 14mm;
|
||||
}
|
||||
.box.external-ref {
|
||||
font-size: 20mm;
|
||||
}
|
||||
.title {
|
||||
font-size: 12mm;
|
||||
}
|
||||
.address {
|
||||
font-size: 10mm;
|
||||
}
|
||||
.box.address {
|
||||
font-size: 14mm;
|
||||
}
|
||||
.barcode {
|
||||
font-size: 6mm;
|
||||
}
|
||||
.default {
|
||||
font-size: 7mm;
|
||||
}
|
||||
.footer {
|
||||
font-size: 7mm;
|
||||
}
|
||||
div.label {
|
||||
line-height: 1.2;
|
||||
text-align: center;
|
||||
}
|
||||
br {
|
||||
font-size: 2mm;
|
||||
}
|
||||
.space-right {
|
||||
margin-right: 2mm
|
||||
}
|
||||
.space-left {
|
||||
margin-left: 2mm
|
||||
}
|
||||
.address-space-right {
|
||||
padding-right: 3mm
|
||||
}
|
||||
svg {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
margin-top: 10px
|
||||
}
|
||||
</style>
|
||||
|
||||
<t t-foreach="docs" t-as="production">
|
||||
<t t-foreach="production.move_finished_ids.filtered(lambda m: m.quantity_done > 0)" t-as="move">
|
||||
|
||||
<!--Set default values-->
|
||||
<t t-set="count_boxes" t-value="0" />
|
||||
<t t-set="count_labels" t-value="0" />
|
||||
<t t-set="temperature" t-value="2" />
|
||||
<t t-set="today" t-value="context_timestamp(datetime.datetime.now())" />
|
||||
<t t-set="print_weight" t-value="False" />
|
||||
<t t-set="packaging" t-value="move.product_id.packaging_ids[0]" />
|
||||
<t t-set="print_header" t-value="True" />
|
||||
<t t-set="print_delivery_date_only" t-value="False" />
|
||||
|
||||
<!--Print report for each move line-->
|
||||
<t t-set="move_lines" t-value="move.move_line_ids.filtered(lambda l: l.qty_done > 0)" />
|
||||
<t t-foreach="move_lines" t-as="move_line">
|
||||
|
||||
<!--Select loop based product packaing -->
|
||||
<t t-if="move.product_packaging.name == 'Schale Klein'">
|
||||
<t t-set="fix_weight">1'000g</t>
|
||||
<t t-set="count_labels" t-value="move_line.qty_done" />
|
||||
</t>
|
||||
<t t-if="move.product_packaging.name == 'Schale Gross'">
|
||||
<t t-set="fix_weight">2'500g</t>
|
||||
<t t-set="count_labels" t-value="move_line.qty_done/packaging.qty" />
|
||||
</t>
|
||||
<t t-if="move.product_packaging.name == 'Kiste'">
|
||||
<t t-set="print_weight" t-value="True" />
|
||||
</t>
|
||||
<t t-if="move.product_packaging.name == 'Vakuum Klein'">
|
||||
<t t-set="fix_weight">1'000g</t>
|
||||
|
||||
<t t-set="count_labels" t-value="move_line.qty_done" />
|
||||
</t>
|
||||
<t t-if="move.product_packaging.name == 'Vakuum Gross'">
|
||||
<t t-set="fix_weight">2'500g</t>
|
||||
<t t-set="count_labels" t-value="move_line.qty_done/packaging.qty" />
|
||||
</t>
|
||||
<t t-if="move.product_packaging.name == 'Karton'">
|
||||
<t t-set="fix_weight">5'000g</t>
|
||||
<t t-set="count_boxes" t-value="1" />
|
||||
</t>
|
||||
|
||||
<!--Compute box count-->
|
||||
<t t-if="count_boxes == 0">
|
||||
<t t-set="count_boxes" t-value="int(((move_line.qty_done + 0.1) / move.quantity_done) * move.x_count_boxes)" />
|
||||
</t>
|
||||
<t t-set="count_pages" t-value="int(count_labels + count_boxes)" />
|
||||
|
||||
<!--Print report for each label and box count-->
|
||||
<t t-foreach="range(0, count_pages)" t-as="page">
|
||||
|
||||
<!--First print normal labels and then box labels-->
|
||||
<t t-if="page_index >= (count_pages-count_boxes)">
|
||||
<t t-set="fix_weight"></t>
|
||||
<t t-if="external_ref">
|
||||
<t t-set="print_header" t-value="False" />
|
||||
<t t-set="print_delivery_date_only" t-value="True" />
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<!--Caclulate default expiration date-->
|
||||
<t t-set="delta" t-value="datetime.timedelta(days=move.product_id.x_expiration_days)" />
|
||||
<t t-set="consume_until" t-value="today + delta" />
|
||||
|
||||
<!--Caclulate expiration date from settings-->
|
||||
<t t-if="move.product_id.use_expiration_date">
|
||||
<t t-set="delta" t-value="datetime.timedelta(days=move.product_id.expiration_time)" />
|
||||
<t t-set="consume_until" t-value="context_timestamp(move_line.lot_id.removal_date)" />
|
||||
<t t-set="today" t-value="consume_until - delta" />
|
||||
</t>
|
||||
|
||||
<div class="page">
|
||||
<div class="label">
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<t t-if="print_header">
|
||||
<span class="text-uppercase use-font-opensans-medium title">Gotthard-Zander</span>
|
||||
<br />
|
||||
<span class="text-uppercase use-font-opensans-bold title" t-esc="move.product_id.name" />
|
||||
<t t-if="move.product_id.x_calibre">
|
||||
<span class="use-font-opensans-medium default space-left" t-esc="move.product_id.x_calibre" />
|
||||
</t>
|
||||
<br />
|
||||
<span class="use-font-opensans-medium default">(Sander lucioperca) in Aquakultur gewonnen</span>
|
||||
<br />
|
||||
<t t-if="fix_weight or print_weight">
|
||||
<span class="use-font-opensans-medium default">Gewicht: </span>
|
||||
<span class="use-font-opensans-medium default" t-if="not print_weight" t-esc="fix_weight" />
|
||||
<span class="use-font-opensans-medium default" t-if="print_weight" t-esc="move.quantity_done *1000" t-options='{"widget": "float", "precision": 0}' />
|
||||
<span class="use-font-opensans-medium default" t-if="print_weight">
|
||||
g zu
|
||||
<span t-esc="move.x_count_boxes" />
|
||||
Kisten
|
||||
</span>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<t t-if="not print_delivery_date_only">
|
||||
<span class="use-font-opensans-medium default">Verpackt am: </span>
|
||||
<span class="use-font-opensans-medium default" t-esc="today.strftime('%d.%m.%Y')" />
|
||||
<br />
|
||||
<span class="use-font-opensans-medium default">Zu verbrauchen bis: </span>
|
||||
<span class="use-font-opensans-medium default" t-esc="consume_until.strftime('%d.%m.%Y')" />
|
||||
<br />
|
||||
<span class="use-font-opensans-medium default">
|
||||
Aufbewahrung: bei
|
||||
<span t-esc="move.product_id.x_storage_temperature" />
|
||||
°C
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="print_delivery_date_only">
|
||||
<span class="use-font-opensans-medium address">Lieferdatum: </span>
|
||||
<span class="use-font-opensans-medium address" t-esc="picking.scheduled_date.strftime('%d.%m.%Y')" />
|
||||
<br />
|
||||
</t>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<t t-if="move_line.lot_id.name">
|
||||
<t t-set="barcode" t-value="move.product_packaging.barcode" />
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('EAN13', barcode, 600, 50)" alt="Barcode" />
|
||||
<br />
|
||||
<span class="use-font-opensans-medium barcode" t-esc="'%s %s %s' % (barcode[0], barcode[1:8], barcode[8:])" />
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span class="use-font-opensans-medium default text-muted">No barcode available</span>
|
||||
</t>
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<span class="text-uppercase use-font-opensans-bold default">Gotthard-Zander</span>
|
||||
<span class="use-font-opensans-bold default"> by Basis57</span>
|
||||
<br />
|
||||
<br />
|
||||
<span class="use-font-opensans-medium footer" t-field="res_company.street" />
|
||||
<span class="use-font-opensans-medium footer space-right">,</span>
|
||||
<span class="use-font-opensans-medium footer space-right" t-field="res_company.zip" />
|
||||
<span class="use-font-opensans-medium footer" t-field="res_company.city" />
|
||||
<br />
|
||||
<span class="use-font-opensans-medium footer">www.gotthard-zander.ch</span>
|
||||
<svg viewBox="0 0 150 100" width="150" height="100">
|
||||
<ellipse style="stroke: rgb(0, 0, 0); fill: none; stroke-width: 4px;" cx="75" cy="49.556" rx="70" ry="45" data-bx-origin="-1.166667 -2"></ellipse>
|
||||
<text style="fill: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; text-anchor: middle; white-space: pre;" data-bx-origin="-1.600941 -3.727571" transform="matrix(1.475051, 0, 0, 1.713593, -78.134323, -123.083534)"><tspan x="102.8" y="96.183">CH</tspan><tspan x="102.8" dy="1em"></tspan><tspan>71758556</tspan></text>
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
<p style="page-break-before:always;" />
|
||||
</div>
|
||||
|
||||
</t>
|
||||
</t>
|
||||
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
+266
@@ -3,6 +3,227 @@ prev: ./snippets.md
|
||||
---
|
||||
# Mrp
|
||||
## Label Production View Pdf
|
||||
### Basis57
|
||||
ID: `mint_system.mrp.label_production_view_pdf.basis57`
|
||||
```xml
|
||||
<t t-name="mrp.label_production_view_pdf.basis57">
|
||||
<t t-call="web.basic_layout">
|
||||
<style>
|
||||
.external-ref {
|
||||
font-size: 14mm;
|
||||
}
|
||||
.box.external-ref {
|
||||
font-size: 20mm;
|
||||
}
|
||||
.title {
|
||||
font-size: 12mm;
|
||||
}
|
||||
.address {
|
||||
font-size: 10mm;
|
||||
}
|
||||
.box.address {
|
||||
font-size: 14mm;
|
||||
}
|
||||
.barcode {
|
||||
font-size: 6mm;
|
||||
}
|
||||
.default {
|
||||
font-size: 7mm;
|
||||
}
|
||||
.footer {
|
||||
font-size: 7mm;
|
||||
}
|
||||
div.label {
|
||||
line-height: 1.2;
|
||||
text-align: center;
|
||||
}
|
||||
br {
|
||||
font-size: 2mm;
|
||||
}
|
||||
.space-right {
|
||||
margin-right: 2mm
|
||||
}
|
||||
.space-left {
|
||||
margin-left: 2mm
|
||||
}
|
||||
.address-space-right {
|
||||
padding-right: 3mm
|
||||
}
|
||||
svg {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
margin-top: 10px
|
||||
}
|
||||
</style>
|
||||
|
||||
<t t-foreach="docs" t-as="production">
|
||||
<t t-foreach="production.move_finished_ids.filtered(lambda m: m.quantity_done > 0)" t-as="move">
|
||||
|
||||
<!--Set default values-->
|
||||
<t t-set="count_boxes" t-value="0" />
|
||||
<t t-set="count_labels" t-value="0" />
|
||||
<t t-set="temperature" t-value="2" />
|
||||
<t t-set="today" t-value="context_timestamp(datetime.datetime.now())" />
|
||||
<t t-set="print_weight" t-value="False" />
|
||||
<t t-set="packaging" t-value="move.product_id.packaging_ids[0]" />
|
||||
<t t-set="print_header" t-value="True" />
|
||||
<t t-set="print_delivery_date_only" t-value="False" />
|
||||
|
||||
<!--Print report for each move line-->
|
||||
<t t-set="move_lines" t-value="move.move_line_ids.filtered(lambda l: l.qty_done > 0)" />
|
||||
<t t-foreach="move_lines" t-as="move_line">
|
||||
|
||||
<!--Select loop based product packaing -->
|
||||
<t t-if="move.product_packaging.name == 'Schale Klein'">
|
||||
<t t-set="fix_weight">1'000g</t>
|
||||
<t t-set="count_labels" t-value="move_line.qty_done" />
|
||||
</t>
|
||||
<t t-if="move.product_packaging.name == 'Schale Gross'">
|
||||
<t t-set="fix_weight">2'500g</t>
|
||||
<t t-set="count_labels" t-value="move_line.qty_done/packaging.qty" />
|
||||
</t>
|
||||
<t t-if="move.product_packaging.name == 'Kiste'">
|
||||
<t t-set="print_weight" t-value="True" />
|
||||
</t>
|
||||
<t t-if="move.product_packaging.name == 'Vakuum Klein'">
|
||||
<t t-set="fix_weight">1'000g</t>
|
||||
|
||||
<t t-set="count_labels" t-value="move_line.qty_done" />
|
||||
</t>
|
||||
<t t-if="move.product_packaging.name == 'Vakuum Gross'">
|
||||
<t t-set="fix_weight">2'500g</t>
|
||||
<t t-set="count_labels" t-value="move_line.qty_done/packaging.qty" />
|
||||
</t>
|
||||
<t t-if="move.product_packaging.name == 'Karton'">
|
||||
<t t-set="fix_weight">5'000g</t>
|
||||
<t t-set="count_boxes" t-value="1" />
|
||||
</t>
|
||||
|
||||
<!--Compute box count-->
|
||||
<t t-if="count_boxes == 0">
|
||||
<t t-set="count_boxes" t-value="int(((move_line.qty_done + 0.1) / move.quantity_done) * move.x_count_boxes)" />
|
||||
</t>
|
||||
<t t-set="count_pages" t-value="int(count_labels + count_boxes)" />
|
||||
|
||||
<!--Print report for each label and box count-->
|
||||
<t t-foreach="range(0, count_pages)" t-as="page">
|
||||
|
||||
<!--First print normal labels and then box labels-->
|
||||
<t t-if="page_index >= (count_pages-count_boxes)">
|
||||
<t t-set="fix_weight"></t>
|
||||
<t t-if="external_ref">
|
||||
<t t-set="print_header" t-value="False" />
|
||||
<t t-set="print_delivery_date_only" t-value="True" />
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<!--Caclulate default expiration date-->
|
||||
<t t-set="delta" t-value="datetime.timedelta(days=move.product_id.x_expiration_days)" />
|
||||
<t t-set="consume_until" t-value="today + delta" />
|
||||
|
||||
<!--Caclulate expiration date from settings-->
|
||||
<t t-if="move.product_id.use_expiration_date">
|
||||
<t t-set="delta" t-value="datetime.timedelta(days=move.product_id.expiration_time)" />
|
||||
<t t-set="consume_until" t-value="context_timestamp(move_line.lot_id.removal_date)" />
|
||||
<t t-set="today" t-value="consume_until - delta" />
|
||||
</t>
|
||||
|
||||
<div class="page">
|
||||
<div class="label">
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<t t-if="print_header">
|
||||
<span class="text-uppercase use-font-opensans-medium title">Gotthard-Zander</span>
|
||||
<br />
|
||||
<span class="text-uppercase use-font-opensans-bold title" t-esc="move.product_id.name" />
|
||||
<t t-if="move.product_id.x_calibre">
|
||||
<span class="use-font-opensans-medium default space-left" t-esc="move.product_id.x_calibre" />
|
||||
</t>
|
||||
<br />
|
||||
<span class="use-font-opensans-medium default">(Sander lucioperca) in Aquakultur gewonnen</span>
|
||||
<br />
|
||||
<t t-if="fix_weight or print_weight">
|
||||
<span class="use-font-opensans-medium default">Gewicht: </span>
|
||||
<span class="use-font-opensans-medium default" t-if="not print_weight" t-esc="fix_weight" />
|
||||
<span class="use-font-opensans-medium default" t-if="print_weight" t-esc="move.quantity_done *1000" t-options='{"widget": "float", "precision": 0}' />
|
||||
<span class="use-font-opensans-medium default" t-if="print_weight">
|
||||
g zu
|
||||
<span t-esc="move.x_count_boxes" />
|
||||
Kisten
|
||||
</span>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<t t-if="not print_delivery_date_only">
|
||||
<span class="use-font-opensans-medium default">Verpackt am: </span>
|
||||
<span class="use-font-opensans-medium default" t-esc="today.strftime('%d.%m.%Y')" />
|
||||
<br />
|
||||
<span class="use-font-opensans-medium default">Zu verbrauchen bis: </span>
|
||||
<span class="use-font-opensans-medium default" t-esc="consume_until.strftime('%d.%m.%Y')" />
|
||||
<br />
|
||||
<span class="use-font-opensans-medium default">
|
||||
Aufbewahrung: bei
|
||||
<span t-esc="move.product_id.x_storage_temperature" />
|
||||
°C
|
||||
</span>
|
||||
</t>
|
||||
<t t-if="print_delivery_date_only">
|
||||
<span class="use-font-opensans-medium address">Lieferdatum: </span>
|
||||
<span class="use-font-opensans-medium address" t-esc="picking.scheduled_date.strftime('%d.%m.%Y')" />
|
||||
<br />
|
||||
</t>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<t t-if="move_line.lot_id.name">
|
||||
<t t-set="barcode" t-value="move.product_packaging.barcode" />
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('EAN13', barcode, 600, 50)" alt="Barcode" />
|
||||
<br />
|
||||
<span class="use-font-opensans-medium barcode" t-esc="'%s %s %s' % (barcode[0], barcode[1:8], barcode[8:])" />
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span class="use-font-opensans-medium default text-muted">No barcode available</span>
|
||||
</t>
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<span class="text-uppercase use-font-opensans-bold default">Gotthard-Zander</span>
|
||||
<span class="use-font-opensans-bold default"> by Basis57</span>
|
||||
<br />
|
||||
<br />
|
||||
<span class="use-font-opensans-medium footer" t-field="res_company.street" />
|
||||
<span class="use-font-opensans-medium footer space-right">,</span>
|
||||
<span class="use-font-opensans-medium footer space-right" t-field="res_company.zip" />
|
||||
<span class="use-font-opensans-medium footer" t-field="res_company.city" />
|
||||
<br />
|
||||
<span class="use-font-opensans-medium footer">www.gotthard-zander.ch</span>
|
||||
<svg viewBox="0 0 150 100" width="150" height="100">
|
||||
<ellipse style="stroke: rgb(0, 0, 0); fill: none; stroke-width: 4px;" cx="75" cy="49.556" rx="70" ry="45" data-bx-origin="-1.166667 -2"></ellipse>
|
||||
<text style="fill: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; text-anchor: middle; white-space: pre;" data-bx-origin="-1.600941 -3.727571" transform="matrix(1.475051, 0, 0, 1.713593, -78.134323, -123.083534)"><tspan x="102.8" y="96.183">CH</tspan><tspan x="102.8" dy="1em"></tspan><tspan>71758556</tspan></text>
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
<p style="page-break-before:always;" />
|
||||
</div>
|
||||
|
||||
</t>
|
||||
</t>
|
||||
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
```
|
||||
Source: [snippets/mrp.label_production_view_pdf.basis57.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mrp.label_production_view_pdf.basis57.xml)
|
||||
|
||||
### Trimada
|
||||
ID: `mint_system.mrp.label_production_view_pdf.trimada`
|
||||
```xml
|
||||
@@ -317,6 +538,21 @@ ID: `mint_system.mrp.mrp_production_form_view.add_date_deadline`
|
||||
```
|
||||
Source: [snippets/mrp.mrp_production_form_view.add_date_deadline.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mrp.mrp_production_form_view.add_date_deadline.xml)
|
||||
|
||||
### Finished Move Line Ids
|
||||
ID: `mint_system.mrp.mrp_production_form_view.finished_move_line_ids`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mrp.mrp_production_form_view" priority="50">
|
||||
|
||||
<field name="bom_id" position="before">
|
||||
<field name="finished_move_line_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/mrp.mrp_production_form_view.finished_move_line_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mrp.mrp_production_form_view.finished_move_line_ids.xml)
|
||||
|
||||
### Hide Date Deadline
|
||||
ID: `mint_system.mrp.mrp_production_form_view.hide_date_deadline`
|
||||
```xml
|
||||
@@ -332,6 +568,21 @@ ID: `mint_system.mrp.mrp_production_form_view.hide_date_deadline`
|
||||
```
|
||||
Source: [snippets/mrp.mrp_production_form_view.hide_date_deadline.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mrp.mrp_production_form_view.hide_date_deadline.xml)
|
||||
|
||||
### Move Finished Ids
|
||||
ID: `mint_system.mrp.mrp_production_form_view.move_finished_ids`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mrp.mrp_production_form_view" priority="50">
|
||||
|
||||
<field name="bom_id" position="before">
|
||||
<field name="move_finished_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/mrp.mrp_production_form_view.move_finished_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mrp.mrp_production_form_view.move_finished_ids.xml)
|
||||
|
||||
### Replace Workorder Tree View
|
||||
ID: `mint_system.mrp.mrp_production_form_view.replace_workorder_tree_view`
|
||||
```xml
|
||||
@@ -412,6 +663,21 @@ ID: `mint_system.mrp.mrp_production_form_view.show_date_planned_finished`
|
||||
```
|
||||
Source: [snippets/mrp.mrp_production_form_view.show_date_planned_finished.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mrp.mrp_production_form_view.show_date_planned_finished.xml)
|
||||
|
||||
### Show Move Dest Ids
|
||||
ID: `mint_system.mrp.mrp_production_form_view.show_move_dest_ids`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mrp.mrp_production_form_view" priority="50">
|
||||
|
||||
<field name="bom_id" position="before">
|
||||
<field name="move_dest_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/mrp.mrp_production_form_view.show_move_dest_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mrp.mrp_production_form_view.show_move_dest_ids.xml)
|
||||
|
||||
### Show X Date Deadline
|
||||
ID: `mint_system.mrp.mrp_production_form_view.show_x_date_deadline`
|
||||
```xml
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mrp.mrp_production_form_view" priority="50">
|
||||
|
||||
<field name="bom_id" position="before">
|
||||
<field name="finished_move_line_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mrp.mrp_production_form_view" priority="50">
|
||||
|
||||
<field name="bom_id" position="before">
|
||||
<field name="move_finished_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mrp.mrp_production_form_view" priority="50">
|
||||
|
||||
<field name="bom_id" position="before">
|
||||
<field name="move_dest_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
+20
-1
@@ -54,7 +54,7 @@ ID: `mint_system.product.product_packaging_tree_view.show_barcode`
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="product.product_packaging_tree_view" priority="50">
|
||||
|
||||
<field name="name" position="after">
|
||||
<field name="product_id" position="after">
|
||||
<field name="barcode" optional="show"/>
|
||||
</field>
|
||||
|
||||
@@ -76,6 +76,25 @@ ID: `mint_system.product.product_packaging_tree_view.x_description`
|
||||
```
|
||||
Source: [snippets/product.product_packaging_tree_view.x_description.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_packaging_tree_view.x_description.xml)
|
||||
|
||||
## Product Pricelist Item Tree View
|
||||
### Make Editable
|
||||
ID: `mint_system.product.product_pricelist_item_tree_view.make_editable`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="product.product_pricelist_item_tree_view" priority="50">
|
||||
|
||||
<tree position="attributes">
|
||||
<attribute name="editable">bottom</attribute>
|
||||
</tree>
|
||||
|
||||
<field name="price" position="after">
|
||||
<field name="fixed_price" />
|
||||
</field>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/product.product_pricelist_item_tree_view.make_editable.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_pricelist_item_tree_view.make_editable.xml)
|
||||
|
||||
## Product Pricelist View
|
||||
### Show Product
|
||||
ID: `mint_system.product.product_pricelist_view.show_product`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="product.product_packaging_tree_view" priority="50">
|
||||
|
||||
<field name="name" position="after">
|
||||
<field name="product_id" position="after">
|
||||
<field name="barcode" optional="show"/>
|
||||
</field>
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="product.product_pricelist_item_tree_view" priority="50">
|
||||
|
||||
<tree position="attributes">
|
||||
<attribute name="editable">bottom</attribute>
|
||||
</tree>
|
||||
|
||||
<field name="price" position="after">
|
||||
<field name="fixed_price" />
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -2,6 +2,38 @@
|
||||
prev: ./snippets.md
|
||||
---
|
||||
# Project
|
||||
## View Project
|
||||
### Disable Create
|
||||
ID: `mint_system.project.view_project.disable_create`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="project.view_project" priority="50">
|
||||
|
||||
<xpath expr="//tree" position="attributes">
|
||||
<attribute name="create">0</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/project.view_project.disable_create.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/project.view_project.disable_create.xml)
|
||||
|
||||
## View Project Kanban
|
||||
### Disable Create
|
||||
ID: `mint_system.project.view_project_kanban.disable_create`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="project.view_project_kanban" priority="50">
|
||||
|
||||
<xpath expr="//kanban" position="attributes">
|
||||
<attribute name="create">0</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/project.view_project_kanban.disable_create.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/project.view_project_kanban.disable_create.xml)
|
||||
|
||||
## View Task Form2
|
||||
### Parent Domain
|
||||
ID: `mint_system.project.view_task_form2.parent_domain`
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="project.view_project" priority="50">
|
||||
|
||||
<xpath expr="//tree" position="attributes">
|
||||
<attribute name="create">0</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="project.view_project_kanban" priority="50">
|
||||
|
||||
<xpath expr="//kanban" position="attributes">
|
||||
<attribute name="create">0</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
+12
-14
@@ -1229,6 +1229,7 @@ ID: `mint_system.purchase.report_purchasequotation_document.add_infotable`
|
||||
width: 100%;
|
||||
margin-bottom: 25px;
|
||||
font-size: 9pt;
|
||||
font-family: arial;
|
||||
}
|
||||
table#info tr {
|
||||
line-height: 1.2;
|
||||
@@ -1240,49 +1241,46 @@ ID: `mint_system.purchase.report_purchasequotation_document.add_infotable`
|
||||
</style>
|
||||
<table id='info'>
|
||||
<tr>
|
||||
<td width="17%">Anfragedatum</td>
|
||||
<td width="17%">Date</td>
|
||||
<td width="44%">
|
||||
<span t-field='o.date_order' t-options='{ "widget": "date" }'/>
|
||||
<span t-field='o.ordering_date' t-options='{ "widget": "date" }'/>
|
||||
</td>
|
||||
<td width="14%"></td>
|
||||
<td width="25%"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kunden-Nr.</td>
|
||||
<td>Customer No.</td>
|
||||
<td>
|
||||
<span t-field='o.partner_id.ref'/>
|
||||
<span t-field='o.vendor_id.ref'/>
|
||||
</td>
|
||||
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<span t-field='o.partner_ref'/>
|
||||
</td>
|
||||
<td>U/Referenz</td>
|
||||
<td>Our Reference</td>
|
||||
<td>
|
||||
<span t-field='o.user_id'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Referenz</td>
|
||||
<td>Reference</td>
|
||||
<td>
|
||||
<span t-field='o.comment'/>
|
||||
</td>
|
||||
<td>Lieferkondition</td>
|
||||
<td>Incoterm</td>
|
||||
<td>
|
||||
<span t-field='o.incoterm_id.code'/>
|
||||
<span t-field='o.incoterm_id'/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<t t-if="o.note_header != '<p><br></p>'">
|
||||
<span class="note" t-field="o.note_header"/>
|
||||
</t>
|
||||
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase.report_purchasequotation_document.add_infotable.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase.report_purchasequotation_document.add_infotable.xml)
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
width: 100%;
|
||||
margin-bottom: 25px;
|
||||
font-size: 9pt;
|
||||
font-family: arial;
|
||||
}
|
||||
table#info tr {
|
||||
line-height: 1.2;
|
||||
@@ -18,46 +19,43 @@
|
||||
</style>
|
||||
<table id='info'>
|
||||
<tr>
|
||||
<td width="17%">Anfragedatum</td>
|
||||
<td width="17%">Date</td>
|
||||
<td width="44%">
|
||||
<span t-field='o.date_order' t-options='{ "widget": "date" }'/>
|
||||
<span t-field='o.ordering_date' t-options='{ "widget": "date" }'/>
|
||||
</td>
|
||||
<td width="14%"></td>
|
||||
<td width="25%"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Kunden-Nr.</td>
|
||||
<td>Customer No.</td>
|
||||
<td>
|
||||
<span t-field='o.partner_id.ref'/>
|
||||
<span t-field='o.vendor_id.ref'/>
|
||||
</td>
|
||||
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<span t-field='o.partner_ref'/>
|
||||
</td>
|
||||
<td>U/Referenz</td>
|
||||
<td>Our Reference</td>
|
||||
<td>
|
||||
<span t-field='o.user_id'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Referenz</td>
|
||||
<td>Reference</td>
|
||||
<td>
|
||||
<span t-field='o.comment'/>
|
||||
</td>
|
||||
<td>Lieferkondition</td>
|
||||
<td>Incoterm</td>
|
||||
<td>
|
||||
<span t-field='o.incoterm_id.code'/>
|
||||
<span t-field='o.incoterm_id'/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<t t-if="o.note_header != '<p><br></p>'">
|
||||
<span class="note" t-field="o.note_header"/>
|
||||
</t>
|
||||
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
</data>
|
||||
@@ -72,6 +72,66 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_drawing`
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_drawing.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_drawing.xml)
|
||||
|
||||
### Add Footer
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_footer`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//table[@id='main_table']" position="after">
|
||||
|
||||
<style>
|
||||
table#footer {
|
||||
width: 100%;
|
||||
font-size: 8pt;
|
||||
}
|
||||
table#footer tr, td {
|
||||
vertical-align: top;
|
||||
}
|
||||
</style>
|
||||
<table id='footer'>
|
||||
<tr>
|
||||
<td width="50%" t-if="o.payment_term_id.note">Zahlungsbedingungen
|
||||
<span t-field="o.payment_term_id.note"/>
|
||||
</td>
|
||||
<td width="50%">
|
||||
Lieferung gemäss unseren allgemeinen Einkaufsbedingungen
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td >MWST-Nr:
|
||||
<span t-field="o.company_id.vat"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_footer.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_footer.xml)
|
||||
|
||||
### Add Header And Footer Note
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_header_and_footer_note`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//table[@id='info']" position="after">
|
||||
<t t-if="o.note_header != '<p><br></p>'">
|
||||
<span class="note" t-field="o.note_header"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']" position="after">
|
||||
<t t-if="o.note_footer != '<p><br></p>'">
|
||||
<span class="note" t-field="o.note_footer"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_header_and_footer_note.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_header_and_footer_note.xml)
|
||||
|
||||
### Add Incoterm Id
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_incoterm_id`
|
||||
```xml
|
||||
@@ -104,11 +164,11 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_infotable`
|
||||
font-size: 9pt;
|
||||
font-family: arial;
|
||||
}
|
||||
table#info tr {
|
||||
table#info tr {
|
||||
line-height: 1.2;
|
||||
text-align: left;
|
||||
}
|
||||
.note {
|
||||
.note {
|
||||
font-size: 9pt;
|
||||
}
|
||||
</style>
|
||||
@@ -116,7 +176,7 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_infotable`
|
||||
<tr>
|
||||
<td width="17%">Date</td>
|
||||
<td width="44%">
|
||||
<span t-field='doc.date_confirmed' t-options='{ "widget": "date" }'/>
|
||||
<span t-field='o.ordering_date' t-options='{ "widget": "date" }'/>
|
||||
</td>
|
||||
<td width="14%"></td>
|
||||
<td width="25%"></td>
|
||||
@@ -124,31 +184,31 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_infotable`
|
||||
<tr>
|
||||
<td>Customer No.</td>
|
||||
<td>
|
||||
<span t-field='doc.partner_id.ref'/>
|
||||
<span t-field='o.vendor_id.ref'/>
|
||||
</td>
|
||||
<td>Our Reference</td>
|
||||
<td>
|
||||
<span t-field='doc.user_id'/>
|
||||
<span t-field='o.user_id'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Order</td>
|
||||
<td>
|
||||
<span t-field='doc.client_order_ref'/>
|
||||
<span t-field='o.partner_ref'/>
|
||||
</td>
|
||||
<td>Delivery Method</td>
|
||||
<td>
|
||||
<span t-field='doc.carrier_id'/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Reference</td>
|
||||
<td>
|
||||
<span t-field='doc.comment'/>
|
||||
<span t-field='o.comment'/>
|
||||
</td>
|
||||
<td>Incoterm</td>
|
||||
<td>
|
||||
<span t-field='doc.incoterm'/>
|
||||
<span t-field='o.incoterm_id'/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -159,6 +219,28 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_infotable`
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_infotable.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_infotable.xml)
|
||||
|
||||
### Add Price Unit
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_price_unit`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//th[@id='product_qty']" position="after">
|
||||
<th id="price_unit" class="text-right">
|
||||
<strong>Unit Price</strong>
|
||||
</th>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//td[@id='product_qty']" position="after">
|
||||
<td id="price_unit" class="text-right">
|
||||
<span t-field="line_ids.price_unit"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_price_unit.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_price_unit.xml)
|
||||
|
||||
### Add Product Uom Id
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_product_uom_id`
|
||||
```xml
|
||||
@@ -173,6 +255,23 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_product_uo
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_product_uom_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_product_uom_id.xml)
|
||||
|
||||
### Address Block
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.address_block`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//t/div/div[1]" position="before">
|
||||
<t t-set="o" t-value="o.with_context(lang=o.vendor_id.lang)"/>
|
||||
<t t-set="address">
|
||||
<div t-field="o.vendor_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.address_block.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.address_block.xml)
|
||||
|
||||
### Add User Id
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_user_id`
|
||||
```xml
|
||||
@@ -191,18 +290,35 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_user_id`
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_user_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_user_id.xml)
|
||||
|
||||
### Format Product Qty
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.format_product_qty`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//td[@id='product_qty']" position="replace">
|
||||
<td id="product_qty" class="text-right">
|
||||
<span id="qty" t-field="line_ids.product_qty"/>
|
||||
<span t-field="line_ids.product_uom_id"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.format_product_qty.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.format_product_qty.xml)
|
||||
|
||||
### Format Qty With Decimal
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.format_qty_with_decimal`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//span[@id='product_qty']" position="replace">
|
||||
<xpath expr="//span[@id='qty']" position="replace">
|
||||
<t t-if="line_ids.product_uom_id.id == 1">
|
||||
<span id="product_qty" t-field="line_ids.product_qty" t-options="{'widget': 'integer'}"/>
|
||||
<span id="qty" t-field="line_ids.product_qty" t-options="{'widget': 'integer'}"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span id="product_qty" t-field="line_ids.product_qty"/>
|
||||
<span id="qty" t-field="line_ids.product_qty"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
@@ -216,8 +332,12 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.hide_details`
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<!--
|
||||
<xpath expr="//div/t[2]" position="replace">
|
||||
</xpath>
|
||||
-->
|
||||
|
||||
<xpath expr="//table[@id='details']" position="replace"/>
|
||||
|
||||
</data>
|
||||
```
|
||||
@@ -236,18 +356,35 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.hide_origin`
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.hide_origin.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.hide_origin.xml)
|
||||
|
||||
### Hide Title H3
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.hide_title_h3`
|
||||
### Hide Product Uom
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.hide_product_uom`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//h3" position="replace">
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//th[@id='product_uom']" position="replace"/>
|
||||
<xpath expr="//td[@id='product_uom']" position="replace"/>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.hide_title_h3.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.hide_title_h3.xml)
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.hide_product_uom.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.hide_product_uom.xml)
|
||||
|
||||
### Hide Title Product
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.hide_title_product`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<!--
|
||||
<xpath expr="//h3" position="replace">
|
||||
</xpath>
|
||||
-->
|
||||
|
||||
<xpath expr="//h3[@id='title_product']" position="replace"/>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.hide_title_product.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.hide_title_product.xml)
|
||||
|
||||
### Hide Type Id
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.hide_type_id`
|
||||
@@ -262,6 +399,28 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.hide_type_id`
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.hide_type_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.hide_type_id.xml)
|
||||
|
||||
### Relocate Schedule Date
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.relocate_schedule_date`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//th[@id='schedule_date']" position="replace"/>
|
||||
<xpath expr="//td[@id='schedule_date']" position="replace"/>
|
||||
|
||||
<xpath expr="//th[@id='name']" position="after">
|
||||
<th class="text-right"><strong>Scheduled Date</strong></th>
|
||||
</xpath>
|
||||
<xpath expr="//td[@id='name']" position="after">
|
||||
<td class="text-right">
|
||||
<span t-field="line_ids.schedule_date"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.relocate_schedule_date.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.relocate_schedule_date.xml)
|
||||
|
||||
### Remove Informations
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.remove_informations`
|
||||
```xml
|
||||
@@ -291,6 +450,27 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.replace_name_w
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.replace_name_with_partner_ref.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.replace_name_with_partner_ref.xml)
|
||||
|
||||
### Replace Product Description
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.replace_product_description`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//td[@id='name']" position="replace">
|
||||
<td id="name" >
|
||||
<t t-if="o.product_id.type_description">
|
||||
<span style="font-weight: bold" t-field="o.product_id.type_description"/>
|
||||
</t>
|
||||
<t t-if="not o.product_id.type_description">
|
||||
<span t-field="o.product_id.name"/>
|
||||
</t>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.replace_product_description.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.replace_product_description.xml)
|
||||
|
||||
### Replace Product Uom Id With Schedule Date
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.replace_product_uom_id_with_schedule_date`
|
||||
```xml
|
||||
@@ -331,6 +511,89 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.replace_schedu
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.replace_schedule_date_with_price_unit.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.replace_schedule_date_with_price_unit.xml)
|
||||
|
||||
### Replace Title
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.replace_title`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//h2" position="replace">
|
||||
<t t-if="state_blanket_order == draft">
|
||||
<h2>Request for Quotation purchase contract <span t-field="o.name"/></h2>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<h2>Purchase contract <span t-field="o.name"/></h2>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.replace_title.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.replace_title.xml)
|
||||
|
||||
### Round Price
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.round_price`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//td[@id='price_unit']" position="replace">
|
||||
<td id="price_unit" class="text-right">
|
||||
<span t-esc="'%g' % line_ids.price_unit if str(line_ids.price_unit)[::-1].find('.') >= 3 else '%.2f' % line_ids.price_unit"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.round_price.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.round_price.xml)
|
||||
|
||||
### Second Row
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.second_row`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//tr[@id='first']" position="attributes">
|
||||
<attribute name="t-att-class">"first"</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//tr[@id='first']" position="after">
|
||||
<t t-if="o.product_id.type_description">
|
||||
<tr class="second">
|
||||
<td></td>
|
||||
<td colspan="5">
|
||||
<span t-field="o.product_id.name"/><br/>
|
||||
<t t-if="o.product_id.country_of_origin_id.code">
|
||||
Ursprungsland:
|
||||
<span t-field="o.product_id.country_of_origin_id.code" />
|
||||
</t>
|
||||
<t t-if="o.product_id.hs_code">
|
||||
/ Zollposition:
|
||||
<span t-field="o.product_id.hs_code" />
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="not o.product_id.type_description">
|
||||
<tr class="second">
|
||||
<td></td>
|
||||
<td colspan="5">
|
||||
<t t-if="o.product_id.country_of_origin_id.code">
|
||||
Ursprungsland:
|
||||
<span t-field="o.product_id.country_of_origin_id.code" />
|
||||
</t>
|
||||
<t t-if="o.product_id.hs_code">
|
||||
/ Zollposition:
|
||||
<span t-field="o.product_id.hs_code" />
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.second_row.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.second_row.xml)
|
||||
|
||||
### Sequence In Table
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.sequence_in_table`
|
||||
```xml
|
||||
@@ -370,11 +633,81 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.set_ids`
|
||||
<xpath expr="//span[@t-field='o.ordering_date']/../.." position="attributes">
|
||||
<attribute name="id">informations</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table" position="attributes">
|
||||
<attribute name="id">main_table</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[2]" position="attributes">
|
||||
<attribute name="id">details</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/h3" position="attributes">
|
||||
<attribute name="id">title_product</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/tbody/tr/td[1]" position="attributes">
|
||||
<attribute name="id">name</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/tbody/tr" position="attributes">
|
||||
<attribute name="id">first</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/thead/tr/th[1]" position="attributes">
|
||||
<attribute name="id">name</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/thead/tr/th[2]" position="attributes">
|
||||
<attribute name="id">product_qty</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/tbody/tr/td[2]" position="attributes">
|
||||
<attribute name="id">product_qty</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/thead/tr/th[3]" position="attributes">
|
||||
<attribute name="id">product_uom</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/tbody/tr/t/td" position="attributes">
|
||||
<attribute name="id">product_uom</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/thead/tr/th[4]" position="attributes">
|
||||
<attribute name="id">schedule_date</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/tbody/tr/td[3]" position="attributes">
|
||||
<attribute name="id">schedule_date</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.set_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.set_ids.xml)
|
||||
|
||||
### Show Default Code
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.show_default_code`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//table[@id='main_table']/thead/tr/th[1]" position="before">
|
||||
<th id="default_code">
|
||||
<strong >Part No.</strong>
|
||||
</th>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']/tbody/tr/td[1]" position="before">
|
||||
<td id="default_code">
|
||||
<span t-field="line_ids.product_id.default_code"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.report_purchaserequisitions.show_default_code.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.show_default_code.xml)
|
||||
|
||||
### Style Gelso
|
||||
ID: `mint_system.purchase_requisition.report_purchaserequisitions.style_gelso`
|
||||
```xml
|
||||
@@ -412,15 +745,57 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.style_trimada`
|
||||
<style>
|
||||
.o_company_1_layout {
|
||||
font-family: Arial;
|
||||
color: #000000;
|
||||
font-size: 9pt;
|
||||
}
|
||||
.address {
|
||||
padding-bottom:33mm;
|
||||
}
|
||||
h2 {
|
||||
margin-top:10mm;
|
||||
margin-bottom:3mm;
|
||||
font-size: 13pt;
|
||||
font-weight: bold;
|
||||
}
|
||||
.first td {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.second td {
|
||||
padding-top: 0;
|
||||
}
|
||||
.second {
|
||||
border-bottom: 1px solid rgb(220,220,220);
|
||||
}
|
||||
table.trimada thead tr {
|
||||
border-top:solid 1px;
|
||||
border-bottom: solid 1px;
|
||||
color: black;
|
||||
}
|
||||
table.trimada thead th#description {
|
||||
width: 70mm;
|
||||
}
|
||||
table.trimada tr.first td {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
table.trimada tr.second td {
|
||||
padding-top: 0;
|
||||
}
|
||||
table.trimada tr.second {
|
||||
border-bottom: 1px solid rgb(220,220,220);
|
||||
}
|
||||
table.trimada thead th#default_code {
|
||||
width: 27mm;
|
||||
text-align: left;
|
||||
}
|
||||
span#qty {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
</style>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']" position="attributes">
|
||||
<attribute name="class" separator=" " add="trimada table-borderless"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
@@ -470,6 +845,20 @@ ID: `mint_system.purchase_requisition.view_purchase_requisition_form.modify_attr
|
||||
```
|
||||
Source: [snippets/purchase_requisition.view_purchase_requisition_form.modify_attributes_origin.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.modify_attributes_origin.xml)
|
||||
|
||||
### Modify Attributes Type Id
|
||||
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.modify_attributes_type_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='type_id']" position="attributes">
|
||||
<attribute name="attrs">{'readonly': 1}</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/purchase_requisition.view_purchase_requisition_form.modify_attributes_type_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.modify_attributes_type_id.xml)
|
||||
|
||||
### Show Schedule Date In Notebook
|
||||
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.show_schedule_date_in_notebook`
|
||||
```xml
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//table[@id='main_table']" position="after">
|
||||
|
||||
<style>
|
||||
table#footer {
|
||||
width: 100%;
|
||||
font-size: 8pt;
|
||||
}
|
||||
table#footer tr, td {
|
||||
vertical-align: top;
|
||||
}
|
||||
</style>
|
||||
<table id='footer'>
|
||||
<tr>
|
||||
<td width="50%" t-if="o.payment_term_id.note">Zahlungsbedingungen
|
||||
<span t-field="o.payment_term_id.note"/>
|
||||
</td>
|
||||
<td width="50%">
|
||||
Lieferung gemäss unseren allgemeinen Einkaufsbedingungen
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td >MWST-Nr:
|
||||
<span t-field="o.company_id.vat"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//table[@id='info']" position="after">
|
||||
<t t-if="o.note_header != '<p><br></p>'">
|
||||
<span class="note" t-field="o.note_header"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']" position="after">
|
||||
<t t-if="o.note_footer != '<p><br></p>'">
|
||||
<span class="note" t-field="o.note_footer"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -9,11 +9,11 @@
|
||||
font-size: 9pt;
|
||||
font-family: arial;
|
||||
}
|
||||
table#info tr {
|
||||
table#info tr {
|
||||
line-height: 1.2;
|
||||
text-align: left;
|
||||
}
|
||||
.note {
|
||||
.note {
|
||||
font-size: 9pt;
|
||||
}
|
||||
</style>
|
||||
@@ -21,7 +21,7 @@
|
||||
<tr>
|
||||
<td width="17%">Date</td>
|
||||
<td width="44%">
|
||||
<span t-field='doc.date_confirmed' t-options='{ "widget": "date" }'/>
|
||||
<span t-field='o.ordering_date' t-options='{ "widget": "date" }'/>
|
||||
</td>
|
||||
<td width="14%"></td>
|
||||
<td width="25%"></td>
|
||||
@@ -29,31 +29,31 @@
|
||||
<tr>
|
||||
<td>Customer No.</td>
|
||||
<td>
|
||||
<span t-field='doc.partner_id.ref'/>
|
||||
<span t-field='o.vendor_id.ref'/>
|
||||
</td>
|
||||
<td>Our Reference</td>
|
||||
<td>
|
||||
<span t-field='doc.user_id'/>
|
||||
<span t-field='o.user_id'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Order</td>
|
||||
<td>
|
||||
<span t-field='doc.client_order_ref'/>
|
||||
<span t-field='o.partner_ref'/>
|
||||
</td>
|
||||
<td>Delivery Method</td>
|
||||
<td>
|
||||
<span t-field='doc.carrier_id'/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Reference</td>
|
||||
<td>
|
||||
<span t-field='doc.comment'/>
|
||||
<span t-field='o.comment'/>
|
||||
</td>
|
||||
<td>Incoterm</td>
|
||||
<td>
|
||||
<span t-field='doc.incoterm'/>
|
||||
<span t-field='o.incoterm_id'/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//th[@id='product_qty']" position="after">
|
||||
<th id="price_unit" class="text-right">
|
||||
<strong>Unit Price</strong>
|
||||
</th>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//td[@id='product_qty']" position="after">
|
||||
<td id="price_unit" class="text-right">
|
||||
<span t-field="line_ids.price_unit"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//t/div/div[1]" position="before">
|
||||
<t t-set="o" t-value="o.with_context(lang=o.vendor_id.lang)"/>
|
||||
<t t-set="address">
|
||||
<div t-field="o.vendor_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//td[@id='product_qty']" position="replace">
|
||||
<td id="product_qty" class="text-right">
|
||||
<span id="qty" t-field="line_ids.product_qty"/>
|
||||
<span t-field="line_ids.product_uom_id"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//span[@id='product_qty']" position="replace">
|
||||
<xpath expr="//span[@id='qty']" position="replace">
|
||||
<t t-if="line_ids.product_uom_id.id == 1">
|
||||
<span id="product_qty" t-field="line_ids.product_qty" t-options="{'widget': 'integer'}"/>
|
||||
<span id="qty" t-field="line_ids.product_qty" t-options="{'widget': 'integer'}"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span id="product_qty" t-field="line_ids.product_qty"/>
|
||||
<span id="qty" t-field="line_ids.product_qty"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<!--
|
||||
<xpath expr="//div/t[2]" position="replace">
|
||||
</xpath>
|
||||
-->
|
||||
|
||||
<xpath expr="//table[@id='details']" position="replace"/>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//th[@id='product_uom']" position="replace"/>
|
||||
<xpath expr="//td[@id='product_uom']" position="replace"/>
|
||||
|
||||
</data>
|
||||
+5
-1
@@ -1,7 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<!--
|
||||
<xpath expr="//h3" position="replace">
|
||||
</xpath>
|
||||
|
||||
-->
|
||||
|
||||
<xpath expr="//h3[@id='title_product']" position="replace"/>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//th[@id='schedule_date']" position="replace"/>
|
||||
<xpath expr="//td[@id='schedule_date']" position="replace"/>
|
||||
|
||||
<xpath expr="//th[@id='name']" position="after">
|
||||
<th class="text-right"><strong>Scheduled Date</strong></th>
|
||||
</xpath>
|
||||
<xpath expr="//td[@id='name']" position="after">
|
||||
<td class="text-right">
|
||||
<span t-field="line_ids.schedule_date"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//td[@id='name']" position="replace">
|
||||
<td id="name" >
|
||||
<t t-if="o.product_id.type_description">
|
||||
<span style="font-weight: bold" t-field="o.product_id.type_description"/>
|
||||
</t>
|
||||
<t t-if="not o.product_id.type_description">
|
||||
<span t-field="o.product_id.name"/>
|
||||
</t>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//h2" position="replace">
|
||||
<t t-if="state_blanket_order == draft">
|
||||
<h2>Request for Quotation purchase contract <span t-field="o.name"/></h2>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<h2>Purchase contract <span t-field="o.name"/></h2>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//td[@id='price_unit']" position="replace">
|
||||
<td id="price_unit" class="text-right">
|
||||
<span t-esc="'%g' % line_ids.price_unit if str(line_ids.price_unit)[::-1].find('.') >= 3 else '%.2f' % line_ids.price_unit"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//tr[@id='first']" position="attributes">
|
||||
<attribute name="t-att-class">"first"</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//tr[@id='first']" position="after">
|
||||
<t t-if="o.product_id.type_description">
|
||||
<tr class="second">
|
||||
<td></td>
|
||||
<td colspan="5">
|
||||
<span t-field="o.product_id.name"/><br/>
|
||||
<t t-if="o.product_id.country_of_origin_id.code">
|
||||
Ursprungsland:
|
||||
<span t-field="o.product_id.country_of_origin_id.code" />
|
||||
</t>
|
||||
<t t-if="o.product_id.hs_code">
|
||||
/ Zollposition:
|
||||
<span t-field="o.product_id.hs_code" />
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="not o.product_id.type_description">
|
||||
<tr class="second">
|
||||
<td></td>
|
||||
<td colspan="5">
|
||||
<t t-if="o.product_id.country_of_origin_id.code">
|
||||
Ursprungsland:
|
||||
<span t-field="o.product_id.country_of_origin_id.code" />
|
||||
</t>
|
||||
<t t-if="o.product_id.hs_code">
|
||||
/ Zollposition:
|
||||
<span t-field="o.product_id.hs_code" />
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -8,5 +8,53 @@
|
||||
<xpath expr="//span[@t-field='o.ordering_date']/../.." position="attributes">
|
||||
<attribute name="id">informations</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table" position="attributes">
|
||||
<attribute name="id">main_table</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[2]" position="attributes">
|
||||
<attribute name="id">details</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/h3" position="attributes">
|
||||
<attribute name="id">title_product</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/tbody/tr/td[1]" position="attributes">
|
||||
<attribute name="id">name</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/tbody/tr" position="attributes">
|
||||
<attribute name="id">first</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/thead/tr/th[1]" position="attributes">
|
||||
<attribute name="id">name</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/thead/tr/th[2]" position="attributes">
|
||||
<attribute name="id">product_qty</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/tbody/tr/td[2]" position="attributes">
|
||||
<attribute name="id">product_qty</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/thead/tr/th[3]" position="attributes">
|
||||
<attribute name="id">product_uom</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/tbody/tr/t/td" position="attributes">
|
||||
<attribute name="id">product_uom</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/thead/tr/th[4]" position="attributes">
|
||||
<attribute name="id">schedule_date</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[1]/table/tbody/tr/td[3]" position="attributes">
|
||||
<attribute name="id">schedule_date</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//table[@id='main_table']/thead/tr/th[1]" position="before">
|
||||
<th id="default_code">
|
||||
<strong >Part No.</strong>
|
||||
</th>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']/tbody/tr/td[1]" position="before">
|
||||
<td id="default_code">
|
||||
<span t-field="line_ids.product_id.default_code"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -5,14 +5,56 @@
|
||||
<style>
|
||||
.o_company_1_layout {
|
||||
font-family: Arial;
|
||||
color: #000000;
|
||||
font-size: 9pt;
|
||||
}
|
||||
.address {
|
||||
padding-bottom:33mm;
|
||||
}
|
||||
h2 {
|
||||
margin-top:10mm;
|
||||
margin-bottom:3mm;
|
||||
font-size: 13pt;
|
||||
font-weight: bold;
|
||||
}
|
||||
.first td {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.second td {
|
||||
padding-top: 0;
|
||||
}
|
||||
.second {
|
||||
border-bottom: 1px solid rgb(220,220,220);
|
||||
}
|
||||
table.trimada thead tr {
|
||||
border-top:solid 1px;
|
||||
border-bottom: solid 1px;
|
||||
color: black;
|
||||
}
|
||||
table.trimada thead th#description {
|
||||
width: 70mm;
|
||||
}
|
||||
table.trimada tr.first td {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
table.trimada tr.second td {
|
||||
padding-top: 0;
|
||||
}
|
||||
table.trimada tr.second {
|
||||
border-bottom: 1px solid rgb(220,220,220);
|
||||
}
|
||||
table.trimada thead th#default_code {
|
||||
width: 27mm;
|
||||
text-align: left;
|
||||
}
|
||||
span#qty {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
</style>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']" position="attributes">
|
||||
<attribute name="class" separator=" " add="trimada table-borderless"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='type_id']" position="attributes">
|
||||
<attribute name="attrs">{'readonly': 1}</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
+46
-2
@@ -1528,8 +1528,7 @@ ID: `mint_system.sale.report_saleorder_document.remove_vat`
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.report_saleorder_document" priority="50">
|
||||
|
||||
<xpath expr="//p[@t-if='doc.partner_id.vat']" position="replace">
|
||||
</xpath>
|
||||
<xpath expr="//p[@t-if='doc.partner_id.vat']" position="replace"/>
|
||||
|
||||
</data>
|
||||
```
|
||||
@@ -2301,6 +2300,22 @@ ID: `mint_system.sale.view_order_form.domain_partner_type`
|
||||
```
|
||||
Source: [snippets/sale.view_order_form.domain_partner_type.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_form.domain_partner_type.xml)
|
||||
|
||||
### Edit Name
|
||||
ID: `mint_system.sale.view_order_form.edit_name`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.view_order_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='name']" position="attributes">
|
||||
<attribute name="readonly">0</attribute>
|
||||
<attribute name="attrs">{'readonly': [('project_id', '=', False)]}</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/sale.view_order_form.edit_name.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_form.edit_name.xml)
|
||||
|
||||
### Filter Customer Is Company
|
||||
ID: `mint_system.sale.view_order_form.filter_customer_is_company`
|
||||
```xml
|
||||
@@ -2427,6 +2442,20 @@ ID: `mint_system.sale.view_order_form.show_carrier_method`
|
||||
```
|
||||
Source: [snippets/sale.view_order_form.show_carrier_method.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_form.show_carrier_method.xml)
|
||||
|
||||
### Show Order Line Project Id
|
||||
ID: `mint_system.sale.view_order_form.show_order_line_project_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.view_order_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="after">
|
||||
<field name="project_id" optional="hide" />
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/sale.view_order_form.show_order_line_project_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_form.show_order_line_project_id.xml)
|
||||
|
||||
### Show Project
|
||||
ID: `mint_system.sale.view_order_form.show_project`
|
||||
```xml
|
||||
@@ -2822,6 +2851,21 @@ ID: `mint_system.sale.view_order_tree.show_partner_shipping`
|
||||
```
|
||||
Source: [snippets/sale.view_order_tree.show_partner_shipping.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_tree.show_partner_shipping.xml)
|
||||
|
||||
### Show State
|
||||
ID: `mint_system.sale.view_order_tree.show_state`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.view_order_tree" priority="50">
|
||||
|
||||
<field name="invoice_status" position="after">
|
||||
<field name="state" decoration-success="state == 'sale' or state == 'done'" decoration-info="state == 'draft' or state == 'sent'" widget="badge" optional="show"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/sale.view_order_tree.show_state.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_tree.show_state.xml)
|
||||
|
||||
### X Product Uom Qty
|
||||
ID: `mint_system.sale.view_order_tree.x_product_uom_qty`
|
||||
```xml
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.report_saleorder_document" priority="50">
|
||||
|
||||
<xpath expr="//p[@t-if='doc.partner_id.vat']" position="replace">
|
||||
</xpath>
|
||||
<xpath expr="//p[@t-if='doc.partner_id.vat']" position="replace"/>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.view_order_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='name']" position="attributes">
|
||||
<attribute name="readonly">0</attribute>
|
||||
<attribute name="attrs">{'readonly': [('project_id', '=', False)]}</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.view_order_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="after">
|
||||
<field name="project_id" optional="hide" />
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.view_order_tree" priority="50">
|
||||
|
||||
<field name="invoice_status" position="after">
|
||||
<field name="state" decoration-success="state == 'sale' or state == 'done'" decoration-info="state == 'draft' or state == 'sent'" widget="badge" optional="show"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -340,6 +340,18 @@ ID: `mint_system.sale_blanket_order.report_blanketorder_document.remove_informat
|
||||
```
|
||||
Source: [snippets/sale_blanket_order.report_blanketorder_document.remove_informations.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale_blanket_order.report_blanketorder_document.remove_informations.xml)
|
||||
|
||||
### Remove Vat
|
||||
ID: `mint_system.sale_blanket_order.report_blanketorder_document.remove_vat`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="//p[@t-if='doc.partner_id.vat']" position="replace"/>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/sale_blanket_order.report_blanketorder_document.remove_vat.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale_blanket_order.report_blanketorder_document.remove_vat.xml)
|
||||
|
||||
### Replace Partner Id
|
||||
ID: `mint_system.sale_blanket_order.report_blanketorder_document.replace_partner_id`
|
||||
```xml
|
||||
@@ -681,8 +693,8 @@ ID: `mint_system.sale_blanket_order.report_blanketorder_document.title_margin`
|
||||
Source: [snippets/sale_blanket_order.report_blanketorder_document.title_margin.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale_blanket_order.report_blanketorder_document.title_margin.xml)
|
||||
|
||||
## View Blanket Order Form
|
||||
### Modify Attributes Date Order
|
||||
ID: `mint_system.sale_blanket_order.view_blanket_order_form.modify_attributes_date_order`
|
||||
### Modify Attributes Date Confirmed
|
||||
ID: `mint_system.sale_blanket_order.view_blanket_order_form.modify_attributes_date_confirmed`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale_blanket_order.view_blanket_order_form" priority="50">
|
||||
@@ -693,7 +705,7 @@ ID: `mint_system.sale_blanket_order.view_blanket_order_form.modify_attributes_da
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/sale_blanket_order.view_blanket_order_form.modify_attributes_date_order.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale_blanket_order.view_blanket_order_form.modify_attributes_date_order.xml)
|
||||
Source: [snippets/sale_blanket_order.view_blanket_order_form.modify_attributes_date_confirmed.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale_blanket_order.view_blanket_order_form.modify_attributes_date_confirmed.xml)
|
||||
|
||||
## View Blanket Order Search
|
||||
### Replace Filter
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
|
||||
|
||||
<xpath expr="//p[@t-if='doc.partner_id.vat']" position="replace"/>
|
||||
|
||||
</data>
|
||||
File renamed without changes.
@@ -0,0 +1,20 @@
|
||||
---
|
||||
prev: ./snippets.md
|
||||
---
|
||||
# Sale Subscription
|
||||
## Sale Subscription Template View Form
|
||||
### Journal Id Domain
|
||||
ID: `mint_system.sale_subscription.sale_subscription_template_view_form.journal_id_domain`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale_subscription.sale_subscription_template_view_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='journal_id']" position="attributes">
|
||||
<attribute name="attrs">{'domain': []}</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/sale_subscription.sale_subscription_template_view_form.journal_id_domain.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale_subscription.sale_subscription_template_view_form.journal_id_domain.xml)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale_subscription.sale_subscription_template_view_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='journal_id']" position="attributes">
|
||||
<attribute name="attrs">{'domain': []}</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -15,6 +15,7 @@
|
||||
}
|
||||
.box.address {
|
||||
font-size: 14mm;
|
||||
font-weight: bolder;
|
||||
}
|
||||
.barcode {
|
||||
font-size: 6mm;
|
||||
|
||||
+175
-19
@@ -23,6 +23,7 @@ ID: `mint_system.stock.label_transfer_template_view.basis57`
|
||||
}
|
||||
.box.address {
|
||||
font-size: 14mm;
|
||||
font-weight: bolder;
|
||||
}
|
||||
.barcode {
|
||||
font-size: 6mm;
|
||||
@@ -675,11 +676,10 @@ ID: `mint_system.stock.report_delivery_document.backorder_signature_section`
|
||||
<data inherit_id="stock.report_delivery_document" priority="50">
|
||||
|
||||
<xpath expr="//table[@name='stock_move_line_table']" position="after">
|
||||
<p>Retouren:<br/>
|
||||
KEG: ___________ Anzahl<br/>
|
||||
Harassen: ___________ Anzahl<br/>
|
||||
<br/>
|
||||
Waren erhalten: Datum: ___________ Unterschrift: ______________________
|
||||
<p>Retouren:<br/><br/>
|
||||
KEG: ___________ Anzahl<br/><br/>
|
||||
Harassen: ___________ Anzahl<br/><br/>
|
||||
Waren erhalten: Datum: ______________________ Unterschrift: _________________________________
|
||||
</p>
|
||||
</xpath>
|
||||
|
||||
@@ -2040,20 +2040,25 @@ ID: `mint_system.stock.report_picking.format_qty`
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.report_picking" priority="50">
|
||||
|
||||
<xpath expr="//span[@id='product_uom_qty']" position="attributes">
|
||||
<attribute name="t-options-widget">"integer"</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//span[@id='product_uom_qty_done']" position="attributes">
|
||||
<attribute name="t-options-widget">"integer"</attribute>
|
||||
<xpath expr="//span[@id='product_uom_qty']" position="replace">
|
||||
<t t-if="ml.product_uom_id.id == 1">
|
||||
<span id="product_uom_qty" t-field="ml.product_uom_qty" t-options="{'widget': 'integer'}"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span id="product_uom_qty" t-field="ml.product_uom_qty"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//span[@id='qty_available']" position="attributes">
|
||||
<attribute name="t-options-widget">"integer"</attribute>
|
||||
<xpath expr="//span[@id='qty_available']" position="replace">
|
||||
<t t-if="ml.product_uom_id.id == 1">
|
||||
<span id="qty_available" t-field="ml.product_id.qty_available" t-options="{'widget': 'integer'}"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span id="qty_available" t-field="ml.product_id.qty_available"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/stock.report_picking.format_qty.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.report_picking.format_qty.xml)
|
||||
|
||||
@@ -3540,6 +3545,36 @@ ID: `mint_system.stock.view_move_form.show_locations`
|
||||
```
|
||||
Source: [snippets/stock.view_move_form.show_locations.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_locations.xml)
|
||||
|
||||
### Show Lot Ids
|
||||
ID: `mint_system.stock.view_move_form.show_lot_ids`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_move_form" priority="50">
|
||||
|
||||
<field name="move_dest_ids" position="after">
|
||||
<field name="lot_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/stock.view_move_form.show_lot_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_lot_ids.xml)
|
||||
|
||||
### Show Move Finished Ids
|
||||
ID: `mint_system.stock.view_move_form.show_move_finished_ids`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_move_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='procure_method']" position="after">
|
||||
<field name="move_finished_ids"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/stock.view_move_form.show_move_finished_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_move_finished_ids.xml)
|
||||
|
||||
### Show Move Lines
|
||||
ID: `mint_system.stock.view_move_form.show_move_lines`
|
||||
```xml
|
||||
@@ -3557,6 +3592,21 @@ ID: `mint_system.stock.view_move_form.show_move_lines`
|
||||
```
|
||||
Source: [snippets/stock.view_move_form.show_move_lines.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_move_lines.xml)
|
||||
|
||||
### Show Order Finished Lot Ids
|
||||
ID: `mint_system.stock.view_move_form.show_order_finished_lot_ids`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_move_form" priority="50">
|
||||
|
||||
<field name="move_dest_ids" position="after">
|
||||
<field name="order_finished_lot_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/stock.view_move_form.show_order_finished_lot_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_order_finished_lot_ids.xml)
|
||||
|
||||
### Show Packaging
|
||||
ID: `mint_system.stock.view_move_form.show_packaging`
|
||||
```xml
|
||||
@@ -3587,6 +3637,21 @@ ID: `mint_system.stock.view_move_form.show_partner`
|
||||
```
|
||||
Source: [snippets/stock.view_move_form.show_partner.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_partner.xml)
|
||||
|
||||
### Show Picking Id
|
||||
ID: `mint_system.stock.view_move_form.show_picking_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_move_form" priority="50">
|
||||
|
||||
<field name="origin" position="after">
|
||||
<field name="picking_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/stock.view_move_form.show_picking_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_picking_id.xml)
|
||||
|
||||
### Show Production
|
||||
ID: `mint_system.stock.view_move_form.show_production`
|
||||
```xml
|
||||
@@ -3634,20 +3699,20 @@ ID: `mint_system.stock.view_move_line_form.enable_edit_and_create`
|
||||
```
|
||||
Source: [snippets/stock.view_move_line_form.enable_edit_and_create.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_line_form.enable_edit_and_create.xml)
|
||||
|
||||
### Show Move Id
|
||||
ID: `mint_system.stock.view_move_line_form.show_move_id`
|
||||
### Show Picking Id
|
||||
ID: `mint_system.stock.view_move_line_form.show_picking_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_move_line_form" priority="50">
|
||||
|
||||
<field name="lot_id" position="before">
|
||||
<field name="move_id"/>
|
||||
<field name="origin" position="after">
|
||||
<field name="picking_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/stock.view_move_line_form.show_move_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_line_form.show_move_id.xml)
|
||||
Source: [snippets/stock.view_move_line_form.show_picking_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_line_form.show_picking_id.xml)
|
||||
|
||||
## View Move Line Tree
|
||||
### Enable Create
|
||||
@@ -3889,6 +3954,21 @@ ID: `mint_system.stock.view_picking_form.show_details_visible`
|
||||
```
|
||||
Source: [snippets/stock.view_picking_form.show_details_visible.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_picking_form.show_details_visible.xml)
|
||||
|
||||
### Show Move Line Ids
|
||||
ID: `mint_system.stock.view_picking_form.show_move_line_ids`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_picking_form" priority="50">
|
||||
|
||||
<field name="backorder_id" position="after">
|
||||
<field name="move_line_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/stock.view_picking_form.show_move_line_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_picking_form.show_move_line_ids.xml)
|
||||
|
||||
### Show Weight
|
||||
ID: `mint_system.stock.view_picking_form.show_weight`
|
||||
```xml
|
||||
@@ -3919,6 +3999,51 @@ ID: `mint_system.stock.view_picking_form.x_count_boxes`
|
||||
```
|
||||
Source: [snippets/stock.view_picking_form.x_count_boxes.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_picking_form.x_count_boxes.xml)
|
||||
|
||||
## View Production Lot Form
|
||||
### X Production Id
|
||||
ID: `mint_system.stock.view_production_lot_form.x_production_id`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_production_lot_form" priority="50">
|
||||
|
||||
<xpath expr="//group[@name='main_group']/group/div" position="after">
|
||||
<field name="x_production_id" readonly="1"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/stock.view_production_lot_form.x_production_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_production_lot_form.x_production_id.xml)
|
||||
|
||||
### X Weight Uom
|
||||
ID: `mint_system.stock.view_production_lot_form.x_weight_uom`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_production_lot_form" priority="50">
|
||||
|
||||
<xpath expr="//group[@name='main_group']/group/div" position="after">
|
||||
<field name="x_weight_uom" readonly="1"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
```
|
||||
Source: [snippets/stock.view_production_lot_form.x_weight_uom.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_production_lot_form.x_weight_uom.xml)
|
||||
|
||||
## View Production Lot Tree
|
||||
### Show Qty
|
||||
ID: `mint_system.stock.view_production_lot_tree.show_qty`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_production_lot_tree" priority="50">
|
||||
|
||||
<field name="product_id" position="after">
|
||||
<field name="product_qty"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/stock.view_production_lot_tree.show_qty.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_production_lot_tree.show_qty.xml)
|
||||
|
||||
## View Stock Quant Tree Editable
|
||||
### Show Reserved Quantity
|
||||
ID: `mint_system.stock.view_stock_quant_tree_editable.show_reserved_quantity`
|
||||
@@ -3951,6 +4076,22 @@ ID: `mint_system.stock.view_stock_quant_tree.show_reserved_quantity`
|
||||
```
|
||||
Source: [snippets/stock.view_stock_quant_tree.show_reserved_quantity.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_stock_quant_tree.show_reserved_quantity.xml)
|
||||
|
||||
## View Warehouse Orderpoint Tree Editable
|
||||
### Show Lead Days Date
|
||||
ID: `mint_system.stock.view_warehouse_orderpoint_tree_editable.show_lead_days_date`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_warehouse_orderpoint_tree_editable" priority="50">
|
||||
|
||||
<field name="json_lead_days_popover" position="after">
|
||||
<field name="lead_days_date"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/stock.view_warehouse_orderpoint_tree_editable.show_lead_days_date.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_warehouse_orderpoint_tree_editable.show_lead_days_date.xml)
|
||||
|
||||
## Vpicktree
|
||||
### Add Weight Uom Name
|
||||
ID: `mint_system.stock.vpicktree.add_weight_uom_name`
|
||||
@@ -3995,3 +4136,18 @@ ID: `mint_system.stock.vpicktree.show_delivery_note`
|
||||
```
|
||||
Source: [snippets/stock.vpicktree.show_delivery_note.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.vpicktree.show_delivery_note.xml)
|
||||
|
||||
### Weight Sum
|
||||
ID: `mint_system.stock.vpicktree.weight_sum`
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.vpicktree" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='weight']" position="attributes">
|
||||
<attribute name="sum"></attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
|
||||
```
|
||||
Source: [snippets/stock.vpicktree.weight_sum.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.vpicktree.weight_sum.xml)
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
<data inherit_id="stock.report_delivery_document" priority="50">
|
||||
|
||||
<xpath expr="//table[@name='stock_move_line_table']" position="after">
|
||||
<p>Retouren:<br/>
|
||||
KEG: ___________ Anzahl<br/>
|
||||
Harassen: ___________ Anzahl<br/>
|
||||
<br/>
|
||||
Waren erhalten: Datum: ___________ Unterschrift: ______________________
|
||||
<p>Retouren:<br/><br/>
|
||||
KEG: ___________ Anzahl<br/><br/>
|
||||
Harassen: ___________ Anzahl<br/><br/>
|
||||
Waren erhalten: Datum: ______________________ Unterschrift: _________________________________
|
||||
</p>
|
||||
</xpath>
|
||||
|
||||
|
||||
@@ -1,16 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.report_picking" priority="50">
|
||||
|
||||
<xpath expr="//span[@id='product_uom_qty']" position="attributes">
|
||||
<attribute name="t-options-widget">"integer"</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//span[@id='product_uom_qty_done']" position="attributes">
|
||||
<attribute name="t-options-widget">"integer"</attribute>
|
||||
<xpath expr="//span[@id='product_uom_qty']" position="replace">
|
||||
<t t-if="ml.product_uom_id.id == 1">
|
||||
<span id="product_uom_qty" t-field="ml.product_uom_qty" t-options="{'widget': 'integer'}"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span id="product_uom_qty" t-field="ml.product_uom_qty"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//span[@id='qty_available']" position="attributes">
|
||||
<attribute name="t-options-widget">"integer"</attribute>
|
||||
<xpath expr="//span[@id='qty_available']" position="replace">
|
||||
<t t-if="ml.product_uom_id.id == 1">
|
||||
<span id="qty_available" t-field="ml.product_id.qty_available" t-options="{'widget': 'integer'}"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span id="qty_available" t-field="ml.product_id.qty_available"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_move_form" priority="50">
|
||||
|
||||
<field name="move_dest_ids" position="after">
|
||||
<field name="lot_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_move_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='procure_method']" position="after">
|
||||
<field name="move_finished_ids"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_move_form" priority="50">
|
||||
|
||||
<field name="move_dest_ids" position="after">
|
||||
<field name="order_finished_lot_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_move_form" priority="50">
|
||||
|
||||
<field name="origin" position="after">
|
||||
<field name="picking_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_move_line_form" priority="50">
|
||||
|
||||
<field name="lot_id" position="before">
|
||||
<field name="move_id"/>
|
||||
<field name="origin" position="after">
|
||||
<field name="picking_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_picking_form" priority="50">
|
||||
|
||||
<field name="backorder_id" position="after">
|
||||
<field name="move_line_ids"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_production_lot_form" priority="50">
|
||||
|
||||
<xpath expr="//group[@name='main_group']/group/div" position="after">
|
||||
<field name="x_production_id" readonly="1"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_production_lot_form" priority="50">
|
||||
|
||||
<xpath expr="//group[@name='main_group']/group/div" position="after">
|
||||
<field name="x_weight_uom" readonly="1"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_production_lot_tree" priority="50">
|
||||
|
||||
<field name="product_id" position="after">
|
||||
<field name="product_qty"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.view_warehouse_orderpoint_tree_editable" priority="50">
|
||||
|
||||
<field name="json_lead_days_popover" position="after">
|
||||
<field name="lead_days_date"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.vpicktree" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='weight']" position="attributes">
|
||||
<attribute name="sum"></attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
Reference in new issue
Block a user