sync from 14.0

This commit is contained in:
janikvonrotz committed 2022-05-06 17:06:49 +02:00
1 parent 7c7a37231d
commit d99f696cee
12 files changed
+179 -1

No files matched your search

+3 -1
View File
@@ -5,6 +5,7 @@ module.exports = {
['link', { rel: "icon", type: "image/png", href: "icon.png"}],
],
themeConfig: {
logo: '/icon.png',
sidebar: 'auto',
repo: 'mint-system/odoo-development',
docsBranch: '14.0',
@@ -12,7 +13,8 @@ module.exports = {
nav: [
{ text: 'Home', link: '/' },
{ text: 'Help', link: '/task' },
{ text: 'Snippets', link: '/snippets' }
{ text: 'Snippets', link: '/snippets' },
{ text: 'Mint System', link: 'https://www.mint-system.ch' }
],
},
dest: 'public',
+34
View File
@@ -0,0 +1,34 @@
#!/bin/bash
# Get script name
SCRIPT=$(basename "$0")
# First param is docker container
CONTAINER=$1
# Default configuration
PACKAGE_PATH="/usr/lib/python3/dist-packages/"
# Custom configuration
FILE_PATH="${PACKAGE_PATH}odoo/service/server.py"
FIND="for db_name, registry in registries.d.items()"
REPLACE="for db_name, registry in registries.d.copy().items()"
# Get filename
FILE=`basename "$FILE_PATH"`
# Copy from docker
docker cp "$CONTAINER":"$FILE_PATH" .
# Find and replace
sed -i'' "s/$FIND/$REPLACE/g" $FILE
# Copy back to docker
docker cp $FILE "$CONTAINER":"$FILE_PATH"
# Remove file
rm -f $FILE
# Register patch installation
echo "Patch $SCRIPT applied."
touch "/etc/odoo/${SCRIPT}_${CONTAINER}_installed"
+62
View File
@@ -170,6 +170,11 @@ Report: report_invoice_document_with_payments
ID: `mint_system.account.report_invoice_document_with_payments.add_iban_and_bank`
Link: [snippets/account.report_invoice_document_with_payments.add_iban_and_bank.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document_with_payments.add_iban_and_bank.xml)
### add discount date
Report: view_in_invoice_tree
ID: `mint_system.account.view_in_invoice_tree.add_discount_date`
Link: [snippets/account.view_in_invoice_tree.add_discount_date.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_in_invoice_tree.add_discount_date.xml)
### x account codes
Report: view_invoice_tree
ID: `mint_system.account.view_invoice_tree.x_account_codes`
@@ -220,12 +225,38 @@ Report: view_out_invoice_tree
ID: `mint_system.account.view_out_invoice_tree.show_partner_shipping`
Link: [snippets/account.view_out_invoice_tree.show_partner_shipping.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_out_invoice_tree.show_partner_shipping.xml)
## Agreement
### hide domain
Report: agreement_type_form_view
ID: `mint_system.agreement.agreement_type_form_view.hide_domain`
Link: [snippets/agreement.agreement_type_form_view.hide_domain.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/agreement.agreement_type_form_view.hide_domain.xml)
## Agreement Legal
### description optional
Report: partner_agreement_form_view
ID: `mint_system.agreement_legal.partner_agreement_form_view.description_optional`
Link: [snippets/agreement_legal.partner_agreement_form_view.description_optional.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/agreement_legal.partner_agreement_form_view.description_optional.xml)
### hide description
Report: partner_agreement_form_view
ID: `mint_system.agreement_legal.partner_agreement_form_view.hide_description`
Link: [snippets/agreement_legal.partner_agreement_form_view.hide_description.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/agreement_legal.partner_agreement_form_view.hide_description.xml)
### hide parties
Report: partner_agreement_form_view
ID: `mint_system.agreement_legal.partner_agreement_form_view.hide_parties`
Link: [snippets/agreement_legal.partner_agreement_form_view.hide_parties.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/agreement_legal.partner_agreement_form_view.hide_parties.xml)
### hide special terms
Report: partner_agreement_form_view
ID: `mint_system.agreement_legal.partner_agreement_form_view.hide_special_terms`
Link: [snippets/agreement_legal.partner_agreement_form_view.hide_special_terms.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/agreement_legal.partner_agreement_form_view.hide_special_terms.xml)
### replace tree
Report: partner_agreement_list_view
ID: `mint_system.agreement_legal.partner_agreement_list_view.replace_tree`
Link: [snippets/agreement_legal.partner_agreement_list_view.replace_tree.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/agreement_legal.partner_agreement_list_view.replace_tree.xml)
## Base
### remove domain widget
Report: ir_filters_view_form
@@ -485,6 +516,12 @@ Report: hr_payroll_report_view
ID: `mint_system.gio_payroll_custom.hr_payroll_report_view.new_report`
Link: [snippets/gio_payroll_custom.hr_payroll_report_view.new_report.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/gio_payroll_custom.hr_payroll_report_view.new_report.xml)
## Hr Attendance
### enable edit
Report: view_attendance_tree
ID: `mint_system.hr_attendance.view_attendance_tree.enable_edit`
Link: [snippets/hr_attendance.view_attendance_tree.enable_edit.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/hr_attendance.view_attendance_tree.enable_edit.xml)
## Hr Holidays Calendar
### view color
Report: hr_leave_report_calendar_timeline
@@ -1031,6 +1068,11 @@ Report: product_template_kanban_view
ID: `mint_system.product.product_template_kanban_view.add_product_info`
Link: [snippets/product.product_template_kanban_view.add_product_info.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_template_kanban_view.add_product_info.xml)
### hide barcode
Report: product_template_only_form_view
ID: `mint_system.product.product_template_only_form_view.hide_barcode`
Link: [snippets/product.product_template_only_form_view.hide_barcode.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_template_only_form_view.hide_barcode.xml)
### hide default code
Report: product_template_only_form_view
ID: `mint_system.product.product_template_only_form_view.hide_default_code`
@@ -1076,6 +1118,11 @@ Report: product_template_tree_view
ID: `mint_system.product.product_template_tree_view.set_default_order`
Link: [snippets/product.product_template_tree_view.set_default_order.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_template_tree_view.set_default_order.xml)
### hide barcode
Report: product_variant_easy_edit_view
ID: `mint_system.product.product_variant_easy_edit_view.hide_barcode`
Link: [snippets/product.product_variant_easy_edit_view.hide_barcode.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_variant_easy_edit_view.hide_barcode.xml)
### trimada
Report: report_producttemplatelabel
ID: `mint_system.product.report_producttemplatelabel.trimada`
@@ -2515,11 +2562,26 @@ Report: view_move_form
ID: `mint_system.stock.view_move_form.enable_edit_and_create`
Link: [snippets/stock.view_move_form.enable_edit_and_create.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.enable_edit_and_create.xml)
### show immediate transfer
Report: view_move_form
ID: `mint_system.stock.view_move_form.show_immediate_transfer`
Link: [snippets/stock.view_move_form.show_immediate_transfer.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_immediate_transfer.xml)
### show locations
Report: view_move_form
ID: `mint_system.stock.view_move_form.show_locations`
Link: [snippets/stock.view_move_form.show_locations.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_locations.xml)
### show move lines
Report: view_move_form
ID: `mint_system.stock.view_move_form.show_move_lines`
Link: [snippets/stock.view_move_form.show_move_lines.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_move_lines.xml)
### show partner
Report: view_move_form
ID: `mint_system.stock.view_move_form.show_partner`
Link: [snippets/stock.view_move_form.show_partner.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.view_move_form.show_partner.xml)
### show quantity done
Report: view_move_form
ID: `mint_system.stock.view_move_form.show_quantity_done`
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<data inherit_id="agreement.agreement_type_form_view" priority="50">
<field name="domain" position="replace" />
</data>
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<data inherit_id="agreement_legal.partner_agreement_form_view" priority="50">
<field name="description" position="attributes">
<attribute name="required">False</attribute>
</field>
<xpath expr="//group[@class='oe_edit_only']" position="replace" />
</data>
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<data inherit_id="agreement_legal.partner_agreement_form_view" priority="50">
<field name="description" position="replace" />
</data>
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<data inherit_id="agreement_legal.partner_agreement_form_view" priority="50">
<field name="use_parties_content" position="attributes" >
<attribute name="invisible">1</attribute>
</field>
<xpath expr="//group[@name='cust_parties']/p" position="replace" />
<xpath expr="//group[@name='partner_left']" position="replace" />
<xpath expr="//group[@name='contact_right']" position="replace" />
</data>
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<data inherit_id="agreement_legal.partner_agreement_list_view" priority="50">
<tree position="replace">
<tree string="Agreements" default_order="code desc, name">
<field name="code"/>
<field name="name"/>
<field name="partner_id"/>
<field name="signed_contract" widget="binary" filename="name"/>
<field name="start_date"/>
<field name="agreement_type_id"/>
<field name="agreement_subtype_id"/>
<field name="stage_id"/>
<field name="active" invisible="1"/>
</tree>
</tree>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">
<xpath expr="//field[@name='barcode']" position="attributes">
<attribute name="groups">base.group_erp_manager</attribute>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="product.product_variant_easy_edit_view" priority="50">
<xpath expr="//field[@name='barcode']" position="attributes">
<attribute name="groups">base.group_erp_manager</attribute>
</xpath>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="stock.stock_report_delivery_kit_sections" priority="50">
<xpath expr="//t[@t-set='kit_move_lines']" position="before">
<span t-set="index" t-value="1"/>
</xpath>
</data>
+2
View File
@@ -98,6 +98,8 @@ function install-native() {
pip install git+https://github.com/OCA/openupgradelib.git@master#egg=openupgradelib
echo "Install addon dependencies"
pip install prometheus_client
echo "Install edi dependencies"
pip install pyzbar numpy pdf2image opencv-python
}
function open-url-with-delay(){