sync from 15.0

This commit is contained in:
janikvonrotz committed 2023-01-04 16:55:36 +01:00
1 parent 42709b753b
commit ef9732f56c
146 files changed
+4150 -575

No files matched your search

+1 -1
View File
@@ -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/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',]
module.exports = ['/snippets/account.md','/snippets/account_asset.md','/snippets/account_budget.md','/snippets/account_followup.md','/snippets/account_sale_timesheet_report.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/purchase_requisition_send.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_account.md','/snippets/stock_delivery_note.md','/snippets/timesheet_grid.md','/snippets/web.md','/snippets/website_discount_voucher.md','/snippets/website_sale.md',]
+60 -1
View File
@@ -160,6 +160,65 @@ task stop
task drop-db
```
## Mail
### Setup mail server and client
Start mail server.
```
task start mail
```
Create a new account `odoo@example.com` and set `odoo` as password.\
Create a new account `test@example.com` and set `test` as password.
Install a simple mail client such as [Claws Mail](https://www.claws-mail.org/) and connect with credentials:
host: `localhost`\
port: `25`\
username: `odoo@example.com`\
password: `test`
For incoming mails use these informations:
server type: `IMAP`
host: `localhost`\
port: `143`\
username: `odoo@example.com`\
password: `test`
Repeat the same for `test@example.com`.
### Setup incoming and outgoing mail for Odoo
Activate mail sever option with `example.com` domain.
For outgoing mails use these informations:
host: `localhost`\
port: `25`\
username: `odoo@example.com`\
password: `odoo`
For incoming mails use these informations:
server type: `IMAP`
host: `localhost`\
port: `143`\
username: `odoo@example.com`\
password: `odoo`
### Test mail exchange
Follow these steps to test a mail exchange:
* Send mail in Odoo to `test@example.com`
* In mail client create reply to the mail and save as draft
* Copy the mail to the inbox of `odoo@example.com`
* Trigger fetchmail in Odoo
* Check if reply has been processed
## Troubleshooting
### inotify instance limit reached
@@ -178,4 +237,4 @@ Increase ifnotify watch limit.
```bash
sudo sysctl fs.inotify.max_user_watches=52428800
```
```
+19 -8
View File
@@ -12,14 +12,14 @@ services:
ports:
- "127.0.0.1:8069:8069"
volumes:
- odoo-odoo-data:/var/lib/odoo
- odoo-data:/var/lib/odoo
- ./config:/etc/odoo
- ./addons:/mnt/addons
- ./oca:/mnt/oca
- ./enterprise:/mnt/enterprise
- ./themes:/mnt/themes
pgadmin:
container_name: pgadmin
admin:
container_name: admin
image: dpage/pgadmin4:6
depends_on:
- db
@@ -29,7 +29,7 @@ services:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- odoo-pgadmin-data:/var/lib/pgadmin
- admin-data:/var/lib/pgadmin
- ./config/servers.json:/pgadmin4/servers.json
db:
container_name: db
@@ -41,8 +41,19 @@ services:
POSTGRES_PASSWORD: odoo
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata
- db-data:/var/lib/postgresql/data/pgdata
mail:
image: docker.io/mailserver/docker-mailserver:latest
container_name: mail
hostname: mail
domainname: localhost
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"
volumes:
odoo-odoo-data:
odoo-db-data:
odoo-pgadmin-data:
odoo-data:
db-data:
admin-data:
mail-data:
+5
View File
@@ -1,7 +1,10 @@
# Snippets
In Odoo everything is described as an XML document. Snippets are modifications (edits) for these XML documents. With a snippet you can e.g. hide a field on the contact form. A snippet name is unique and follows the `$COMPANY.$MODULE.$XML_ID.$DESCRIPTION` schema.
## [Account](snippets/account.md)
## [Account Asset](snippets/account_asset.md)
## [Account Budget](snippets/account_budget.md)
## [Account Followup](snippets/account_followup.md)
## [Account Sale Timesheet Report](snippets/account_sale_timesheet_report.md)
## [Agreement](snippets/agreement.md)
## [Agreement Legal](snippets/agreement_legal.md)
## [Base](snippets/base.md)
@@ -37,6 +40,7 @@ In Odoo everything is described as an XML document. Snippets are modificatio
## [Project](snippets/project.md)
## [Purchase](snippets/purchase.md)
## [Purchase Requisition](snippets/purchase_requisition.md)
## [Purchase Requisition Send](snippets/purchase_requisition_send.md)
## [Res Groups](snippets/res_groups.md)
## [Sale](snippets/sale.md)
## [Sale Blanket Order](snippets/sale_blanket_order.md)
@@ -49,6 +53,7 @@ In Odoo everything is described as an XML document. Snippets are modificatio
## [Sale Product Set](snippets/sale_product_set.md)
## [Sale Subscription](snippets/sale_subscription.md)
## [Stock](snippets/stock.md)
## [Stock Account](snippets/stock_account.md)
## [Stock Delivery Note](snippets/stock_delivery_note.md)
## [Timesheet Grid](snippets/timesheet_grid.md)
## [Web](snippets/web.md)
+192 -44
View File
@@ -61,28 +61,25 @@ ID: `mint_system.account.report_invoice_document.add_iban`
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<!-- Odoo 14.0 -->
<xpath expr="/t/t/div/p[2]" position="after">
<div class="row">
<div class="col">
<span>IBAN: </span>
<span t-field="o.partner_bank_id.acc_number"/>
</div>
</div>
</xpath>
<xpath expr="/t/t/div/div[3]" position="after">
<div class="row">
<div class="col">
<span>Bank/BIC: </span>
<span t-field="o.partner_bank_id.bank_id.display_name"/>
<br/>
<br/>
</div>
</div>
</xpath>
<!-- Odoo 14.0 -->
<xpath expr="/t/t/div/p[2]" position="before">
<t t-if="not o.partner_bank_id._eligible_for_qr_code('ch_qr', o.partner_id, o.currency_id)">
<p>
<span>IBAN: </span>
<b>
<span t-field="o.partner_bank_id.acc_number" />
</b>
<br />
<span>Bank/BIC: </span>
<b>
<span t-field="o.partner_bank_id.bank_id.display_name" />
</b>
</p>
</t>
</xpath>
<!-- Odoo 13.0 -->
<!-- <xpath expr="/t/t/div/p[2]" position="after">
<!-- Odoo 13.0 -->
<!-- <xpath expr="/t/t/div/p[2]" position="after">
<div class="row">
<div class="col">
<span>IBAN: </span>
@@ -102,7 +99,6 @@ ID: `mint_system.account.report_invoice_document.add_iban`
</xpath> -->
</data>
```
Source: [snippets/account.report_invoice_document.add_iban.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.add_iban.xml)
@@ -120,6 +116,38 @@ ID: `mint_system.account.report_invoice_document.add_percentage_sign`
```
Source: [snippets/account.report_invoice_document.add_percentage_sign.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.add_percentage_sign.xml)
### Add Sale Person
ID: `mint_system.account.report_invoice_document.add_sale_person`
```xml
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<!-- Remove reference -->
<xpath expr="/t/t/div/div[1]/div[5]" position="replace">
</xpath>
<!-- Add sales person -->
<xpath expr="/t/t/div/div[1]/div[1]" position="after">
<div class="col-auto mw-100 mb-2" t-if="o.invoice_user_id" name="invoice_user_id">
<strong>Salesperson:</strong>
<p class="m-0" t-field="o.invoice_user_id.name" />
</div>
</xpath>
<!-- Add referencce to new line -->
<xpath expr="//div[@id='informations']" position="after">
<div id="informations2" class="row mt32 mb32" t-if="o.ref">
<div class="col-auto mw-100 mb-2" name="reference">
<strong>Reference:</strong>
<p class="m-0" t-field="o.ref" />
</div>
</div>
</xpath>
</data>
```
Source: [snippets/account.report_invoice_document.add_sale_person.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.add_sale_person.xml)
### Add Salesperson
ID: `mint_system.account.report_invoice_document.add_salesperson`
```xml
@@ -208,6 +236,36 @@ ID: `mint_system.account.report_invoice_document.bank_account`
```
Source: [snippets/account.report_invoice_document.bank_account.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.bank_account.xml)
### Custom Address
ID: `mint_system.account.report_invoice_document.custom_address`
```xml
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<xpath expr="//t[@t-set='address']/address" position="replace">
<address>
<t t-if="o.partner_id.invoice_name">
<div><span t-esc="o.partner_id.invoice_name" /></div>
</t>
<t t-if="o.partner_id.address_addition">
<div><span t-esc="o.partner_id.address_addition" /></div>
</t>
<t t-if="o.partner_id.street">
<div><span t-esc="o.partner_id.street" /></div>
</t>
<t t-if="o.partner_id.city and o.partner_id.city">
<div><span t-esc="o.partner_id.zip" /> <span t-esc="o.partner_id.city" /></div>
</t>
<t t-if="o.partner_id.country_id">
<div><span t-esc="o.partner_id.country_id.name" /></div>
</t>
</address>
</xpath>
</data>
```
Source: [snippets/account.report_invoice_document.custom_address.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.custom_address.xml)
### Custom Taxes
ID: `mint_system.account.report_invoice_document.custom_taxes`
```xml
@@ -1872,28 +1930,25 @@ ID: `mint_system.account.report_invoice_document.add_iban`
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<!-- Odoo 14.0 -->
<xpath expr="/t/t/div/p[2]" position="after">
<div class="row">
<div class="col">
<span>IBAN: </span>
<span t-field="o.partner_bank_id.acc_number"/>
</div>
</div>
</xpath>
<xpath expr="/t/t/div/div[3]" position="after">
<div class="row">
<div class="col">
<span>Bank/BIC: </span>
<span t-field="o.partner_bank_id.bank_id.display_name"/>
<br/>
<br/>
</div>
</div>
</xpath>
<!-- Odoo 14.0 -->
<xpath expr="/t/t/div/p[2]" position="before">
<t t-if="not o.partner_bank_id._eligible_for_qr_code('ch_qr', o.partner_id, o.currency_id)">
<p>
<span>IBAN: </span>
<b>
<span t-field="o.partner_bank_id.acc_number" />
</b>
<br />
<span>Bank/BIC: </span>
<b>
<span t-field="o.partner_bank_id.bank_id.display_name" />
</b>
</p>
</t>
</xpath>
<!-- Odoo 13.0 -->
<!-- <xpath expr="/t/t/div/p[2]" position="after">
<!-- Odoo 13.0 -->
<!-- <xpath expr="/t/t/div/p[2]" position="after">
<div class="row">
<div class="col">
<span>IBAN: </span>
@@ -1913,7 +1968,6 @@ ID: `mint_system.account.report_invoice_document.add_iban`
</xpath> -->
</data>
```
Source: [snippets/account.report_invoice_document.add_iban.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.add_iban.xml)
@@ -1931,6 +1985,38 @@ ID: `mint_system.account.report_invoice_document.add_percentage_sign`
```
Source: [snippets/account.report_invoice_document.add_percentage_sign.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.add_percentage_sign.xml)
### Add Sale Person
ID: `mint_system.account.report_invoice_document.add_sale_person`
```xml
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<!-- Remove reference -->
<xpath expr="/t/t/div/div[1]/div[5]" position="replace">
</xpath>
<!-- Add sales person -->
<xpath expr="/t/t/div/div[1]/div[1]" position="after">
<div class="col-auto mw-100 mb-2" t-if="o.invoice_user_id" name="invoice_user_id">
<strong>Salesperson:</strong>
<p class="m-0" t-field="o.invoice_user_id.name" />
</div>
</xpath>
<!-- Add referencce to new line -->
<xpath expr="//div[@id='informations']" position="after">
<div id="informations2" class="row mt32 mb32" t-if="o.ref">
<div class="col-auto mw-100 mb-2" name="reference">
<strong>Reference:</strong>
<p class="m-0" t-field="o.ref" />
</div>
</div>
</xpath>
</data>
```
Source: [snippets/account.report_invoice_document.add_sale_person.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.add_sale_person.xml)
### Add Salesperson
ID: `mint_system.account.report_invoice_document.add_salesperson`
```xml
@@ -2019,6 +2105,36 @@ ID: `mint_system.account.report_invoice_document.bank_account`
```
Source: [snippets/account.report_invoice_document.bank_account.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.bank_account.xml)
### Custom Address
ID: `mint_system.account.report_invoice_document.custom_address`
```xml
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<xpath expr="//t[@t-set='address']/address" position="replace">
<address>
<t t-if="o.partner_id.invoice_name">
<div><span t-esc="o.partner_id.invoice_name" /></div>
</t>
<t t-if="o.partner_id.address_addition">
<div><span t-esc="o.partner_id.address_addition" /></div>
</t>
<t t-if="o.partner_id.street">
<div><span t-esc="o.partner_id.street" /></div>
</t>
<t t-if="o.partner_id.city and o.partner_id.city">
<div><span t-esc="o.partner_id.zip" /> <span t-esc="o.partner_id.city" /></div>
</t>
<t t-if="o.partner_id.country_id">
<div><span t-esc="o.partner_id.country_id.name" /></div>
</t>
</address>
</xpath>
</data>
```
Source: [snippets/account.report_invoice_document.custom_address.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.custom_address.xml)
### Custom Taxes
ID: `mint_system.account.report_invoice_document.custom_taxes`
```xml
@@ -3840,6 +3956,20 @@ ID: `mint_system.account.view_move_form.domain_partner_bank_ids`
```
Source: [snippets/account.view_move_form.domain_partner_bank_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.domain_partner_bank_ids.xml)
### Edit Invoice Date
ID: `mint_system.account.view_move_form.edit_invoice_date`
```xml
<?xml version="1.0"?>
<data inherit_id="account.view_move_form" priority="50" >
<field name="invoice_date" position="attributes">
<attribute name="attrs">{}</attribute>
</field>
</data>
```
Source: [snippets/account.view_move_form.edit_invoice_date.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.edit_invoice_date.xml)
### Hide Payment Reference
ID: `mint_system.account.view_move_form.hide_payment_reference`
```xml
@@ -4004,6 +4134,24 @@ 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 Duplicate Found
ID: `mint_system.account.view_move_form.x_duplicate_found`
```xml
<?xml version="1.0"?>
<data inherit_id="account.view_move_form" priority="50" >
<header position="after">
<field name="x_duplicate_found" invisible="1"/>
<div groups="account.group_account_invoice" class="alert alert-warning" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('x_duplicate_found', '=', False)]}">
Es existiert eine bestehende Rechnung mit dem gleichen Partner und Total. Stellen sicher, dass diese Rechnung kein Duplikat ist.
<!-- A duplicate invoice with the same partner and total exists. Make sure this invoice is not a duplicate before posting. -->
</div>
</header>
</data>
```
Source: [snippets/account.view_move_form.x_duplicate_found.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.x_duplicate_found.xml)
### X Recurring Inverval
ID: `mint_system.account.view_move_form.x_recurring_inverval`
```xml
@@ -1,28 +1,25 @@
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<!-- Odoo 14.0 -->
<xpath expr="/t/t/div/p[2]" position="after">
<div class="row">
<div class="col">
<span>IBAN: </span>
<span t-field="o.partner_bank_id.acc_number"/>
</div>
</div>
</xpath>
<xpath expr="/t/t/div/div[3]" position="after">
<div class="row">
<div class="col">
<span>Bank/BIC: </span>
<span t-field="o.partner_bank_id.bank_id.display_name"/>
<br/>
<br/>
</div>
</div>
</xpath>
<!-- Odoo 14.0 -->
<xpath expr="/t/t/div/p[2]" position="before">
<t t-if="not o.partner_bank_id._eligible_for_qr_code('ch_qr', o.partner_id, o.currency_id)">
<p>
<span>IBAN: </span>
<b>
<span t-field="o.partner_bank_id.acc_number" />
</b>
<br />
<span>Bank/BIC: </span>
<b>
<span t-field="o.partner_bank_id.bank_id.display_name" />
</b>
</p>
</t>
</xpath>
<!-- Odoo 13.0 -->
<!-- <xpath expr="/t/t/div/p[2]" position="after">
<!-- Odoo 13.0 -->
<!-- <xpath expr="/t/t/div/p[2]" position="after">
<div class="row">
<div class="col">
<span>IBAN: </span>
@@ -41,4 +38,4 @@
</div>
</xpath> -->
</data>
</data>
@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<!-- Remove reference -->
<xpath expr="/t/t/div/div[1]/div[5]" position="replace">
</xpath>
<!-- Add sales person -->
<xpath expr="/t/t/div/div[1]/div[1]" position="after">
<div class="col-auto mw-100 mb-2" t-if="o.invoice_user_id" name="invoice_user_id">
<strong>Salesperson:</strong>
<p class="m-0" t-field="o.invoice_user_id.name" />
</div>
</xpath>
<!-- Add referencce to new line -->
<xpath expr="//div[@id='informations']" position="after">
<div id="informations2" class="row mt32 mb32" t-if="o.ref">
<div class="col-auto mw-100 mb-2" name="reference">
<strong>Reference:</strong>
<p class="m-0" t-field="o.ref" />
</div>
</div>
</xpath>
</data>
@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="50">
<xpath expr="//t[@t-set='address']/address" position="replace">
<address>
<t t-if="o.partner_id.invoice_name">
<div><span t-esc="o.partner_id.invoice_name" /></div>
</t>
<t t-if="o.partner_id.address_addition">
<div><span t-esc="o.partner_id.address_addition" /></div>
</t>
<t t-if="o.partner_id.street">
<div><span t-esc="o.partner_id.street" /></div>
</t>
<t t-if="o.partner_id.city and o.partner_id.city">
<div><span t-esc="o.partner_id.zip" /> <span t-esc="o.partner_id.city" /></div>
</t>
<t t-if="o.partner_id.country_id">
<div><span t-esc="o.partner_id.country_id.name" /></div>
</t>
</address>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="account.view_move_form" priority="50" >
<field name="invoice_date" position="attributes">
<attribute name="attrs">{}</attribute>
</field>
</data>
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<data inherit_id="account.view_move_form" priority="50" >
<header position="after">
<field name="x_duplicate_found" invisible="1"/>
<div groups="account.group_account_invoice" class="alert alert-warning" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('x_duplicate_found', '=', False)]}">
Es existiert eine bestehende Rechnung mit dem gleichen Partner und Total. Stellen sicher, dass diese Rechnung kein Duplikat ist.
<!-- A duplicate invoice with the same partner and total exists. Make sure this invoice is not a duplicate before posting. -->
</div>
</header>
</data>
+27
View File
@@ -0,0 +1,27 @@
---
prev: ./snippets.md
---
# Account Asset
## View Account Asset Form
### Account Ids Optional
ID: `mint_system.account_asset.view_account_asset_form.account_ids_optional`
```xml
<?xml version="1.0"?>
<data inherit_id="account_asset.view_account_asset_form" priority="50">
<field name="account_asset_id" position="attributes">
<attribute name="attrs">{'invisible': ['|', ('display_account_asset_id', '=', False), ('asset_type', '!=', 'purchase')]}</attribute>
</field>
<field name="account_depreciation_expense_id" position="attributes">
<attribute name="required">0</attribute>
</field>
<field name="account_depreciation_id" position="attributes">
<attribute name="required">0</attribute>
</field>
</data>
```
Source: [snippets/account_asset.view_account_asset_form.account_ids_optional.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account_asset.view_account_asset_form.account_ids_optional.xml)
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<data inherit_id="account_asset.view_account_asset_form" priority="50">
<field name="account_asset_id" position="attributes">
<attribute name="attrs">{'invisible': ['|', ('display_account_asset_id', '=', False), ('asset_type', '!=', 'purchase')]}</attribute>
</field>
<field name="account_depreciation_expense_id" position="attributes">
<attribute name="required">0</attribute>
</field>
<field name="account_depreciation_id" position="attributes">
<attribute name="required">0</attribute>
</field>
</data>
+31
View File
@@ -0,0 +1,31 @@
---
prev: ./snippets.md
---
# Account Followup
## Template Followup Report
### Padding Before Table
ID: `mint_system.account_followup.template_followup_report.padding_before_table`
```xml
<?xml version="1.0"?>
<data inherit_id="account_followup.template_followup_report" priority="50">
<xpath expr="//table[hasclass('o_account_reports_table')]" position="attributes">
<attribute name="style">padding-top: 2rem</attribute>
</xpath>
</data>
```
Source: [snippets/account_followup.template_followup_report.padding_before_table.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account_followup.template_followup_report.padding_before_table.xml)
### Remove Summary Placeholder
ID: `mint_system.account_followup.template_followup_report.remove_summary_placeholder`
```xml
<?xml version="1.0"?>
<data inherit_id="account_followup.template_followup_report" priority="50">
<xpath expr="//span[hasclass('o_account_report_summary_placeholder')]" position="replace" />
</data>
```
Source: [snippets/account_followup.template_followup_report.remove_summary_placeholder.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account_followup.template_followup_report.remove_summary_placeholder.xml)
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="account_followup.template_followup_report" priority="50">
<xpath expr="//table[hasclass('o_account_reports_table')]" position="attributes">
<attribute name="style">padding-top: 2rem</attribute>
</xpath>
</data>
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<data inherit_id="account_followup.template_followup_report" priority="50">
<xpath expr="//span[hasclass('o_account_report_summary_placeholder')]" position="replace" />
</data>
+45
View File
@@ -0,0 +1,45 @@
---
prev: ./snippets.md
---
# Account Sale Timesheet Report
## Report Invoice Document
### Add Pagebreak
ID: `mint_system.account_sale_timesheet_report.report_invoice_document.add_pagebreak`
```xml
<?xml version="1.0"?>
<data inherit_id="account_sale_timesheet_report.report_invoice_document" priority="50">
<xpath expr="//div[@id='qrcode']" position="after">
<t t-if="print_with_timesheets">
<p style="page-break-before:always;" />
</t>
</xpath>
</data>
```
Source: [snippets/account_sale_timesheet_report.report_invoice_document.add_pagebreak.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account_sale_timesheet_report.report_invoice_document.add_pagebreak.xml)
## Timesheet Table
### Add Start And End Hour
ID: `mint_system.account_sale_timesheet_report.timesheet_table.add_start_and_end_hour`
```xml
<?xml version="1.0"?>
<data inherit_id="account_sale_timesheet_report.timesheet_table" priority="50">
<xpath expr="//th[@id='date']" position="replace">
<th id="date" class="align-middle"><span>Datum und Uhrzeit</span></th>
</xpath>
<xpath expr="//td[@id='line_date']" position="replace">
<td id="line_date">
<span t-field="line.date"/><br/>
<span t-field="line.from_time" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/>
<span> - </span>
<span t-field="line.until_time" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/>
</td>
</xpath>
</data>
```
Source: [snippets/account_sale_timesheet_report.timesheet_table.add_start_and_end_hour.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account_sale_timesheet_report.timesheet_table.add_start_and_end_hour.xml)
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<data inherit_id="account_sale_timesheet_report.report_invoice_document" priority="50">
<xpath expr="//div[@id='qrcode']" position="after">
<t t-if="print_with_timesheets">
<p style="page-break-before:always;" />
</t>
</xpath>
</data>
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<data inherit_id="account_sale_timesheet_report.timesheet_table" priority="50">
<xpath expr="//th[@id='date']" position="replace">
<th id="date" class="align-middle"><span>Datum und Uhrzeit</span></th>
</xpath>
<xpath expr="//td[@id='line_date']" position="replace">
<td id="line_date">
<span t-field="line.date"/><br/>
<span t-field="line.from_time" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/>
<span> - </span>
<span t-field="line.until_time" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/>
</td>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="base.ir_cron_view_tree" priority="50">
<field name="model_id" position="after">
<field name="ir_actions_server_id" optional="hide"/>
</field>
</data>
+16
View File
@@ -30,6 +30,22 @@ ID: `mint_system.base.contact_name.modify_name`
```
Source: [snippets/base.contact_name.modify_name.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/base.contact_name.modify_name.xml)
## Ir Cron View Tree
### Show Ir Actions Server Id
ID: `mint_system.base.ir_cron_view_tree.show_ir_actions_server_id`
```xml
<?xml version="1.0"?>
<data inherit_id="base.ir_cron_view_tree" priority="50">
<field name="model_id" position="after">
<field name="ir_actions_server_id" optional="hide"/>
</field>
</data>
```
Source: [snippets/base.ir_cron_view_tree.show_ir_actions_server_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/base.ir_cron_view_tree.show_ir_actions_server_id.xml)
## Ir Filters View Form
### Remove Domain Widget
ID: `mint_system.base.ir_filters_view_form.remove_domain_widget`
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="hr_holidays.hr_leave_view_form" priority="50">
<xpath expr="//field[@name='number_of_hours_text']/.." position="attributes">
<attribute name="attrs">{}</attribute>
</xpath>
</data>
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<data inherit_id="hr_holidays.hr_leave_view_tree">
<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" groups="hr.group_hr_user"/>
+46 -15
View File
@@ -36,6 +36,22 @@ ID: `mint_system.hr_holidays.hr_leave_view_form_manager_approve.report_note_grou
```
Source: [snippets/hr_holidays.hr_leave_view_form_manager_approve.report_note_group.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_holidays.hr_leave_view_form_manager_approve.report_note_group.xml)
## Hr Leave View Form
### Show Number Of Hours Always
ID: `mint_system.hr_holidays.hr_leave_view_form.show_number_of_hours_always`
```xml
<?xml version="1.0"?>
<data inherit_id="hr_holidays.hr_leave_view_form" priority="50">
<xpath expr="//field[@name='number_of_hours_text']/.." position="attributes">
<attribute name="attrs">{}</attribute>
</xpath>
</data>
```
Source: [snippets/hr_holidays.hr_leave_view_form.show_number_of_hours_always.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_holidays.hr_leave_view_form.show_number_of_hours_always.xml)
## Hr Leave View Timeline
### View
ID: `mint_system.hr_holidays.hr_leave_view_timeline.view`
@@ -58,21 +74,6 @@ ID: `mint_system.hr_holidays.hr_leave_view_timeline.view`
Source: [snippets/hr_holidays.hr_leave_view_timeline.view.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_holidays.hr_leave_view_timeline.view.xml)
## Hr Leave View Tree
### Add Synced Field
ID: `mint_system.hr_holidays.hr_leave_view_tree.add_synced_field`
```xml
<?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>
```
Source: [snippets/hr_holidays.hr_leave_view_tree.add_synced_field.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_holidays.hr_leave_view_tree.add_synced_field.xml)
### Remove Payslip
ID: `mint_system.hr_holidays.hr_leave_view_tree.remove_payslip`
```xml
@@ -102,3 +103,33 @@ ID: `mint_system.hr_holidays.hr_leave_view_tree.show_days`
```
Source: [snippets/hr_holidays.hr_leave_view_tree.show_days.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_holidays.hr_leave_view_tree.show_days.xml)
### X Synced
ID: `mint_system.hr_holidays.hr_leave_view_tree.x_synced`
```xml
<?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" groups="hr.group_hr_user"/>
</xpath>
</data>
```
Source: [snippets/hr_holidays.hr_leave_view_tree.x_synced.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_holidays.hr_leave_view_tree.x_synced.xml)
## View Holiday Pivot
### X Number Of Hours
ID: `mint_system.hr_holidays.view_holiday_pivot.x_number_of_hours`
```xml
<?xml version="1.0"?>
<data inherit_id="hr_holidays.view_holiday_pivot" priority="50">
<field name="number_of_days" position="after">
<field name="x_number_of_hours" type="measure"/>
</field>
</data>
```
Source: [snippets/hr_holidays.view_holiday_pivot.x_number_of_hours.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_holidays.view_holiday_pivot.x_number_of_hours.xml)
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="hr_holidays.view_holiday_pivot" priority="50">
<field name="number_of_days" position="after">
<field name="x_number_of_hours" type="measure"/>
</field>
</data>
+222
View File
@@ -57,6 +57,228 @@ ID: `mint_system.hr_payroll.hr_salary_rule_form.switch_account`
```
Source: [snippets/hr_payroll.hr_salary_rule_form.switch_account.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_payroll.hr_salary_rule_form.switch_account.xml)
## Report Payslip
### Gio Custom Payroll
ID: `mint_system.hr_payroll.report_payslip.gio_custom_payroll`
```xml
<?xml version="1.0"?>
<data inherit_id="hr_payroll.report_payslip" priority="50">
<template id="gio_payslip_replace" inherit_id="hr_payroll.report_payslip">
<xpath expr="//div[@class='page']" position="replace">
<div class="page" style="font-family:dinot !important;">
<div class="row">
<div class="col-6">
<table name="informations" class="table table-sm information-table mb-0">
<tr name="tr_name">
<th name="th_name" class="text-left m-0 p-0 qweb-border-none lato-medium">
<h2 class="m-0 p-0 h2_custom_info">Payroll</h2>
</th>
</tr>
<tr name="tr_identification_id">
<th name="th_identification_id" class="text-left m-0 p-0 lato-medium"
style="border-top: 1px solid black;">
<span>Identification number</span>
</th>
<td name="td_identification_id" class="text-right m-0 p-0 lato-medium"
style="border-top: 1px solid black;">
<t t-if="o.employee_id and o.employee_id.identification_id">
<span t-field="o.employee_id.identification_id" />
</t>
</td>
</tr>
<tr name="tr_payslip_run_id">
<th name="th_payslip_run_id" class="text-left m-0 p-0 lato-medium"
style="border-top: 1px solid black;">
<span>Payslip run ID</span>
</th>
<td name="td_payslip_run_id" class="text-right m-0 p-0 lato-medium"
style="border-top: 1px solid black;">
<t t-if="o.payslip_run_id and o.payslip_run_id.name">
<span t-field="o.payslip_run_id.name" />
</t>
</td>
</tr>
</table>
</div>
</div>
<div id="total">
<table class="table table-sm o_main_table">
<thead class="o_black_border">
<tr>
<th class="lato-bold text-left">LA</th>
<th class="lato-bold text-left">Name</th>
<th class="lato-bold text-right">Estimate</th>
<th class="lato-bold text-right">Deduction Base</th>
<th class="lato-bold text-right">Amount</th>
</tr>
</thead>
<tbody>
<t t-set="total_deductions" t-value="0" />
<t t-set="amount_payout" t-value="0" />
<span t-foreach="o.line_ids.filtered(lambda line: line.appears_on_payslip)"
t-as="line">
<t t-set="line_style" />
<t t-set="line_class" t-value="'lato-medium'" />
<t t-if="line.code == '5000'">
<t t-set="line_style" t-value="" />
<t t-set="line_class" t-value="'lato-bold'" />
<!-- empty row -->
<tr>
<td colspan="5">
<p></p>
</td>
</tr>
</t>
<t t-if="line.code == 'NET'">
<t t-set="line_style" t-value="'color:#875A7B;'" />
<t t-set="line_class" t-value="'o_total o_border_bottom lato-bold'" />
<t t-set="amount_payout" t-value="line.total" />
<tr class="lato-bold" name="tr_deduction">
<td></td>
<td class="text-left">
<span>Deductions</span>
</td>
<td name="td_deductions" colspan="3" class="text-right">
<span t-esc="'{:.2f}'.format(total_deductions)" />
<t t-if="o.currency_id and o.currency_id.name">
<span t-esc="' %s' % (o.currency_id.name)" />
</t>
</td>
</tr>
</t>
<t t-if="(line.code == 'BASIC') or (line.code == 'GROSS')">
<t t-set="line_style" t-value="'color:#00A09D;'" />
<t t-set="line_class" t-value="'o_subtotal o_border_bottom'" />
</t>
<tr t-att-class="line_class" t-att-style="line_style">
<td class="text-left">
<span t-field="line.code" />
</td>
<td class="text-left">
<span t-field="line.name" />
</td>
<td class="text-right">
<t t-if="o.contract_id and o.contract_id.gio_name">
<t t-if="'AHV' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_ahv)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'ALV' in line.name and not 'ALV 2' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_alv)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'ALV 2' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_alv2)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'NBU' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_nbu)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'KTG m' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_ktgm)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'KTG f' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_ktgf)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'UVG Zuschlag' in line.name and not 'UVG Zuschlag 2' in line.name">
<span
t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_uvg_supplementary_insurance)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'UVG Zuschlag 2' in line.name">
<span
t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_uvg_supplementary_insurance2)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
</t>
<t t-if="'Quellensteuer' in line.name">
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<span t-if="line.quantity > 1" t-esc="line.quantity" />
</td>
<td class="text-right">
<!-- <t
t-if="line.salary_rule_id.gio_amount_python_compute != 'result=0' and line.salary_rule_id.gio_amount_python_compute != 'result = 0'">
<span t-esc="line.get_amount_in_report(line.salary_rule_id)"
t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'
/>
</t> -->
</td>
<td class="text-right">
<span t-esc="line.total"
t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}' />
</td>
</tr>
</span>
<br />
<!-- Bank informations -->
<!-- empty row -->
<tr>
<td colspan="5">
<span>Paid to</span>
</td>
</tr>
<tr class="pt-3">
<td></td>
<td class="lato-medium text-left" name="bank_name">
<t t-if="o.employee_id.bank_account_id and o.employee_id.bank_account_id.bank_id">
<span t-field="o.employee_id.bank_account_id.bank_id.name" />
</t>
</td>
<td colspan="3" class="lato-medium text-right" name="total_payout">
<strong t-esc="amount_payout"
t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}' />
</td>
</tr>
<tr>
<td></td>
<td class="lato-medium text-left" name="bank_iban">
<t t-if="o.employee_id.bank_account_id">
<span>IBAN:</span>
<span t-field="o.employee_id.bank_account_id.acc_number" />
</t>
</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td class="lato-medium text-left" name="bank_bic">
<t t-if="o.employee_id.bank_account_id and o.employee_id.bank_account_id.bank_id">
<span>BIC:</span>
<span t-field="o.employee_id.bank_account_id.bank_id.bic" />
</t>
</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</xpath>
</template>
</data>
```
Source: [snippets/hr_payroll.report_payslip.gio_custom_payroll.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_payroll.report_payslip.gio_custom_payroll.xml)
## View Hr Payslip Form
### Show Gio Amount
ID: `mint_system.hr_payroll.view_hr_payslip_form.show_gio_amount`
@@ -0,0 +1,215 @@
<?xml version="1.0"?>
<data inherit_id="hr_payroll.report_payslip" priority="50">
<template id="gio_payslip_replace" inherit_id="hr_payroll.report_payslip">
<xpath expr="//div[@class='page']" position="replace">
<div class="page" style="font-family:dinot !important;">
<div class="row">
<div class="col-6">
<table name="informations" class="table table-sm information-table mb-0">
<tr name="tr_name">
<th name="th_name" class="text-left m-0 p-0 qweb-border-none lato-medium">
<h2 class="m-0 p-0 h2_custom_info">Payroll</h2>
</th>
</tr>
<tr name="tr_identification_id">
<th name="th_identification_id" class="text-left m-0 p-0 lato-medium"
style="border-top: 1px solid black;">
<span>Identification number</span>
</th>
<td name="td_identification_id" class="text-right m-0 p-0 lato-medium"
style="border-top: 1px solid black;">
<t t-if="o.employee_id and o.employee_id.identification_id">
<span t-field="o.employee_id.identification_id" />
</t>
</td>
</tr>
<tr name="tr_payslip_run_id">
<th name="th_payslip_run_id" class="text-left m-0 p-0 lato-medium"
style="border-top: 1px solid black;">
<span>Payslip run ID</span>
</th>
<td name="td_payslip_run_id" class="text-right m-0 p-0 lato-medium"
style="border-top: 1px solid black;">
<t t-if="o.payslip_run_id and o.payslip_run_id.name">
<span t-field="o.payslip_run_id.name" />
</t>
</td>
</tr>
</table>
</div>
</div>
<div id="total">
<table class="table table-sm o_main_table">
<thead class="o_black_border">
<tr>
<th class="lato-bold text-left">LA</th>
<th class="lato-bold text-left">Name</th>
<th class="lato-bold text-right">Estimate</th>
<th class="lato-bold text-right">Deduction Base</th>
<th class="lato-bold text-right">Amount</th>
</tr>
</thead>
<tbody>
<t t-set="total_deductions" t-value="0" />
<t t-set="amount_payout" t-value="0" />
<span t-foreach="o.line_ids.filtered(lambda line: line.appears_on_payslip)"
t-as="line">
<t t-set="line_style" />
<t t-set="line_class" t-value="'lato-medium'" />
<t t-if="line.code == '5000'">
<t t-set="line_style" t-value="" />
<t t-set="line_class" t-value="'lato-bold'" />
<!-- empty row -->
<tr>
<td colspan="5">
<p></p>
</td>
</tr>
</t>
<t t-if="line.code == 'NET'">
<t t-set="line_style" t-value="'color:#875A7B;'" />
<t t-set="line_class" t-value="'o_total o_border_bottom lato-bold'" />
<t t-set="amount_payout" t-value="line.total" />
<tr class="lato-bold" name="tr_deduction">
<td></td>
<td class="text-left">
<span>Deductions</span>
</td>
<td name="td_deductions" colspan="3" class="text-right">
<span t-esc="'{:.2f}'.format(total_deductions)" />
<t t-if="o.currency_id and o.currency_id.name">
<span t-esc="' %s' % (o.currency_id.name)" />
</t>
</td>
</tr>
</t>
<t t-if="(line.code == 'BASIC') or (line.code == 'GROSS')">
<t t-set="line_style" t-value="'color:#00A09D;'" />
<t t-set="line_class" t-value="'o_subtotal o_border_bottom'" />
</t>
<tr t-att-class="line_class" t-att-style="line_style">
<td class="text-left">
<span t-field="line.code" />
</td>
<td class="text-left">
<span t-field="line.name" />
</td>
<td class="text-right">
<t t-if="o.contract_id and o.contract_id.gio_name">
<t t-if="'AHV' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_ahv)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'ALV' in line.name and not 'ALV 2' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_alv)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'ALV 2' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_alv2)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'NBU' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_nbu)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'KTG m' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_ktgm)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'KTG f' in line.name">
<span t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_ktgf)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'UVG Zuschlag' in line.name and not 'UVG Zuschlag 2' in line.name">
<span
t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_uvg_supplementary_insurance)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<t t-if="'UVG Zuschlag 2' in line.name">
<span
t-esc="'{:.3f}'.format(o.contract_id.gio_name.gio_uvg_supplementary_insurance2)" />
<span t-esc="' %'" />
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
</t>
<t t-if="'Quellensteuer' in line.name">
<t t-set="total_deductions" t-value="total_deductions + line.total" />
</t>
<span t-if="line.quantity > 1" t-esc="line.quantity" />
</td>
<td class="text-right">
<!-- <t
t-if="line.salary_rule_id.gio_amount_python_compute != 'result=0' and line.salary_rule_id.gio_amount_python_compute != 'result = 0'">
<span t-esc="line.get_amount_in_report(line.salary_rule_id)"
t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'
/>
</t> -->
</td>
<td class="text-right">
<span t-esc="line.total"
t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}' />
</td>
</tr>
</span>
<br />
<!-- Bank informations -->
<!-- empty row -->
<tr>
<td colspan="5">
<span>Paid to</span>
</td>
</tr>
<tr class="pt-3">
<td></td>
<td class="lato-medium text-left" name="bank_name">
<t t-if="o.employee_id.bank_account_id and o.employee_id.bank_account_id.bank_id">
<span t-field="o.employee_id.bank_account_id.bank_id.name" />
</t>
</td>
<td colspan="3" class="lato-medium text-right" name="total_payout">
<strong t-esc="amount_payout"
t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}' />
</td>
</tr>
<tr>
<td></td>
<td class="lato-medium text-left" name="bank_iban">
<t t-if="o.employee_id.bank_account_id">
<span>IBAN:</span>
<span t-field="o.employee_id.bank_account_id.acc_number" />
</t>
</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td class="lato-medium text-left" name="bank_bic">
<t t-if="o.employee_id.bank_account_id and o.employee_id.bank_account_id.bank_id">
<span>BIC:</span>
<span t-field="o.employee_id.bank_account_id.bank_id.bic" />
</t>
</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</xpath>
</template>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="hr_timesheet.hr_timesheet_line_tree" priority="50">
<xpath expr="//tree" position="attributes">
<attribute name="editable"></attribute>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="hr_timesheet.hr_timesheet_line_tree" priority="50">
<xpath expr="//field[@name='task_id']" position="attributes">
<attribute name="required">1</attribute>
</xpath>
</data>
+30
View File
@@ -3,6 +3,21 @@ prev: ./snippets.md
---
# Hr Timesheet
## Hr Timesheet Line Tree
### Disable Editable
ID: `mint_system.hr_timesheet.hr_timesheet_line_tree.disable_editable`
```xml
<?xml version="1.0"?>
<data inherit_id="hr_timesheet.hr_timesheet_line_tree" priority="50">
<xpath expr="//tree" position="attributes">
<attribute name="editable"></attribute>
</xpath>
</data>
```
Source: [snippets/hr_timesheet.hr_timesheet_line_tree.disable_editable.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_timesheet.hr_timesheet_line_tree.disable_editable.xml)
### Invoice Details
ID: `mint_system.hr_timesheet.hr_timesheet_line_tree.invoice_details`
```xml
@@ -38,6 +53,21 @@ ID: `mint_system.hr_timesheet.hr_timesheet_line_tree.show_partner_id`
```
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)
### Taks Id Required
ID: `mint_system.hr_timesheet.hr_timesheet_line_tree.taks_id_required`
```xml
<?xml version="1.0"?>
<data inherit_id="hr_timesheet.hr_timesheet_line_tree" priority="50">
<xpath expr="//field[@name='task_id']" position="attributes">
<attribute name="required">1</attribute>
</xpath>
</data>
```
Source: [snippets/hr_timesheet.hr_timesheet_line_tree.taks_id_required.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_timesheet.hr_timesheet_line_tree.taks_id_required.xml)
## Portal My Timesheets
### Show Billable
ID: `mint_system.hr_timesheet.portal_my_timesheets.show_billable`
@@ -0,0 +1,30 @@
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_duplicate_found" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Duplikat Gefunden</field>
<field name="model">account.move</field>
<field name="model_id" ref="account.model_account_move"/>
<field name="name">x_duplicate_found</field>
<field name="store" eval="False"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">boolean</field>
<field name="depends">partner_id,amount_total,state</field>
<field name="compute">for rec in self:
if rec.state == 'draft' and rec.move_type == 'in_invoice':
invoice_id = self.env['account.move'].search([
('state', '=', 'posted'),
('partner_id', '=', rec.partner_id.id),
('amount_total', '=', rec.amount_total)
], limit=1)
if invoice_id:
rec['x_duplicate_found'] = True
else:
rec['x_duplicate_found'] = False
else:
rec['x_duplicate_found'] = False</field>
</record>
</odoo>
@@ -0,0 +1,19 @@
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_number_of_hours" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Dauer (Stunden)</field>
<field name="model">hr.leave</field>
<field name="model_id" ref="hr.model_hr_leave"/>
<field name="name">x_number_of_hours</field>
<field name="store" eval="True"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">float</field>
<field name="depends">number_of_hours_display</field>
<field name="compute">for leave in self:
leave['x_number_of_hours'] = round(leave.number_of_hours_display, 2)</field>ld>
</record>
</odoo>
+232 -7
View File
@@ -142,6 +142,43 @@ ID: `mint_system.ir_model.account_move.x_date_done`
```
Source: [snippets/ir_model.account_move.x_date_done.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.account_move.x_date_done.xml)
### X Duplicate Found
ID: `mint_system.ir_model.account_move.x_duplicate_found`
```xml
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_duplicate_found" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Duplikat Gefunden</field>
<field name="model">account.move</field>
<field name="model_id" ref="account.model_account_move"/>
<field name="name">x_duplicate_found</field>
<field name="store" eval="False"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">boolean</field>
<field name="depends">partner_id,amount_total,state</field>
<field name="compute">for rec in self:
if rec.state == 'draft' and rec.move_type == 'in_invoice':
invoice_id = self.env['account.move'].search([
('state', '=', 'posted'),
('partner_id', '=', rec.partner_id.id),
('amount_total', '=', rec.amount_total)
], limit=1)
if invoice_id:
rec['x_duplicate_found'] = True
else:
rec['x_duplicate_found'] = False
else:
rec['x_duplicate_found'] = False</field>
</record>
</odoo>
```
Source: [snippets/ir_model.account_move.x_duplicate_found.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.account_move.x_duplicate_found.xml)
### X Picking List
ID: `mint_system.ir_model.account_move.x_picking_list`
```xml
@@ -553,6 +590,33 @@ 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 Leave
### X Number Of Hours
ID: `mint_system.ir_model.hr_leave.x_number_of_hours`
```xml
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_number_of_hours" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Dauer (Stunden)</field>
<field name="model">hr.leave</field>
<field name="model_id" ref="hr.model_hr_leave"/>
<field name="name">x_number_of_hours</field>
<field name="store" eval="True"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">float</field>
<field name="depends">number_of_hours_display</field>
<field name="compute">for leave in self:
leave['x_number_of_hours'] = round(leave.number_of_hours_display, 2)</field>ld>
</record>
</odoo>
```
Source: [snippets/ir_model.hr_leave.x_number_of_hours.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.hr_leave.x_number_of_hours.xml)
## Hr Payslip Line
### X Code Name
ID: `mint_system.ir_model.hr_payslip_line.x_code_name`
@@ -873,6 +937,29 @@ ID: `mint_system.ir_model.product_template.x_hide_on_delivery`
```
Source: [snippets/ir_model.product_template.x_hide_on_delivery.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.product_template.x_hide_on_delivery.xml)
### X Hide On Sale Order
ID: `mint_system.ir_model.product_template.x_hide_on_sale_order`
```xml
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_hide_on_sale_order" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Auf Verkaufsangebot ausblenden</field>
<field name="model">product.template</field>
<field name="model_id" ref="product.model_product_template"/>
<field name="name">x_hide_on_sale_order</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="copied" eval="True"/>
<field name="ttype">boolean</field>
</record>
</odoo>
```
Source: [snippets/ir_model.product_template.x_hide_on_sale_order.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.product_template.x_hide_on_sale_order.xml)
### X Product Label
ID: `mint_system.ir_model.product_template.x_product_label`
```xml
@@ -965,14 +1052,13 @@ ID: `mint_system.ir_model.project_task.x_business_requirement_id`
<field name="name">x_business_requirement_id</field>
<field name="state">manual</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="copied" eval="True"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">many2one</field>
<field name="relation">business.requirement</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>
<field name="depends">project_id,name,partner_id</field>
<field name="compute">for rec in self:
rec['x_business_requirement_id'] = self.env['business.requirement'].search([('x_task_id', '=', rec.id)], limit=1)</field>
</record>
</odoo>
@@ -980,6 +1066,33 @@ ID: `mint_system.ir_model.project_task.x_business_requirement_id`
```
Source: [snippets/ir_model.project_task.x_business_requirement_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.project_task.x_business_requirement_id.xml)
### X Lead Id
ID: `mint_system.ir_model.project_task.x_lead_id`
```xml
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_lead_id" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Lead</field>
<field name="model">crm.lead</field>
<field name="model_id" ref="crm.model_crm_lead"/>
<field name="name">x_lead_id</field>
<field name="state">manual</field>
<field name="store" eval="True"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">many2one</field>
<field name="relation">crm.lead</field>
<field name="depends">project_id,name,partner_id</field>
<field name="compute">for rec in self:
rec['x_lead_id'] = self.env['crm.lead'].search([('x_task_id', '=', rec.id)], limit=1)</field>
</record>
</odoo>
```
Source: [snippets/ir_model.project_task.x_lead_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.project_task.x_lead_id.xml)
### X Vehicle Id
ID: `mint_system.ir_model.project_task.x_vehicle_id`
```xml
@@ -1245,6 +1358,32 @@ ID: `mint_system.ir_model.res_partner.x_stock_move_ids`
```
Source: [snippets/ir_model.res_partner.x_stock_move_ids.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.res_partner.x_stock_move_ids.xml)
## Sale Blanket Order Line
### X Product Uom Category Id
ID: `mint_system.ir_model.sale_blanket_order_line.x_product_uom_category_id`
```xml
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_product_uom_category_id" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Kategorie</field>
<field name="model">sale.blanket.order.line</field>
<field name="model_id" ref="sale.model_sale_blanket_order_line"/>
<field name="name">x_product_uom_category_id</field>
<field name="store" eval="False"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">Many2One</field>
<field name="relation">uom.category</field>
<field name="related">product_id.uom_id.category_id</field>
</record>
</odoo>
```
Source: [snippets/ir_model.sale_blanket_order_line.x_product_uom_category_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.sale_blanket_order_line.x_product_uom_category_id.xml)
## Sale Order Line
### X Categ Id
ID: `mint_system.ir_model.sale_order_line.x_categ_id`
@@ -1511,7 +1650,7 @@ ID: `mint_system.ir_model.sale_order_line.x_weight_delivered`
<field name="readonly" eval="True" />
<field name="copied" eval="False" />
<field name="ttype">float</field>
<field name="depends">qty_delivered</field>
<field name="depends">qty_delivered,product_id.weight</field>
<field name="compute">for rec in self:
rec['x_weight_delivered'] = rec.product_id.weight * rec.qty_delivered</field>
</record>
@@ -1572,6 +1711,58 @@ ID: `mint_system.ir_model.sale_order.x_studio_description`
```
Source: [snippets/ir_model.sale_order.x_studio_description.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.sale_order.x_studio_description.xml)
## Stock Location
### X Should Be Valued
ID: `mint_system.ir_model.stock_location.x_should_be_valued`
```xml
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_should_be_valued" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Should be valued</field>
<field name="model">stock.location</field>
<field name="model_id" ref="stock.model_stock_location"/>
<field name="name">x_should_be_valued</field>
<field name="store" eval="False"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">boolean</field>
<field name="depends">usage</field>
<field name="compute">for rec in self:
rec['x_should_be_valued'] = rec._should_be_valued()
</field>
</record>
</odoo>
```
Source: [snippets/ir_model.stock_location.x_should_be_valued.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.stock_location.x_should_be_valued.xml)
## Stock Move Line
### X Position
ID: `mint_system.ir_model.stock_move_line.x_position`
```xml
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_position" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Pos</field>
<field name="model">stock.move.line</field>
<field name="model_id" ref="stock.model_stock_move_line"/>
<field name="name">x_position</field>
<field name="store" eval="False"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">many2one</field>
<field name="relation">stock.move</field>
<field name="related">move_id</field>
</record>
</odoo>
```
Source: [snippets/ir_model.stock_move_line.x_position.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.stock_move_line.x_position.xml)
## Stock Move
### X Count Boxes
ID: `mint_system.ir_model.stock_move.x_count_boxes`
@@ -1898,3 +2089,37 @@ ID: `mint_system.ir_model.stock_quant.x_last_delivery_partner_id`
```
Source: [snippets/ir_model.stock_quant.x_last_delivery_partner_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.stock_quant.x_last_delivery_partner_id.xml)
## Stock Valuation Layer
### X Quant Location Id
ID: `mint_system.ir_model.stock_valuation_layer.x_quant_location_id`
```xml
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="x_quant_location_id" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Lagerort Bestand</field>
<field name="model">stock.valuation.layer</field>
<field name="model_id" ref="stock.model_stock_valuation_layer" />
<field name="name">x_quant_location_id</field>
<field name="state">manual</field>
<field name="store" eval="True" />
<field name="readonly" eval="True" />
<field name="copied" eval="False" />
<field name="ttype">many2one</field>
<field name="relation">stock.location</field>
<field name="depends">stock_move_id.location_id,stock_move_id.location_dest_id</field>
<field name="compute">for record in self:
if (record.stock_move_id.picking_code == "outgoing"):
record['x_quant_location_id'] = record.stock_move_id.location_id.id
elif (record.stock_move_id.picking_code == "incoming"):
record['x_quant_location_id'] = record.stock_move_id.location_dest_id.id
else:
record['x_quant_location_id'] = record.stock_move_id.location_dest_id.id
</field>
</record>
</odoo>
```
Source: [snippets/ir_model.stock_valuation_layer.x_quant_location_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.stock_valuation_layer.x_quant_location_id.xml)
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_hide_on_sale_order" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Auf Verkaufsangebot ausblenden</field>
<field name="model">product.template</field>
<field name="model_id" ref="product.model_product_template"/>
<field name="name">x_hide_on_sale_order</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="copied" eval="True"/>
<field name="ttype">boolean</field>
</record>
</odoo>
@@ -9,14 +9,13 @@
<field name="name">x_business_requirement_id</field>
<field name="state">manual</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="copied" eval="True"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">many2one</field>
<field name="relation">business.requirement</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>
<field name="depends">project_id,name,partner_id</field>
<field name="compute">for rec in self:
rec['x_business_requirement_id'] = self.env['business.requirement'].search([('x_task_id', '=', rec.id)], limit=1)</field>
</record>
</odoo>
@@ -0,0 +1,21 @@
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_lead_id" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Lead</field>
<field name="model">crm.lead</field>
<field name="model_id" ref="crm.model_crm_lead"/>
<field name="name">x_lead_id</field>
<field name="state">manual</field>
<field name="store" eval="True"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">many2one</field>
<field name="relation">crm.lead</field>
<field name="depends">project_id,name,partner_id</field>
<field name="compute">for rec in self:
rec['x_lead_id'] = self.env['crm.lead'].search([('x_task_id', '=', rec.id)], limit=1)</field>
</record>
</odoo>
@@ -0,0 +1,18 @@
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_product_uom_category_id" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Kategorie</field>
<field name="model">sale.blanket.order.line</field>
<field name="model_id" ref="sale.model_sale_blanket_order_line"/>
<field name="name">x_product_uom_category_id</field>
<field name="store" eval="False"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">Many2One</field>
<field name="relation">uom.category</field>
<field name="related">product_id.uom_id.category_id</field>
</record>
</odoo>
@@ -11,7 +11,7 @@
<field name="readonly" eval="True" />
<field name="copied" eval="False" />
<field name="ttype">float</field>
<field name="depends">qty_delivered</field>
<field name="depends">qty_delivered,product_id.weight</field>
<field name="compute">for rec in self:
rec['x_weight_delivered'] = rec.product_id.weight * rec.qty_delivered</field>
</record>
@@ -0,0 +1,20 @@
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_should_be_valued" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Should be valued</field>
<field name="model">stock.location</field>
<field name="model_id" ref="stock.model_stock_location"/>
<field name="name">x_should_be_valued</field>
<field name="store" eval="False"/>
<field name="readonly" eval="True"/>
<field name="copied" eval="False"/>
<field name="ttype">boolean</field>
<field name="depends">usage</field>
<field name="compute">for rec in self:
rec['x_should_be_valued'] = rec._should_be_valued()
</field>
</record>
</odoo>
@@ -0,0 +1,27 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="x_quant_location_id" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Lagerort Bestand</field>
<field name="model">stock.valuation.layer</field>
<field name="model_id" ref="stock.model_stock_valuation_layer" />
<field name="name">x_quant_location_id</field>
<field name="state">manual</field>
<field name="store" eval="True" />
<field name="readonly" eval="True" />
<field name="copied" eval="False" />
<field name="ttype">many2one</field>
<field name="relation">stock.location</field>
<field name="depends">stock_move_id.location_id,stock_move_id.location_dest_id</field>
<field name="compute">for record in self:
if (record.stock_move_id.picking_code == "outgoing"):
record['x_quant_location_id'] = record.stock_move_id.location_id.id
elif (record.stock_move_id.picking_code == "incoming"):
record['x_quant_location_id'] = record.stock_move_id.location_dest_id.id
else:
record['x_quant_location_id'] = record.stock_move_id.location_dest_id.id
</field>
</record>
</odoo>
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<data inherit_id="l10n_ch.l10n_ch_swissqr_template" priority="50">
<xpath expr="//div[@class='swissqr_page_title']" position="before">
<style>
.swissqr_page_title {
padding-top: 200px;
}
</style>
</xpath>
</data>
+18
View File
@@ -18,6 +18,24 @@ ID: `mint_system.l10n_ch.isr_invoice_form.disable_print_buttons`
Source: [snippets/l10n_ch.isr_invoice_form.disable_print_buttons.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/l10n_ch.isr_invoice_form.disable_print_buttons.xml)
## L10n Ch Swissqr Template
### Add Title Padding
ID: `mint_system.l10n_ch.l10n_ch_swissqr_template.add_title_padding`
```xml
<?xml version="1.0"?>
<data inherit_id="l10n_ch.l10n_ch_swissqr_template" priority="50">
<xpath expr="//div[@class='swissqr_page_title']" position="before">
<style>
.swissqr_page_title {
padding-top: 200px;
}
</style>
</xpath>
</data>
```
Source: [snippets/l10n_ch.l10n_ch_swissqr_template.add_title_padding.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/l10n_ch.l10n_ch_swissqr_template.add_title_padding.xml)
### Modify Header Style
ID: `mint_system.l10n_ch.l10n_ch_swissqr_template.modify_header_style`
```xml
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<data inherit_id="mail.mail_notification_light" priority="50">
<xpath expr="//t[1]/table[1]/tr[2]" position="replace" />
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="mail.mail_notification_light" priority="60">
<xpath expr="//span[1]" position="replace">
<span style="font-size: 10px;"><t t-esc="model_description or 'document'"/></span><br/>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="mail.mail_notification_paynow" priority="60">
<xpath expr="//td[1]/span[1]" position="replace">
<span style="font-size: 10px;"><t t-esc="model_description or 'document'"/></span><br/>
</xpath>
</data>
+60
View File
@@ -138,6 +138,19 @@ ID: `mint_system.mail.mail_notification_light.align_left`
```
Source: [snippets/mail.mail_notification_light.align_left.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_light.align_left.xml)
### Debrand
ID: `mint_system.mail.mail_notification_light.debrand`
```xml
<?xml version="1.0"?>
<data inherit_id="mail.mail_notification_light" priority="50">
<xpath expr="//t[1]/table[1]/tr[2]" position="replace" />
</data>
```
Source: [snippets/mail.mail_notification_light.debrand.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_light.debrand.xml)
### Reduce To Content
ID: `mint_system.mail.mail_notification_light.reduce_to_content`
```xml
@@ -207,6 +220,20 @@ ID: `mint_system.mail.mail_notification_light.replace_footer`
```
Source: [snippets/mail.mail_notification_light.replace_footer.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_light.replace_footer.xml)
### Set Model Name
ID: `mint_system.mail.mail_notification_light.set_model_name`
```xml
<?xml version="1.0"?>
<data inherit_id="mail.mail_notification_light" priority="60">
<xpath expr="//span[1]" position="replace">
<span style="font-size: 10px;"><t t-esc="model_description or 'document'"/></span><br/>
</xpath>
</data>
```
Source: [snippets/mail.mail_notification_light.set_model_name.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_light.set_model_name.xml)
### White Background
ID: `mint_system.mail.mail_notification_light.white_background`
```xml
@@ -320,6 +347,20 @@ ID: `mint_system.mail.mail_notification_paynow.replace_footer`
```
Source: [snippets/mail.mail_notification_paynow.replace_footer.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_paynow.replace_footer.xml)
### Set Model Name
ID: `mint_system.mail.mail_notification_paynow.set_model_name`
```xml
<?xml version="1.0"?>
<data inherit_id="mail.mail_notification_paynow" priority="60">
<xpath expr="//td[1]/span[1]" position="replace">
<span style="font-size: 10px;"><t t-esc="model_description or 'document'"/></span><br/>
</xpath>
</data>
```
Source: [snippets/mail.mail_notification_paynow.set_model_name.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_paynow.set_model_name.xml)
### White Background
ID: `mint_system.mail.mail_notification_paynow.white_background`
```xml
@@ -368,3 +409,22 @@ ID: `mint_system.mail.message_activity_assigned.remove_access_link`
```
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)
### Set Access Link My Activities
ID: `mint_system.mail.message_activity_assigned.set_access_link_my_activities`
```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;">
<a href="/web?debug=1#action=365&amp;model=mail.activity&amp;view_type=kanban&amp;cids=1&amp;menu_id=1" style="background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;">
My Activities
<!-- Meine Aktivitäten -->
</a>
</p>
</xpath>
</data>
```
Source: [snippets/mail.message_activity_assigned.set_access_link_my_activities.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.message_activity_assigned.set_access_link_my_activities.xml)
@@ -0,0 +1,13 @@
<?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;">
<a href="/web?debug=1#action=365&amp;model=mail.activity&amp;view_type=kanban&amp;cids=1&amp;menu_id=1" style="background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;">
My Activities
<!-- Meine Aktivitäten -->
</a>
</p>
</xpath>
</data>
@@ -19,7 +19,7 @@
font-weight: bold;
text-align: center;
border-bottom: solid 1px;
line-height: 30mm;
line-height: 1;
}
.description {
font-size: 9mm;
@@ -64,7 +64,7 @@
<div class="page">
<div class="label">
<div class="row title">
<div class="col-6">
<div class="col-6 box">
<span t-esc="move.product_id.default_code"/>
</div>
<div t-if="move.product_id.barcode" class="col-6 box text-right">
+2 -2
View File
@@ -248,7 +248,7 @@ ID: `mint_system.mrp.label_production_view_pdf.trimada`
font-weight: bold;
text-align: center;
border-bottom: solid 1px;
line-height: 30mm;
line-height: 1;
}
.description {
font-size: 9mm;
@@ -293,7 +293,7 @@ ID: `mint_system.mrp.label_production_view_pdf.trimada`
<div class="page">
<div class="label">
<div class="row title">
<div class="col-6">
<div class="col-6 box">
<span t-esc="move.product_id.default_code"/>
</div>
<div t-if="move.product_id.barcode" class="col-6 box text-right">
+72 -1
View File
@@ -2,6 +2,48 @@
prev: ./snippets.md
---
# Product
## Product Normal Form View
### Add Feeder Id
ID: `mint_system.product.product_normal_form_view.add_feeder_id`
```xml
<?xml version="1.0"?>
<data inherit_id="product.product_normal_form_view" priority="50">
<xpath expr="//page[@name='general_information']//field[@name='categ_id']" position="after">
<field name="feeder_id"/>
</xpath>
</data>
```
Source: [snippets/product.product_normal_form_view.add_feeder_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_normal_form_view.add_feeder_id.xml)
### Hide Default Code
ID: `mint_system.product.product_normal_form_view.hide_default_code`
```xml
<?xml version="1.0"?>
<data inherit_id="product.product_normal_form_view" priority="50">
<xpath expr="//page[@name='general_information']//field[@name='default_code']" position="replace"/>
</data>
```
Source: [snippets/product.product_normal_form_view.hide_default_code.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_normal_form_view.hide_default_code.xml)
### Relocate Barcode
ID: `mint_system.product.product_normal_form_view.relocate_barcode`
```xml
<?xml version="1.0"?>
<data inherit_id="product.product_normal_form_view" priority="50">
<xpath expr="//page[@name='general_information']//field[@name='barcode']" position="replace"/>
<xpath expr="//page[@name='general_information']//field[@name='categ_id']" position="after">
<field name="barcode"/>
</xpath>
</data>
```
Source: [snippets/product.product_normal_form_view.relocate_barcode.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_normal_form_view.relocate_barcode.xml)
## Product Normal Only Form View
### Add X Product Label
ID: `mint_system.product.product_normal_only_form_view.add_x_product_label`
@@ -318,6 +360,20 @@ ID: `mint_system.product.product_template_only_form_view.x_hide_on_delivery`
```
Source: [snippets/product.product_template_only_form_view.x_hide_on_delivery.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_template_only_form_view.x_hide_on_delivery.xml)
### X Hide On Sale Order
ID: `mint_system.product.product_template_only_form_view.x_hide_on_sale_order`
```xml
<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">
<field name="description_sale" position="after">
<field name="x_hide_on_sale_order" widget="boolean_toggle" />
</field>
</data>
```
Source: [snippets/product.product_template_only_form_view.x_hide_on_sale_order.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_template_only_form_view.x_hide_on_sale_order.xml)
### X Storage Temperature
ID: `mint_system.product.product_template_only_form_view.x_storage_temperature`
```xml
@@ -348,6 +404,20 @@ ID: `mint_system.product.product_template_search_view.add_type_description`
```
Source: [snippets/product.product_template_search_view.add_type_description.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_template_search_view.add_type_description.xml)
### Modify Name
ID: `mint_system.product.product_template_search_view.modify_name`
```xml
<?xml version="1.0"?>
<data inherit_id="product.product_template_search_view" priority="50">
<xpath expr="//field[@name='name']" position="replace">
<field name="name" string="Product" filter_domain="['|', '|', '|', '|','|',('default_code', 'ilike', self), ('product_variant_ids.default_code', 'ilike', self),('name', 'ilike', self), ('barcode', 'ilike', self), ('type_description', 'ilike', self), ('type_description2', 'ilike', self)]"/>
</xpath>
</data>
```
Source: [snippets/product.product_template_search_view.modify_name.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_template_search_view.modify_name.xml)
## Product Template Tree View
### Add Default Code And Type Description
ID: `mint_system.product.product_template_tree_view.add_default_code_and_type_description`
@@ -482,6 +552,7 @@ ID: `mint_system.product.report_producttemplatelabel.trimada`
font-weight: bold;
text-align: center;
border-bottom: solid 1px;
line-height: 1;
}
.frame {
border-bottom: solid 1px;
@@ -522,7 +593,7 @@ ID: `mint_system.product.report_producttemplatelabel.trimada`
<div class="page">
<div class="label">
<div class="row title">
<div class="col-6 box1">
<div class="col-6 box2">
<span t-esc="product.default_code"/>
</div>
<div t-if="product.barcode" class="col-6 box2 text-right">
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<data inherit_id="product.product_normal_form_view" priority="50">
<xpath expr="//page[@name='general_information']//field[@name='categ_id']" position="after">
<field name="feeder_id"/>
</xpath>
</data>
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<data inherit_id="product.product_normal_form_view" priority="50">
<xpath expr="//page[@name='general_information']//field[@name='default_code']" position="replace"/>
</data>
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<data inherit_id="product.product_normal_form_view" priority="50">
<xpath expr="//page[@name='general_information']//field[@name='barcode']" position="replace"/>
<xpath expr="//page[@name='general_information']//field[@name='categ_id']" position="after">
<field name="barcode"/>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">
<field name="description_sale" position="after">
<field name="x_hide_on_sale_order" widget="boolean_toggle" />
</field>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="product.product_template_search_view" priority="50">
<xpath expr="//field[@name='name']" position="replace">
<field name="name" string="Product" filter_domain="['|', '|', '|', '|','|',('default_code', 'ilike', self), ('product_variant_ids.default_code', 'ilike', self),('name', 'ilike', self), ('barcode', 'ilike', self), ('type_description', 'ilike', self), ('type_description2', 'ilike', self)]"/>
</xpath>
</data>
@@ -21,6 +21,7 @@
font-weight: bold;
text-align: center;
border-bottom: solid 1px;
line-height: 1;
}
.frame {
border-bottom: solid 1px;
@@ -61,7 +62,7 @@
<div class="page">
<div class="label">
<div class="row title">
<div class="col-6 box1">
<div class="col-6 box2">
<span t-esc="product.default_code"/>
</div>
<div t-if="product.barcode" class="col-6 box2 text-right">
+92
View File
@@ -50,6 +50,83 @@ ID: `mint_system.project.view_task_form2.parent_domain`
```
Source: [snippets/project.view_task_form2.parent_domain.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/project.view_task_form2.parent_domain.xml)
### Remove Timer Buttons
ID: `mint_system.project.view_task_form2.remove_timer_buttons`
```xml
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<button name="action_timer_start" position="replace"/>
<button name="action_timer_stop" position="replace"/>
<button name="action_timer_pause" position="replace"/>
<button name="action_timer_resume" position="replace"/>
</data>
```
Source: [snippets/project.view_task_form2.remove_timer_buttons.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/project.view_task_form2.remove_timer_buttons.xml)
### Show Allow Timesheets
ID: `mint_system.project.view_task_form2.show_allow_timesheets`
```xml
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<xpath expr="//field[@name='analytic_account_id']" position="after">
<field name="allow_timesheets"/>
</xpath>
</data>
```
Source: [snippets/project.view_task_form2.show_allow_timesheets.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/project.view_task_form2.show_allow_timesheets.xml)
### Show Analytic Account Active
ID: `mint_system.project.view_task_form2.show_analytic_account_active`
```xml
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<xpath expr="//field[@name='analytic_account_id']" position="after">
<field name="analytic_account_active"/>
</xpath>
</data>
```
Source: [snippets/project.view_task_form2.show_analytic_account_active.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/project.view_task_form2.show_analytic_account_active.xml)
### Show Display Timesheet Timer
ID: `mint_system.project.view_task_form2.show_display_timesheet_timer`
```xml
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<xpath expr="//field[@name='analytic_account_id']" position="after">
<field name="display_timesheet_timer"/>
</xpath>
</data>
```
Source: [snippets/project.view_task_form2.show_display_timesheet_timer.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/project.view_task_form2.show_display_timesheet_timer.xml)
### Show Encode Uom In Days
ID: `mint_system.project.view_task_form2.show_encode_uom_in_days`
```xml
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<xpath expr="//field[@name='analytic_account_id']" position="after">
<field name="encode_uom_in_days"/>
</xpath>
</data>
```
Source: [snippets/project.view_task_form2.show_encode_uom_in_days.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/project.view_task_form2.show_encode_uom_in_days.xml)
### Show Gantt Dates
ID: `mint_system.project.view_task_form2.show_gantt_dates`
```xml
@@ -133,6 +210,21 @@ ID: `mint_system.project.view_task_form2.x_business_requirement_id`
```
Source: [snippets/project.view_task_form2.x_business_requirement_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/project.view_task_form2.x_business_requirement_id.xml)
### X Lead Id
ID: `mint_system.project.view_task_form2.x_lead_id`
```xml
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<field name="partner_id" position="before">
<field name="x_lead_id" attrs="{'invisible': [('x_lead_id','=', False)]}" />
</field>
</data>
```
Source: [snippets/project.view_task_form2.x_lead_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/project.view_task_form2.x_lead_id.xml)
### X Vehicle Id
ID: `mint_system.project.view_task_form2.x_vehicle_id`
```xml
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<button name="action_timer_start" position="replace"/>
<button name="action_timer_stop" position="replace"/>
<button name="action_timer_pause" position="replace"/>
<button name="action_timer_resume" position="replace"/>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<xpath expr="//field[@name='analytic_account_id']" position="after">
<field name="allow_timesheets"/>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<xpath expr="//field[@name='analytic_account_id']" position="after">
<field name="analytic_account_active"/>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<xpath expr="//field[@name='analytic_account_id']" position="after">
<field name="display_timesheet_timer"/>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<xpath expr="//field[@name='analytic_account_id']" position="after">
<field name="encode_uom_in_days"/>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="project.view_task_form2" priority="50">
<field name="partner_id" position="before">
<field name="x_lead_id" attrs="{'invisible': [('x_lead_id','=', False)]}" />
</field>
</data>
+107 -72
View File
@@ -33,6 +33,21 @@ ID: `mint_system.purchase.mail_notification_confirm.modify_buttons`
Source: [snippets/purchase.mail_notification_confirm.modify_buttons.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase.mail_notification_confirm.modify_buttons.xml)
## Purchase Order Form
### Add Qty To Invoice
ID: `mint_system.purchase.purchase_order_form.add_qty_to_invoice`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//page[@name='products']//tree/field[@name='date_planned']" position="after">
<field name="qty_to_invoice" optional="hide"/>
</xpath>
</data>
```
Source: [snippets/purchase.purchase_order_form.add_qty_to_invoice.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase.purchase_order_form.add_qty_to_invoice.xml)
### Add X Comment
ID: `mint_system.purchase.purchase_order_form.add_x_comment`
```xml
@@ -459,58 +474,66 @@ ID: `mint_system.purchase.report_purchaseorder_document.add_infotable`
width: 100%;
margin-bottom: 25px;
font-size: 9pt;
font-family: arial;
}
table#info tr {
table#info tr {
line-height: 1.2;
text-align: left;
}
.note {
font-size: 9pt;
.note {
font-size: 9pt;
}
</style>
<table id='info'>
<tr>
<td width="17%">Bestelldatum</td>
<td width="44%">
<td width="17%">Oder Date</td>
<td width="40%">
<t t-if="o.date_approve">
<span id='date_approve' t-field='o.date_approve' t-options='{ "widget": "date" }'/>
</t>
<t t-else="">
<span t-field='o.date_order' t-options='{ "widget": "date" }'/>
</t>
<span t-field='o.date_order' t-options='{ "widget": "date" }'/>
</t>
</td>
<td width="14%"></td>
<td width="25%"></td>
</tr>
<tr>
<td>Kunden-Nr.</td>
<td>
<span t-field='o.partner_id.ref'/>
</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<span t-field='o.partner_ref'/>
</td>
<td>U/Referenz</td>
<td>
<td width="18%">Our Reference</td>
<td width="25%">
<span t-field='o.user_id'/>
</td>
</tr>
<tr>
<td>Referenz</td>
<td>Customer No.</td>
<td>
<span t-field='o.comment'/>
<span t-field='o.partner_id.ref'/>
</td>
<td>Lieferkondition</td>
<td>Incoterm</td>
<td>
<span t-field='o.incoterm_id'/>
</td>
</tr>
<tr>
<td></td>
<td>
<span t-field='o.partner_ref'/>
</td>
<t t-if="o.requisition_id">
<td>Purchase Contract</td>
<td>
<span t-field='o.requisition_id'/>
<t t-if="o.requisition_id.partner_ref"> / <span t-field='o.requisition_id.partner_ref'/>
</t>
</td>
</t>
</tr>
<tr>
<td>Reference</td>
<td>
<span t-field='o.comment'/>
</td>
<td></td>
<td></td>
</tr>
</table>
<t t-if="o.note_header != '&lt;p&gt;&lt;br&gt;&lt;/p&gt;'">
@@ -1223,8 +1246,8 @@ ID: `mint_system.purchase.report_purchasequotation_document.add_infotable`
<?xml version="1.0"?>
<data inherit_id="purchase.report_purchasequotation_document" priority="50">
<xpath expr="//h2" position="after">
<style>
<xpath expr="//h2" position="after">
<style>
table#info {
width: 100%;
margin-bottom: 25px;
@@ -1238,49 +1261,61 @@ ID: `mint_system.purchase.report_purchasequotation_document.add_infotable`
.note {
font-size: 9pt;
}
</style>
<table id='info'>
<tr>
<td width="17%">Date</td>
<td width="44%">
<span t-field='o.ordering_date' t-options='{ "widget": "date" }'/>
</td>
<td width="14%"></td>
<td width="25%"></td>
</tr>
<tr>
<td>Customer No.</td>
<td>
<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>Our Reference</td>
<td>
<span t-field='o.user_id'/>
</td>
</tr>
<tr>
<td>Reference</td>
<td>
<span t-field='o.comment'/>
</td>
<td>Incoterm</td>
<td>
<span t-field='o.incoterm_id'/>
</td>
</tr>
</table>
</style>
<table id='info'>
<tr>
<td width="17%">Order Deadline</td>
<td width="40%">
<span t-field='o.date_order' t-options='{ "widget": "date" }'/>
</td>
<td width="18%">Our Reference</td>
<td width="25%">
<span t-field='o.user_id'/>
</td>
</tr>
<tr>
<td>Customer No.</td>
<td>
<span t-field='o.partner_id.ref'/>
</td>
<td>Incoterm</td>
<td>
<span t-field='o.incoterm_id'/>
</td>
</tr>
<tr>
<td></td>
<td>
<span t-field='o.partner_ref'/>
</td>
</xpath>
<t t-if="o.requisition_id">
<td>Purchase Contract</td>
<td>
<span t-field='o.requisition_id'/>
<t t-if="o.requisition_id.partner_ref"> / <span t-field='o.requisition_id.partner_ref'/>
</t>
</td>
</t>
</data>
</tr>
<tr>
<td>Reference</td>
<td>
<span t-field='o.comment'/>
</td>
<td></td>
<td></td>
</tr>
</table>
<t t-if="o.note_header != '&lt;p&gt;&lt;br&gt;&lt;/p&gt;'">
<span class="note" t-field="o.note_header"/>
</t>
</xpath>
</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)
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="purchase.purchase_order_form" priority="50">
<xpath expr="//page[@name='products']//tree/field[@name='date_planned']" position="after">
<field name="qty_to_invoice" optional="hide"/>
</xpath>
</data>
@@ -7,58 +7,66 @@
width: 100%;
margin-bottom: 25px;
font-size: 9pt;
font-family: arial;
}
table#info tr {
table#info tr {
line-height: 1.2;
text-align: left;
}
.note {
font-size: 9pt;
.note {
font-size: 9pt;
}
</style>
<table id='info'>
<tr>
<td width="17%">Bestelldatum</td>
<td width="44%">
<td width="17%">Oder Date</td>
<td width="40%">
<t t-if="o.date_approve">
<span id='date_approve' t-field='o.date_approve' t-options='{ "widget": "date" }'/>
</t>
<t t-else="">
<span t-field='o.date_order' t-options='{ "widget": "date" }'/>
</t>
<span t-field='o.date_order' t-options='{ "widget": "date" }'/>
</t>
</td>
<td width="14%"></td>
<td width="25%"></td>
</tr>
<tr>
<td>Kunden-Nr.</td>
<td>
<span t-field='o.partner_id.ref'/>
</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<span t-field='o.partner_ref'/>
</td>
<td>U/Referenz</td>
<td>
<td width="18%">Our Reference</td>
<td width="25%">
<span t-field='o.user_id'/>
</td>
</tr>
<tr>
<td>Referenz</td>
<td>Customer No.</td>
<td>
<span t-field='o.comment'/>
<span t-field='o.partner_id.ref'/>
</td>
<td>Lieferkondition</td>
<td>Incoterm</td>
<td>
<span t-field='o.incoterm_id'/>
</td>
</tr>
<tr>
<td></td>
<td>
<span t-field='o.partner_ref'/>
</td>
<t t-if="o.requisition_id">
<td>Purchase Contract</td>
<td>
<span t-field='o.requisition_id'/>
<t t-if="o.requisition_id.partner_ref"> / <span t-field='o.requisition_id.partner_ref'/>
</t>
</td>
</t>
</tr>
<tr>
<td>Reference</td>
<td>
<span t-field='o.comment'/>
</td>
<td></td>
<td></td>
</tr>
</table>
<t t-if="o.note_header != '&lt;p&gt;&lt;br&gt;&lt;/p&gt;'">
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="purchase.report_purchasequotation_document" priority="50">
<xpath expr="//h2" position="after">
<style>
<xpath expr="//h2" position="after">
<style>
table#info {
width: 100%;
margin-bottom: 25px;
@@ -16,46 +16,58 @@
.note {
font-size: 9pt;
}
</style>
<table id='info'>
<tr>
<td width="17%">Date</td>
<td width="44%">
<span t-field='o.ordering_date' t-options='{ "widget": "date" }'/>
</td>
<td width="14%"></td>
<td width="25%"></td>
</tr>
<tr>
<td>Customer No.</td>
<td>
<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>Our Reference</td>
<td>
<span t-field='o.user_id'/>
</td>
</tr>
<tr>
<td>Reference</td>
<td>
<span t-field='o.comment'/>
</td>
<td>Incoterm</td>
<td>
<span t-field='o.incoterm_id'/>
</td>
</tr>
</table>
</style>
<table id='info'>
<tr>
<td width="17%">Order Deadline</td>
<td width="40%">
<span t-field='o.date_order' t-options='{ "widget": "date" }'/>
</td>
<td width="18%">Our Reference</td>
<td width="25%">
<span t-field='o.user_id'/>
</td>
</tr>
<tr>
<td>Customer No.</td>
<td>
<span t-field='o.partner_id.ref'/>
</td>
<td>Incoterm</td>
<td>
<span t-field='o.incoterm_id'/>
</td>
</tr>
<tr>
<td></td>
<td>
<span t-field='o.partner_ref'/>
</td>
</xpath>
<t t-if="o.requisition_id">
<td>Purchase Contract</td>
<td>
<span t-field='o.requisition_id'/>
<t t-if="o.requisition_id.partner_ref"> / <span t-field='o.requisition_id.partner_ref'/>
</t>
</td>
</t>
</data>
</tr>
<tr>
<td>Reference</td>
<td>
<span t-field='o.comment'/>
</td>
<td></td>
<td></td>
</tr>
</table>
<t t-if="o.note_header != '&lt;p&gt;&lt;br&gt;&lt;/p&gt;'">
<span class="note" t-field="o.note_header"/>
</t>
</xpath>
</data>
+487 -85
View File
@@ -24,17 +24,34 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_address_bl
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//t/div/div[1]" position="after">
<div class="row address">
<div class="col-5"/>
<div class="col-5 offset-2" id="address_right">
<div t-field="o.vendor_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
<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">
<t t-if="o.partner_order_id">
<div id="address" t-field="o.partner_order_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</t>
<t t-else="">
<div id="address" t-field="o.vendor_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</t>
</t>
</xpath>
</data>
<!--
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//t/div/div[1]" position="before">
<div class="container">
<div class="row">
<div id="address" class="col-5 offset-7" t-field="o.vendor_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</div>
</div>
</xpath>
</data>
-->
```
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_address_block.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_address_block.xml)
@@ -44,12 +61,12 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_descriptio
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//div/t[2]" position="after">
<div style="font-size:16px; margin-top: 4rem">
<p t-field="o.description"/>
</div>
</xpath>
<xpath expr="//div/t[2]" position="after">
<div id="description">
<p t-field="o.description"/>
</div>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_description.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_description.xml)
@@ -175,30 +192,32 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_infotable`
<table id='info'>
<tr>
<td width="17%">Date</td>
<td width="44%">
<td width="40%">
<span t-field='o.ordering_date' t-options='{ "widget": "date" }'/>
</td>
<td width="14%"></td>
<td width="25%"></td>
<td width="18%">Our Reference</td>
<td width="25%">
<span t-field='o.user_id'/>
</td>
</tr>
<tr>
<td>Customer No.</td>
<td>
<span t-field='o.vendor_id.ref'/>
</td>
<td>Our Reference</td>
<td>Incoterm</td>
<td>
<span t-field='o.user_id'/>
<span t-field='o.incoterm_id'/>
</td>
</tr>
<tr>
<td>Order</td>
<td></td>
<td>
<span t-field='o.partner_ref'/>
</td>
<td>Delivery Method</td>
<td>Agreement Deadline</td>
<td>
<span t-field='o.date_end' t-options='{ "widget": "date" }'/>
</td>
</tr>
<tr>
@@ -206,10 +225,8 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_infotable`
<td>
<span t-field='o.comment'/>
</td>
<td>Incoterm</td>
<td>
<span t-field='o.incoterm_id'/>
</td>
<td></td>
<td></td>
</tr>
</table>
@@ -219,6 +236,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 Subtotal
ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_price_subtotal`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//th[@id='price_unit']" position="after">
<th id="price_subtotal" class="text-right">
<strong>Price Subtotal</strong>
</th>
</xpath>
<xpath expr="//td[@id='price_unit']" position="after">
<td id="price_subtotal" class="text-right">
<span t-field="line_ids.price_subtotal"/>
</td>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_price_subtotal.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_price_subtotal.xml)
### Add Price Unit
ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_price_unit`
```xml
@@ -226,17 +265,21 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_price_unit
<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>
<t t-if="o.state_blanket_order != 'draft'">
<th id="price_unit" class="text-right">
<strong>Unit Price</strong>
</th>
</t>
</xpath>
<xpath expr="//td[@id='product_qty']" position="after">
<td id="price_unit" class="text-right">
<span t-field="line_ids.price_unit"/>
</td>
<t t-if="o.state_blanket_order != 'draft'">
<td id="price_unit" class="text-right">
<span t-field="line_ids.price_unit"/>
</td>
</t>
</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)
@@ -272,6 +315,57 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.address_block`
```
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 Summary
ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_summary`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//table[@id='main_table']" position="after">
<table id="summary" class="table table-condensed trimada table-borderless" style="margin-top:20px; width:100%; color:black; font-family: arial; font-size:9pt; border-top-style:solid; border-bottom-style:solid; border-width:1px; border-color:black">
<tr>
<td style="width:15.5%; text-align:left">
<strong>Subtotal</strong>
</td>
<td style="width:23%; text-align:left">
<t t-if="o.state_blanket_order != 'draft'">
<span t-field="o.amount_untaxed" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>
</t>
<t t-else="">
<span>CHF</span>
</t>
</td>
<td style="width:12%; text-align:left">
<t t-if="o.state_blanket_order != 'draft'">
<span>VAT</span>
</t>
</td>
<td style="width:17%; text-align:left">
<t t-if="o.state_blanket_order != 'draft'">
<span t-field="o.amount_tax" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>
</t>
</td>
<td style="width:14%; text-align:right">
<strong>Total</strong>
</td>
<td style="width:18%; text-align:right">
<t t-if="o.state_blanket_order != 'draft'">
<span t-field="o.amount_total" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>
</t>
<t t-else="">
<span>CHF</span>
</t>
</td>
</tr>
</table>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.report_purchaserequisitions.add_summary.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.add_summary.xml)
### Add User Id
ID: `mint_system.purchase_requisition.report_purchaserequisitions.add_user_id`
```xml
@@ -313,12 +407,12 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.format_qty_wit
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//span[@id='qty']" position="replace">
<xpath expr="//span[@id='product_qty']" position="replace">
<t t-if="line_ids.product_uom_id.id == 1">
<span id="qty" t-field="line_ids.product_qty" t-options="{'widget': 'integer'}"/>
<span id="product_qty" t-field="line_ids.product_qty" t-options="{'widget': 'integer'}"/>
</t>
<t t-else="">
<span id="qty" t-field="line_ids.product_qty"/>
<span id="product_qty" t-field="line_ids.product_qty"/>
</t>
</xpath>
@@ -332,11 +426,6 @@ 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>
@@ -369,17 +458,37 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.hide_product_u
```
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 Schedule Date
ID: `mint_system.purchase_requisition.report_purchaserequisitions.hide_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"/>
</data>
```
Source: [snippets/purchase_requisition.report_purchaserequisitions.hide_schedule_date.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.hide_schedule_date.xml)
### Hide Title Details
ID: `mint_system.purchase_requisition.report_purchaserequisitions.hide_title_details`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//h3[@id='title_details']" position="replace"/>
</data>
```
Source: [snippets/purchase_requisition.report_purchaserequisitions.hide_title_details.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.hide_title_details.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>
@@ -458,11 +567,11 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.replace_produc
<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-if="line_ids.product_id.type_description">
<span style="font-weight: bold" t-field="line_ids.product_id.type_description"/>
</t>
<t t-if="not o.product_id.type_description">
<span t-field="o.product_id.name"/>
<t t-if="not line_ids.product_id.type_description">
<span t-field="line_ids.product_description_variants"/>
</t>
</td>
</xpath>
@@ -518,7 +627,7 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.replace_title`
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//h2" position="replace">
<t t-if="state_blanket_order == draft">
<t t-if="o.state_blanket_order == 'draft'">
<h2>Request for Quotation purchase contract <span t-field="o.name"/></h2>
</t>
<t t-else="">
@@ -552,41 +661,42 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.second_row`
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//tr[@id='first']" position="attributes">
<xpath expr="//table[@id='main_table']/tbody[1]/tr[1]" 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">
<xpath expr="//table[@id='main_table']/tbody[1]/tr[1]/td[3]" position="after">
<t t-if="line_ids.product_id.type_description">
<tr class="second">
<td></td>
<td colspan="5">
<span t-field="line_ids.product_description_variants"/>
<br/>
<t t-if="line_ids.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">
<span t-field="line_ids.product_id.country_of_origin_id.code" />
</t>
<t t-if="line_ids.product_id.hs_code">
/ Zollposition:
<span t-field="o.product_id.hs_code" />
</t>
</td>
</tr>
<span t-field="line_ids.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">
<t t-if="not line_ids.product_id.type_description">
<tr class="second">
<td></td>
<td colspan="5">
<t t-if="line_ids.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">
<span t-field="line_ids.product_id.country_of_origin_id.code" />
</t>
<t t-if="line_ids.product_id.hs_code">
/ Zollposition:
<span t-field="o.product_id.hs_code" />
</t>
</td>
</tr>
<span t-field="line_ids.product_id.hs_code" />
</t>
</td>
</tr>
</t>
</xpath>
@@ -683,6 +793,29 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.set_ids`
</xpath>
</data>
<!--
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//t[1]/h3" position="attributes">
<attribute name="id">title_product</attribute>
</xpath>
<xpath expr="//t[2]/h3" position="attributes">
<attribute name="id">title_details</attribute>
</xpath>
<xpath expr="//span[@t-field='line_ids.product_qty']" position="attributes">
<attribute name="id">product_qty</attribute>
</xpath>
<xpath expr="//t[2]/table" position="attributes">
<attribute name="id">details</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)
@@ -717,17 +850,25 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.style_gelso`
<xpath expr="//div[hasclass('page')]" position="before">
<style>
.o_company_1_layout {
font-family: Arial;
font-family: Roboto;
color: #000000;
}
h2 {
margin-top:10mm;
margin-bottom:3mm;
.o_report_layout_boxed {
color: #495057;
}
.o_report_layout_boxed h2 {
color: #000000;
}
.o_report_layout_boxed strong {
color: #000000;
}
.col-3 {
margin-bottom: 1rem !important;
}
div#address {
font-size: 16px;
margin-bottom: 2rem;
}
div#address_right {
font-size: 9pt;
}
</style>
</xpath>
@@ -789,6 +930,9 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.style_trimada`
span#qty {
font-weight: bold;
}
table#summary td {
padding: 0.3rem;
}
</style>
</xpath>
@@ -801,7 +945,79 @@ ID: `mint_system.purchase_requisition.report_purchaserequisitions.style_trimada`
```
Source: [snippets/purchase_requisition.report_purchaserequisitions.style_trimada.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.report_purchaserequisitions.style_trimada.xml)
## View Purchase Requisition Filter
### Replace Filter
ID: `mint_system.purchase_requisition.view_purchase_requisition_filter.replace_filter`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_filter" priority="50">
<xpath expr="/search" position="replace">
<search>
<!-- Filter -->
<filter name="my_orders" string="Meine Aufträge" domain="[('user_id', '=', uid)]"/>
<filter string="Meine Aufträge in Arbeit" name="in_progress" domain="['&amp;',('user_id', '=', uid),('state', 'in', ('draft','sent', 'open', 'expired'))]"/>
<separator/>
<filter string="Entwurf" name="filter_state_draft" domain="[('state', '=', 'draft')]"/>
<filter string="Gesendet" name="filter_state_sent" domain="[('state', '=', 'sent')]"/>
<filter string="Offen" name="filter_state_open" domain="[('state', '=', 'open')]"/>
<filter string="Erledigt" name="filter_state_erledigt" domain="[('state', '=', 'done')]"/>
<filter string="Abgelaufen" name="filter_state_expired" domain="[('state', '=', 'expired')]"/>
<filter string="Abgebrochen" name="filter_state_cancel" domain="[('state', '=', 'cancel')]"/>
<separator/>
<filter string="Auftragsdatum" name="filter_ordering_date" date="ordering_date"/>
<!-- Gruppierung -->
<filter string="Einkaufsbeauftragter" name="user_id" domain="[]" context="{'group_by': 'user_id'}"/>
<filter string="Lieferant" name="vendor_id" domain="[]" context="{'group_by': 'vendor_id'}"/>
<filter string="Datum" name="ordering_date" domain="[]" context="{'group_by': 'ordering_date'}"/>
<filter string="Status" name="state" domain="[]" context="{'group_by': 'state'}"/>
<!-- Suche -->
<group>
<field name="name" string="Order" filter_domain="['|', '|', ('name', 'ilike', self), ('partner_ref', 'ilike', self), ('vendor_id', 'child_of', self)]"/>
<field name="vendor_id"/>
<field name="user_id"/>
<field name="product_id" filter_domain="['|','|',('line_ids.product_id', 'ilike', self),('line_ids.product_id.type_description', 'ilike', self),('line_ids.product_id.type_description2', 'ilike', self)]"/>
</group>
</search>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_filter.replace_filter.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_filter.replace_filter.xml)
## View Purchase Requisition Form
### Date End Attributes Readonly
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.date_end_attributes_readonly`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//field[@name='date_end']" position="attributes">
<attribute name="attrs">{'readonly': [('state','not in',('draft','sent','in_progress','open','ongoing'))]}</attribute>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.date_end_attributes_readonly.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.date_end_attributes_readonly.xml)
### Date End Attributes Required
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.date_end_attributes_required`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//field[@name='date_end']" position="attributes">
<attribute name="required">1</attribute>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.date_end_attributes_required.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.date_end_attributes_required.xml)
### Filter Customer Is Company
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.filter_customer_is_company`
```xml
@@ -831,6 +1047,34 @@ ID: `mint_system.purchase_requisition.view_purchase_requisition_form.hide_schedu
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.hide_schedule_date.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.hide_schedule_date.xml)
### Modify Attributes Button Action Cancel
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.modify_attributes_button_action_cancel`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//button[@name='action_cancel']" position="attributes">
<attribute name="states">ongoing,open</attribute>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.modify_attributes_button_action_cancel.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.modify_attributes_button_action_cancel.xml)
### Modify Attributes Name
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.modify_attributes_name`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//h1/field[@name='name']" position="attributes">
<attribute name="attrs">{'readonly': [('state', 'in', ('done','cancel'))]}</attribute>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.modify_attributes_name.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.modify_attributes_name.xml)
### Modify Attributes Origin
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.modify_attributes_origin`
```xml
@@ -859,6 +1103,101 @@ ID: `mint_system.purchase_requisition.view_purchase_requisition_form.modify_attr
```
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)
### Modify Status Workflow
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.modify_status_workflow`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//button[@name='493']" position="after">
<button name="action_order_send" states="draft,sent,open" string="Send by Email" type="object" class="btn-primary"/>
<button name="action_open" states="sent" string="Validate" type="object" class="btn-primary"/>
</xpath>
<xpath expr="//button[@name='action_cancel']" position="attributes">
<attribute name="states">open</attribute>
</xpath>
<field name="state_blanket_order" position="attributes">
<attribute name="statusbar_visible">draft,sent,open,cancel,done</attribute>
</field>
<xpath expr="//button[@name='493']" position="replace">
<button name="493" type="action" string="New Quotation" class="btn-primary" attrs="{'invisible': [('state', 'in', ('draft','sent','done','cancel'))]}"/>
</xpath>
<xpath expr="//button[@name='action_draft']" position="attributes">
<attribute name="states">done,cancel,done</attribute>
</xpath>
<xpath expr="//button[@name='action_in_progress']" position="replace">
<button name="action_open" states="draft" string="Validate" type="object" class="btn-primary"/>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.modify_status_workflow.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.modify_status_workflow.xml)
### Ordering Date Attributes Required
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.ordering_date_attributes_required`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//field[@name='ordering_date']" position="attributes">
<attribute name="required">1</attribute>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.ordering_date_attributes_required.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.ordering_date_attributes_required.xml)
### Relocate Price Unit
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.relocate_price_unit`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//page[@name='products']//field[@name='price_unit']" position="replace"/>
<xpath expr="//page[@name='products']//field[@name='product_uom_id']" position="after">
<field name="price_unit"/>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.relocate_price_unit.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.relocate_price_unit.xml)
### Relocate Qty Ordered
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.relocate_qty_ordered`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//page[@name='products']//field[@name='qty_ordered']" position="replace"/>
<xpath expr="//page[@name='products']//field[@name='schedule_date']" position="after">
<field name="qty_ordered" optional="show"/>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.relocate_qty_ordered.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.relocate_qty_ordered.xml)
### Replace Title
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.replace_title`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//h1/../label" position="replace">
<span class="o_form_label" attrs="{'invisible': [('state','not in',('draft','sent'))]}">Request for Quotation </span>
<span class="o_form_label" attrs="{'invisible': [('state','in',('draft','sent'))]}">Purchase Order </span>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.replace_title.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.replace_title.xml)
### Show Schedule Date In Notebook
ID: `mint_system.purchase_requisition.view_purchase_requisition_form.show_schedule_date_in_notebook`
```xml
@@ -874,3 +1213,66 @@ ID: `mint_system.purchase_requisition.view_purchase_requisition_form.show_schedu
```
Source: [snippets/purchase_requisition.view_purchase_requisition_form.show_schedule_date_in_notebook.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_form.show_schedule_date_in_notebook.xml)
## View Purchase Requisition Tree
### Add Comment
ID: `mint_system.purchase_requisition.view_purchase_requisition_tree.add_comment`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_tree" priority="50">
<xpath expr="//field[@name='partner_ref']" position="after">
<field name="comment"/>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_tree.add_comment.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_tree.add_comment.xml)
### Add Partner Ref
ID: `mint_system.purchase_requisition.view_purchase_requisition_tree.add_partner_ref`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_tree" priority="50">
<xpath expr="//field[@name='name']" position="after">
<field name="partner_ref"/>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_tree.add_partner_ref.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_tree.add_partner_ref.xml)
### Add Vendor Id
ID: `mint_system.purchase_requisition.view_purchase_requisition_tree.add_vendor_id`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_tree" priority="50">
<xpath expr="//field[@name='ordering_date']" position="after">
<field name="vendor_id"/>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_tree.add_vendor_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_tree.add_vendor_id.xml)
### Relocate User Id
ID: `mint_system.purchase_requisition.view_purchase_requisition_tree.relocate_user_id`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_tree" priority="50">
<xpath expr="//field[@name='user_id']" position="replace">
</xpath>
<xpath expr="//field[@name='partner_ref']" position="after">
<field name="user_id"/>
</xpath>
</data>
```
Source: [snippets/purchase_requisition.view_purchase_requisition_tree.relocate_user_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition.view_purchase_requisition_tree.relocate_user_id.xml)
@@ -1,13 +1,31 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//t/div/div[1]" position="after">
<div class="row address">
<div class="col-5"/>
<div class="col-5 offset-2" id="address_right">
<div t-field="o.vendor_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
<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">
<t t-if="o.partner_order_id">
<div id="address" t-field="o.partner_order_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</t>
<t t-else="">
<div id="address" t-field="o.vendor_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</t>
</t>
</xpath>
</data>
<!--
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//t/div/div[1]" position="before">
<div class="container">
<div class="row">
<div id="address" class="col-5 offset-7" t-field="o.vendor_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</div>
</div>
</xpath>
</data>
-->
@@ -1,10 +1,10 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//div/t[2]" position="after">
<div style="font-size:16px; margin-top: 4rem">
<p t-field="o.description"/>
</div>
</xpath>
<xpath expr="//div/t[2]" position="after">
<div id="description">
<p t-field="o.description"/>
</div>
</xpath>
</data>
@@ -20,30 +20,32 @@
<table id='info'>
<tr>
<td width="17%">Date</td>
<td width="44%">
<td width="40%">
<span t-field='o.ordering_date' t-options='{ "widget": "date" }'/>
</td>
<td width="14%"></td>
<td width="25%"></td>
<td width="18%">Our Reference</td>
<td width="25%">
<span t-field='o.user_id'/>
</td>
</tr>
<tr>
<td>Customer No.</td>
<td>
<span t-field='o.vendor_id.ref'/>
</td>
<td>Our Reference</td>
<td>Incoterm</td>
<td>
<span t-field='o.user_id'/>
<span t-field='o.incoterm_id'/>
</td>
</tr>
<tr>
<td>Order</td>
<td></td>
<td>
<span t-field='o.partner_ref'/>
</td>
<td>Delivery Method</td>
<td>Agreement Deadline</td>
<td>
<span t-field='o.date_end' t-options='{ "widget": "date" }'/>
</td>
</tr>
<tr>
@@ -51,10 +53,8 @@
<td>
<span t-field='o.comment'/>
</td>
<td>Incoterm</td>
<td>
<span t-field='o.incoterm_id'/>
</td>
<td></td>
<td></td>
</tr>
</table>
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//th[@id='price_unit']" position="after">
<th id="price_subtotal" class="text-right">
<strong>Price Subtotal</strong>
</th>
</xpath>
<xpath expr="//td[@id='price_unit']" position="after">
<td id="price_subtotal" class="text-right">
<span t-field="line_ids.price_subtotal"/>
</td>
</xpath>
</data>
@@ -2,15 +2,19 @@
<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>
<t t-if="o.state_blanket_order != 'draft'">
<th id="price_unit" class="text-right">
<strong>Unit Price</strong>
</th>
</t>
</xpath>
<xpath expr="//td[@id='product_qty']" position="after">
<td id="price_unit" class="text-right">
<span t-field="line_ids.price_unit"/>
</td>
<t t-if="o.state_blanket_order != 'draft'">
<td id="price_unit" class="text-right">
<span t-field="line_ids.price_unit"/>
</td>
</t>
</xpath>
</data>
@@ -0,0 +1,45 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//table[@id='main_table']" position="after">
<table id="summary" class="table table-condensed trimada table-borderless" style="margin-top:20px; width:100%; color:black; font-family: arial; font-size:9pt; border-top-style:solid; border-bottom-style:solid; border-width:1px; border-color:black">
<tr>
<td style="width:15.5%; text-align:left">
<strong>Subtotal</strong>
</td>
<td style="width:23%; text-align:left">
<t t-if="o.state_blanket_order != 'draft'">
<span t-field="o.amount_untaxed" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>
</t>
<t t-else="">
<span>CHF</span>
</t>
</td>
<td style="width:12%; text-align:left">
<t t-if="o.state_blanket_order != 'draft'">
<span>VAT</span>
</t>
</td>
<td style="width:17%; text-align:left">
<t t-if="o.state_blanket_order != 'draft'">
<span t-field="o.amount_tax" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>
</t>
</td>
<td style="width:14%; text-align:right">
<strong>Total</strong>
</td>
<td style="width:18%; text-align:right">
<t t-if="o.state_blanket_order != 'draft'">
<span t-field="o.amount_total" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>
</t>
<t t-else="">
<span>CHF</span>
</t>
</td>
</tr>
</table>
</xpath>
</data>
@@ -1,12 +1,12 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//span[@id='qty']" position="replace">
<xpath expr="//span[@id='product_qty']" position="replace">
<t t-if="line_ids.product_uom_id.id == 1">
<span id="qty" t-field="line_ids.product_qty" t-options="{'widget': 'integer'}"/>
<span id="product_qty" t-field="line_ids.product_qty" t-options="{'widget': 'integer'}"/>
</t>
<t t-else="">
<span id="qty" t-field="line_ids.product_qty"/>
<span id="product_qty" t-field="line_ids.product_qty"/>
</t>
</xpath>
@@ -1,11 +1,6 @@
<?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='schedule_date']" position="replace"/>
<xpath expr="//td[@id='schedule_date']" position="replace"/>
</data>
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//h3[@id='title_details']" position="replace"/>
</data>
@@ -1,11 +1,6 @@
<?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>
@@ -3,11 +3,11 @@
<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-if="line_ids.product_id.type_description">
<span style="font-weight: bold" t-field="line_ids.product_id.type_description"/>
</t>
<t t-if="not o.product_id.type_description">
<span t-field="o.product_id.name"/>
<t t-if="not line_ids.product_id.type_description">
<span t-field="line_ids.product_description_variants"/>
</t>
</td>
</xpath>
@@ -2,7 +2,7 @@
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//h2" position="replace">
<t t-if="state_blanket_order == draft">
<t t-if="o.state_blanket_order == 'draft'">
<h2>Request for Quotation purchase contract <span t-field="o.name"/></h2>
</t>
<t t-else="">
@@ -1,41 +1,42 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//tr[@id='first']" position="attributes">
<xpath expr="//table[@id='main_table']/tbody[1]/tr[1]" 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">
<xpath expr="//table[@id='main_table']/tbody[1]/tr[1]/td[3]" position="after">
<t t-if="line_ids.product_id.type_description">
<tr class="second">
<td></td>
<td colspan="5">
<span t-field="line_ids.product_description_variants"/>
<br/>
<t t-if="line_ids.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">
<span t-field="line_ids.product_id.country_of_origin_id.code" />
</t>
<t t-if="line_ids.product_id.hs_code">
/ Zollposition:
<span t-field="o.product_id.hs_code" />
</t>
</td>
</tr>
<span t-field="line_ids.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">
<t t-if="not line_ids.product_id.type_description">
<tr class="second">
<td></td>
<td colspan="5">
<t t-if="line_ids.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">
<span t-field="line_ids.product_id.country_of_origin_id.code" />
</t>
<t t-if="line_ids.product_id.hs_code">
/ Zollposition:
<span t-field="o.product_id.hs_code" />
</t>
</td>
</tr>
<span t-field="line_ids.product_id.hs_code" />
</t>
</td>
</tr>
</t>
</xpath>
@@ -57,4 +57,27 @@
<attribute name="id">schedule_date</attribute>
</xpath>
</data>
</data>
<!--
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
<xpath expr="//t[1]/h3" position="attributes">
<attribute name="id">title_product</attribute>
</xpath>
<xpath expr="//t[2]/h3" position="attributes">
<attribute name="id">title_details</attribute>
</xpath>
<xpath expr="//span[@t-field='line_ids.product_qty']" position="attributes">
<attribute name="id">product_qty</attribute>
</xpath>
<xpath expr="//t[2]/table" position="attributes">
<attribute name="id">details</attribute>
</xpath>
</data>
-->
@@ -4,17 +4,25 @@
<xpath expr="//div[hasclass('page')]" position="before">
<style>
.o_company_1_layout {
font-family: Arial;
font-family: Roboto;
color: #000000;
}
h2 {
margin-top:10mm;
margin-bottom:3mm;
.o_report_layout_boxed {
color: #495057;
}
.o_report_layout_boxed h2 {
color: #000000;
}
.o_report_layout_boxed strong {
color: #000000;
}
.col-3 {
margin-bottom: 1rem !important;
}
div#address {
font-size: 16px;
margin-bottom: 2rem;
}
div#address_right {
font-size: 9pt;
}
</style>
</xpath>
@@ -49,6 +49,9 @@
span#qty {
font-weight: bold;
}
table#summary td {
padding: 0.3rem;
}
</style>
</xpath>
@@ -0,0 +1,37 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_filter" priority="50">
<xpath expr="/search" position="replace">
<search>
<!-- Filter -->
<filter name="my_orders" string="Meine Aufträge" domain="[('user_id', '=', uid)]"/>
<filter string="Meine Aufträge in Arbeit" name="in_progress" domain="['&amp;',('user_id', '=', uid),('state', 'in', ('draft','sent', 'open', 'expired'))]"/>
<separator/>
<filter string="Entwurf" name="filter_state_draft" domain="[('state', '=', 'draft')]"/>
<filter string="Gesendet" name="filter_state_sent" domain="[('state', '=', 'sent')]"/>
<filter string="Offen" name="filter_state_open" domain="[('state', '=', 'open')]"/>
<filter string="Erledigt" name="filter_state_erledigt" domain="[('state', '=', 'done')]"/>
<filter string="Abgelaufen" name="filter_state_expired" domain="[('state', '=', 'expired')]"/>
<filter string="Abgebrochen" name="filter_state_cancel" domain="[('state', '=', 'cancel')]"/>
<separator/>
<filter string="Auftragsdatum" name="filter_ordering_date" date="ordering_date"/>
<!-- Gruppierung -->
<filter string="Einkaufsbeauftragter" name="user_id" domain="[]" context="{'group_by': 'user_id'}"/>
<filter string="Lieferant" name="vendor_id" domain="[]" context="{'group_by': 'vendor_id'}"/>
<filter string="Datum" name="ordering_date" domain="[]" context="{'group_by': 'ordering_date'}"/>
<filter string="Status" name="state" domain="[]" context="{'group_by': 'state'}"/>
<!-- Suche -->
<group>
<field name="name" string="Order" filter_domain="['|', '|', ('name', 'ilike', self), ('partner_ref', 'ilike', self), ('vendor_id', 'child_of', self)]"/>
<field name="vendor_id"/>
<field name="user_id"/>
<field name="product_id" filter_domain="['|','|',('line_ids.product_id', 'ilike', self),('line_ids.product_id.type_description', 'ilike', self),('line_ids.product_id.type_description2', 'ilike', self)]"/>
</group>
</search>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//field[@name='date_end']" position="attributes">
<attribute name="attrs">{'readonly': [('state','not in',('draft','sent','in_progress','open','ongoing'))]}</attribute>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//field[@name='date_end']" position="attributes">
<attribute name="required">1</attribute>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//h1/field[@name='name']" position="attributes">
<attribute name="attrs">{'readonly': [('state', 'in', ('done','cancel'))]}</attribute>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//button[@name='action_cancel']" position="attributes">
<attribute name="states">ongoing,open</attribute>
</xpath>
</data>
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//button[@name='493']" position="after">
<button name="action_order_send" states="draft,sent,open" string="Send by Email" type="object" class="btn-primary"/>
<button name="action_open" states="sent" string="Validate" type="object" class="btn-primary"/>
</xpath>
<xpath expr="//button[@name='action_cancel']" position="attributes">
<attribute name="states">open</attribute>
</xpath>
<field name="state_blanket_order" position="attributes">
<attribute name="statusbar_visible">draft,sent,open,cancel,done</attribute>
</field>
<xpath expr="//button[@name='493']" position="replace">
<button name="493" type="action" string="New Quotation" class="btn-primary" attrs="{'invisible': [('state', 'in', ('draft','sent','done','cancel'))]}"/>
</xpath>
<xpath expr="//button[@name='action_draft']" position="attributes">
<attribute name="states">done,cancel,done</attribute>
</xpath>
<xpath expr="//button[@name='action_in_progress']" position="replace">
<button name="action_open" states="draft" string="Validate" type="object" class="btn-primary"/>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//field[@name='ordering_date']" position="attributes">
<attribute name="required">1</attribute>
</xpath>
</data>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//page[@name='products']//field[@name='price_unit']" position="replace"/>
<xpath expr="//page[@name='products']//field[@name='product_uom_id']" position="after">
<field name="price_unit"/>
</xpath>
</data>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//page[@name='products']//field[@name='qty_ordered']" position="replace"/>
<xpath expr="//page[@name='products']//field[@name='schedule_date']" position="after">
<field name="qty_ordered" optional="show"/>
</xpath>
</data>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_form" priority="50">
<xpath expr="//h1/../label" position="replace">
<span class="o_form_label" attrs="{'invisible': [('state','not in',('draft','sent'))]}">Request for Quotation </span>
<span class="o_form_label" attrs="{'invisible': [('state','in',('draft','sent'))]}">Purchase Order </span>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_tree" priority="50">
<xpath expr="//field[@name='partner_ref']" position="after">
<field name="comment"/>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_tree" priority="50">
<xpath expr="//field[@name='name']" position="after">
<field name="partner_ref"/>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_tree" priority="50">
<xpath expr="//field[@name='ordering_date']" position="after">
<field name="vendor_id"/>
</xpath>
</data>
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.view_purchase_requisition_tree" priority="50">
<xpath expr="//field[@name='user_id']" position="replace">
</xpath>
<xpath expr="//field[@name='partner_ref']" position="after">
<field name="user_id"/>
</xpath>
</data>
+21
View File
@@ -0,0 +1,21 @@
---
prev: ./snippets.md
---
# Purchase Requisition Send
## View Purchase Requisition Form
### Relocate Button Action Order Send
ID: `mint_system.purchase_requisition_send.view_purchase_requisition_form.relocate_button_action_order_send`
```xml
<?xml version="1.0"?>
<data inherit_id="purchase_requisition_send.view_purchase_requisition_form" priority="50">
<xpath expr="//button[@name='action_order_send']" position="replace"/>
<xpath expr="//button[@name='493']" position="after">
<button name="action_order_send" states="draft,sent,ongoing,open" string="Send by Email" type="object" class="btn-primary"/>
</xpath>
</data>
```
Source: [snippets/purchase_requisition_send.view_purchase_requisition_form.relocate_button_action_order_send.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/purchase_requisition_send.view_purchase_requisition_form.relocate_button_action_order_send.xml)
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition_send.view_purchase_requisition_form" priority="50">
<xpath expr="//button[@name='action_order_send']" position="replace"/>
<xpath expr="//button[@name='493']" position="after">
<button name="action_order_send" states="draft,sent,ongoing,open" string="Send by Email" type="object" class="btn-primary"/>
</xpath>
</data>
Loaded 100 of 146 files, more files were not shown because too many files have changed in this diff. Show more