bemade_fix_quality_report to fix quality reports not printing on Odoo Enterprise
This commit is contained in:
parent
d0fc6363c4
commit
c98e949828
5 changed files with 66 additions and 2 deletions
0
bemade_fix_quality_report/__init__.py
Normal file
0
bemade_fix_quality_report/__init__.py
Normal file
33
bemade_fix_quality_report/__manifest__.py
Normal file
33
bemade_fix_quality_report/__manifest__.py
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
#
|
||||||
|
# Bemade Inc.
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023-June Bemade Inc. (<https://www.bemade.org>).
|
||||||
|
# Author: Marc Durepos (Contact : marc@bemade.org)
|
||||||
|
#
|
||||||
|
# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
|
||||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies of the Software
|
||||||
|
# or modified copies of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||||
|
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
# DEALINGS IN THE SOFTWARE.
|
||||||
|
#
|
||||||
|
{
|
||||||
|
'name': 'Fix Quality Worksheet',
|
||||||
|
'version': '15.0.1.0.0',
|
||||||
|
'summary': 'Fix Quality worksheet bug from Odoo Enterprise',
|
||||||
|
'description': '',
|
||||||
|
'category': 'Quality Control',
|
||||||
|
'author': 'Bemade Inc.',
|
||||||
|
'website': 'http://www.bemade.org',
|
||||||
|
'license': 'OPL-1',
|
||||||
|
'depends': ['quality_control'],
|
||||||
|
'data': ['reports/worksheet_custom_report_templates.xml'],
|
||||||
|
'assets': {},
|
||||||
|
'installable': True,
|
||||||
|
'auto_install': True,
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<odoo>
|
||||||
|
<template inherit_id="quality_control.worksheet_page">
|
||||||
|
<xpath expr="//span[@t-field='doc.result']" position="replace">
|
||||||
|
<span t-field="doc.measure"/>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
</odoo>
|
||||||
|
|
@ -31,8 +31,11 @@
|
||||||
'account',
|
'account',
|
||||||
'bemade_partner_root_ancestor',
|
'bemade_partner_root_ancestor',
|
||||||
],
|
],
|
||||||
'data': ['views/account_move_views.xml',
|
'data': [
|
||||||
'views/res_partner_views.xml'],
|
'views/account_move_views.xml',
|
||||||
|
'views/res_partner_views.xml',
|
||||||
|
'views/sale_order_views.xml',
|
||||||
|
],
|
||||||
'demo': [],
|
'demo': [],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
'auto_install': False,
|
'auto_install': False,
|
||||||
|
|
|
||||||
20
bemade_multiple_billing_contacts/views/sale_order_views.xml
Normal file
20
bemade_multiple_billing_contacts/views/sale_order_views.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<odoo>
|
||||||
|
<record id="view_sale_order_form_inherit" model="ir.ui.view">
|
||||||
|
<field name="name">view_sale_order_form_inherit</field>
|
||||||
|
<field name="model">sale.order</field>
|
||||||
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="partner_invoice_id" position="after">
|
||||||
|
<field name="partner_id" position="after">
|
||||||
|
<field name="billing_contacts"
|
||||||
|
widget="many2many_checkboxes"
|
||||||
|
domain="['|', '|', ('id', 'in', billing_contacts),
|
||||||
|
('parent_id', '=', partner_invoice_id),
|
||||||
|
('parent_id', 'parent_of', partner_invoice_id),
|
||||||
|
('is_company', '=', False)]"/>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</odoo>
|
||||||
Loading…
Reference in a new issue