Browse Source

Merge 7e0046541a into 3ef9aafe11

pull/186/merge
Miquel Raïch 1 year ago
committed by GitHub
parent
commit
7e826576a2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 17
      advance_cash_flow_statements/report/print_report.xml
  2. 2
      base_account_budget/models/account_budget.py
  3. 1
      base_accounting_kit/models/account_move.py
  4. 45
      customer_product_qrcode/report/report.xml
  5. 1
      cybrosys_support_client/wizards/wizards.py
  6. 1
      dynamic_accounts_report/wizard/balance_sheet.py
  7. 2
      employee_orientation/models/employee_orientation.py
  8. 2
      employee_orientation/models/employee_training.py
  9. 2
      employee_orientation/models/orientation_checklist_request.py
  10. 1
      employee_orientation/wizard/orientation_complete.py
  11. 2
      employee_stages/models/employee_stages.py
  12. 10
      fleet_rental/models/car_rental.py
  13. 2
      front_office_management/models/fo_property_counter.py
  14. 6
      front_office_management/models/fo_visit.py
  15. 2
      front_office_management/models/fo_visitor.py
  16. 52
      front_office_management/report/report.xml
  17. 1
      hr_payslip_monthly_report/report/hr_payslip_report.py
  18. 1
      insurance_management_cybro/models/claim_details.py
  19. 1
      insurance_management_cybro/models/employee_details.py
  20. 1
      insurance_management_cybro/models/insurance_model.py
  21. 2
      insurance_management_cybro/models/policy_details.py
  22. 2
      invoice_stock_move/models/invoice_stock.py
  23. 4
      laundry_management/models/laundry.py
  24. 16
      laundry_management/views/laundry_label.xml
  25. 3
      medical_lab_management/models/lab_appointment.py
  26. 2
      medical_lab_management/models/lab_request.py
  27. 27
      medical_lab_management/report/report.xml
  28. 2
      mobile_service_shop/models/mobile_service.py
  29. 17
      mrp_work_order_print/views/report_work_order.xml
  30. 1
      multicolor_backend_theme/models/theme_config.py
  31. 17
      print_voucher_receipts/views/account_voucher_print.xml
  32. 1
      product_brand_purchase/models/brand.py
  33. 1
      product_brand_sale/models/brand.py
  34. 17
      product_catalogue/report/product_catalog_report.xml
  35. 1
      product_import/wizard/product_import.py
  36. 1
      project_report_pdf/wizard/project_report_wizard.py
  37. 2
      sale_discount_total/models/account_invoice.py
  38. 2
      sale_discount_total/models/discount_approval.py
  39. 11
      sale_discount_total/models/sale.py
  40. 2
      theme_diva/models/configuration.py
  41. 1
      timesheets_by_employee/wizard/timesheet_employee.py
  42. 2
      vista_backend_theme/wizard/theme.py

17
advance_cash_flow_statements/report/print_report.xml

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<odoo> <odoo>
<report <record id="pdf_report" model="ir.actions.report">
id="pdf_report" <field name="model">account.wizard</field>
model="account.wizard" <field name="name">Cash flow statement Pdf Report</field>
string="Cash flow statement Pdf Report" <field name="report_type">qweb-pdf</field>
report_type="qweb-pdf" <field name="report_name">advance_cash_flow_statements.cash_flow_pdf_report</field>
name="advance_cash_flow_statements.cash_flow_pdf_report" <field name="report_file">advance_cash_flow_statements.cash_flow_pdf_report</field>
file="advance_cash_flow_statements.cash_flow_pdf_report" <field name="binding_model_id" ref="model_account_wizard"/>
/> <field name="binding_type">report</field>
</record>
</odoo> </odoo>

2
base_account_budget/models/account_budget.py

@ -71,7 +71,7 @@ class Budget(models.Model):
('confirm', 'Confirmed'), ('confirm', 'Confirmed'),
('validate', 'Validated'), ('validate', 'Validated'),
('done', 'Done') ('done', 'Done')
], 'Status', default='draft', index=True, required=True, readonly=True, copy=False, track_visibility='always') ], 'Status', default='draft', index=True, required=True, readonly=True, copy=False, tracking=True)
budget_line = fields.One2many('budget.lines', 'budget_id', 'Budget Lines', budget_line = fields.One2many('budget.lines', 'budget_id', 'Budget Lines',
states={'done': [('readonly', True)]}, copy=True) states={'done': [('readonly', True)]}, copy=True)
company_id = fields.Many2one('res.company', 'Company', required=True, company_id = fields.Many2one('res.company', 'Company', required=True,

1
base_accounting_kit/models/account_move.py

@ -25,7 +25,6 @@ from datetime import datetime
from dateutil.relativedelta import relativedelta from dateutil.relativedelta import relativedelta
from odoo import api, fields, models, _ from odoo import api, fields, models, _
from odoo.addons.base.models import decimal_precision as dp
from odoo.exceptions import UserError from odoo.exceptions import UserError
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DF from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DF

45
customer_product_qrcode/report/report.xml

@ -1,30 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<odoo> <odoo>
<data> <data>
<report id="customer_product_qrcode.print_qr" <record id="customer_product_qrcode.print_qr" model="ir.actions.report">
model="res.partner" <field name="model">res.partner</field>
name="customer_product_qrcode.customer_qr_template" <field name="report_name">customer_product_qrcode.customer_qr_template</field>
file="customer_product_qrcode.customer_qr_template" <field name="report_file">customer_product_qrcode.customer_qr_template</field>
string="Badge" <field name="name">Badge</field>
report_type="qweb-pdf" <field name="report_type">qweb-pdf</field>
menu="False" </record>
/> <record id="customer_product_qrcode.print_qr1" model="ir.actions.report">
<report id="customer_product_qrcode.print_qr1" <field name="model">product.product</field>
model="product.product" <field name="report_name">customer_product_qrcode.customer_qr_template</field>
name="customer_product_qrcode.customer_qr_template" <field name="report_file">customer_product_qrcode.customer_qr_template</field>
file="customer_product_qrcode.customer_qr_template" <field name="name">Product Badge</field>
string="Product Badge" <field name="report_type">qweb-pdf</field>
report_type="qweb-pdf" </record>
menu="False" <record id="customer_product_qrcode.print_qr2" model="ir.actions.report">
/> <field name="model">product.template</field>
<report id="customer_product_qrcode.print_qr2" <field name="report_name">customer_product_qrcode.customer_qr_template</field>
model="product.template" <field name="report_file">customer_product_qrcode.customer_qr_template</field>
name="customer_product_qrcode.customer_qr_template" <field name="name">Product Badge</field>
file="customer_product_qrcode.customer_qr_template" <field name="report_type">qweb-pdf</field>
string="Product Badge" </record>
report_type="qweb-pdf"
menu="False"
/>
<record id="customer_product_qrcode.print_qr" model="ir.actions.report"> <record id="customer_product_qrcode.print_qr" model="ir.actions.report">
<field name="paperformat_id" ref="customer_product_qrcode.customer_badge_paperformat"/> <field name="paperformat_id" ref="customer_product_qrcode.customer_badge_paperformat"/>
</record> </record>

1
cybrosys_support_client/wizards/wizards.py

@ -99,5 +99,6 @@ class SystrayIcon(models.TransientModel):
class CustomPopMessage(models.TransientModel): class CustomPopMessage(models.TransientModel):
_name = "custom.pop.message" _name = "custom.pop.message"
_description = "Custom Pop Message"
name = fields.Char('Message') name = fields.Char('Message')

1
dynamic_accounts_report/wizard/balance_sheet.py

@ -34,6 +34,7 @@ except ImportError:
class BalanceSheetView(models.TransientModel): class BalanceSheetView(models.TransientModel):
_name = 'dynamic.balance.sheet.report' _name = 'dynamic.balance.sheet.report'
_description = "Balance Sheet View"
company_id = fields.Many2one('res.company', required=True, company_id = fields.Many2one('res.company', required=True,
default=lambda self: self.env.company) default=lambda self: self.env.company)

2
employee_orientation/models/employee_orientation.py

@ -48,7 +48,7 @@ class Orientation(models.Model):
('confirm', 'Confirmed'), ('confirm', 'Confirmed'),
('cancel', 'Canceled'), ('cancel', 'Canceled'),
('complete', 'Completed'), ('complete', 'Completed'),
], string='Status', readonly=True, copy=False, index=True, track_visibility='onchange', default='draft') ], string='Status', readonly=True, copy=False, index=True, tracking=True, default='draft')
def confirm_orientation(self): def confirm_orientation(self):
self.write({'state': 'confirm'}) self.write({'state': 'confirm'})

2
employee_orientation/models/employee_training.py

@ -54,7 +54,7 @@ class EmployeeTraining(models.Model):
('cancel', 'Canceled'), ('cancel', 'Canceled'),
('complete', 'Completed'), ('complete', 'Completed'),
('print', 'Print'), ('print', 'Print'),
], string='Status', readonly=True, copy=False, index=True, track_visibility='onchange', default='new') ], string='Status', readonly=True, copy=False, index=True, tracking=True, default='new')
@api.onchange('program_department') @api.onchange('program_department')
def employee_details(self): def employee_details(self):

2
employee_orientation/models/orientation_checklist_request.py

@ -47,7 +47,7 @@ class OrientationChecklistRequest(models.Model):
('new', 'New'), ('new', 'New'),
('cancel', 'Cancel'), ('cancel', 'Cancel'),
('complete', 'Completed'), ('complete', 'Completed'),
], string='Status', readonly=True, copy=False, index=True, track_visibility='onchange', default='new') ], string='Status', readonly=True, copy=False, index=True, tracking=True, default='new')
def confirm_send_mail(self): def confirm_send_mail(self):
self.ensure_one() self.ensure_one()

1
employee_orientation/wizard/orientation_complete.py

@ -25,6 +25,7 @@ from odoo import api, fields, models, _
class OrientationForceComplete(models.TransientModel): class OrientationForceComplete(models.TransientModel):
_name = 'orientation.force.complete' _name = 'orientation.force.complete'
_description = "Orientation Force Complete"
name = fields.Char() name = fields.Char()
orientation_id = fields.Many2one('employee.orientation', string='Orientation') orientation_id = fields.Many2one('employee.orientation', string='Orientation')

2
employee_stages/models/employee_stages.py

@ -103,7 +103,7 @@ class EmployeeFormInherit(models.Model):
('notice_period', 'Notice Period'), ('notice_period', 'Notice Period'),
('relieved', 'Resigned'), ('relieved', 'Resigned'),
('terminate', 'Terminated')], string='Status', default='joined', ('terminate', 'Terminated')], string='Status', default='joined',
track_visibility='always', copy=False, tracking=True, copy=False,
help="Employee Stages.\nSlap On: Joined\nGrounding: Training\nTest period : Probation") help="Employee Stages.\nSlap On: Joined\nGrounding: Training\nTest period : Probation")
stages_history = fields.One2many('hr.employee.status.history', 'employee_id', string='Stage History', stages_history = fields.One2many('hr.employee.status.history', 'employee_id', string='Stage History',
help='It shows the duration and history of each stages') help='It shows the duration and history of each stages')

10
fleet_rental/models/car_rental.py

@ -64,13 +64,13 @@ class CarRentalContract(models.Model):
default='#FFFFFF', readonly=True) default='#FFFFFF', readonly=True)
cost = fields.Float(string="Rent Cost", help="This fields is to determine the cost of rent", required=True) cost = fields.Float(string="Rent Cost", help="This fields is to determine the cost of rent", required=True)
rent_start_date = fields.Date(string="Rent Start Date", required=True, default=str(date.today()), rent_start_date = fields.Date(string="Rent Start Date", required=True, default=str(date.today()),
help="Start date of contract", track_visibility='onchange') help="Start date of contract", tracking=True)
rent_end_date = fields.Date(string="Rent End Date", required=True, help="End date of contract", rent_end_date = fields.Date(string="Rent End Date", required=True, help="End date of contract",
track_visibility='onchange') tracking=True)
state = fields.Selection( state = fields.Selection(
[('draft', 'Draft'), ('reserved', 'Reserved'), ('running', 'Running'), ('cancel', 'Cancel'), [('draft', 'Draft'), ('reserved', 'Reserved'), ('running', 'Running'), ('cancel', 'Cancel'),
('checking', 'Checking'), ('invoice', 'Invoice'), ('done', 'Done')], string="State", ('checking', 'Checking'), ('invoice', 'Invoice'), ('done', 'Done')], string="State",
default="draft", copy=False, track_visibility='onchange') default="draft", copy=False, tracking=True)
notes = fields.Text(string="Details & Notes") notes = fields.Text(string="Details & Notes")
cost_generated = fields.Float(string='Recurring Cost', cost_generated = fields.Float(string='Recurring Cost',
help="Costs paid at regular intervals, depending on the cost frequency") help="Costs paid at regular intervals, depending on the cost frequency")
@ -86,7 +86,7 @@ class CarRentalContract(models.Model):
first_payment = fields.Float(string='First Payment', first_payment = fields.Float(string='First Payment',
help="Transaction/Office/Contract charge amount, must paid by customer side other " help="Transaction/Office/Contract charge amount, must paid by customer side other "
"than recurrent payments", "than recurrent payments",
track_visibility='onchange', tracking=True,
required=True) required=True)
first_payment_inv = fields.Many2one('account.move', copy=False) first_payment_inv = fields.Many2one('account.move', copy=False)
first_invoice_created = fields.Boolean(string="First Invoice Created", invisible=True, copy=False) first_invoice_created = fields.Boolean(string="First Invoice Created", invisible=True, copy=False)
@ -107,7 +107,7 @@ class CarRentalContract(models.Model):
invoice_count = fields.Integer(compute='_invoice_count', string='# Invoice', copy=False) invoice_count = fields.Integer(compute='_invoice_count', string='# Invoice', copy=False)
check_verify = fields.Boolean(compute='check_action_verify', copy=False) check_verify = fields.Boolean(compute='check_action_verify', copy=False)
sales_person = fields.Many2one('res.users', string='Sales Person', default=lambda self: self.env.uid, sales_person = fields.Many2one('res.users', string='Sales Person', default=lambda self: self.env.uid,
track_visibility='always') tracking=True)
def action_run(self): def action_run(self):
self.state = 'running' self.state = 'running'

2
front_office_management/models/fo_property_counter.py

@ -19,7 +19,7 @@ class VisitDetails(models.Model):
('prop_in', 'Taken In'), ('prop_in', 'Taken In'),
('prop_out', 'Taken out'), ('prop_out', 'Taken out'),
('cancel', 'Cancelled'), ('cancel', 'Cancelled'),
], track_visibility='onchange', default='draft', ], tracking=True, default='draft',
help='If the employee taken the belongings to the company change state to ""Taken In""' help='If the employee taken the belongings to the company change state to ""Taken In""'
'when he/she leave office change the state to ""Taken out""') 'when he/she leave office change the state to ""Taken out""')

6
front_office_management/models/fo_visit.py

@ -27,7 +27,7 @@ class VisitDetails(models.Model):
('check_in', 'Checked In'), ('check_in', 'Checked In'),
('check_out', 'Checked Out'), ('check_out', 'Checked Out'),
('cancel', 'Cancelled'), ('cancel', 'Cancelled'),
], track_visibility='onchange', default='draft') ], tracking=True, default='draft')
@api.model @api.model
def create(self, vals): def create(self, vals):
@ -63,6 +63,7 @@ class VisitDetails(models.Model):
class PersonalBelongings(models.Model): class PersonalBelongings(models.Model):
_name = 'fo.belongings' _name = 'fo.belongings'
_description = 'Personal Belongings'
property_name = fields.Char(string="Property", help='Employee belongings name') property_name = fields.Char(string="Property", help='Employee belongings name')
property_count = fields.Char(string="Count", help='Count of property') property_count = fields.Char(string="Count", help='Count of property')
@ -73,7 +74,7 @@ class PersonalBelongings(models.Model):
('0', 'Allowed'), ('0', 'Allowed'),
('1', 'Not Allowed'), ('1', 'Not Allowed'),
('2', 'Allowed With Permission'), ('2', 'Allowed With Permission'),
], 'Permission', required=True, index=True, default='0', track_visibility='onchange') ], 'Permission', required=True, index=True, default='0')
@api.depends('belongings_id_fov_visitor', 'belongings_id_fov_employee') @api.depends('belongings_id_fov_visitor', 'belongings_id_fov_employee')
def get_number(self): def get_number(self):
@ -91,6 +92,7 @@ class PersonalBelongings(models.Model):
class VisitPurpose(models.Model): class VisitPurpose(models.Model):
_name = 'fo.purpose' _name = 'fo.purpose'
_description = 'Visit Purpose'
name = fields.Char(string='Purpose', required=True, help='Meeting purpose in short term.eg:Meeting.') name = fields.Char(string='Purpose', required=True, help='Meeting purpose in short term.eg:Meeting.')
description = fields.Text(string='Description Of Purpose', help='Description for the Purpose.') description = fields.Text(string='Description Of Purpose', help='Description for the Purpose.')

2
front_office_management/models/fo_visitor.py

@ -4,6 +4,7 @@ from odoo import models, fields, api
class VisitorDetails(models.Model): class VisitorDetails(models.Model):
_name = 'fo.visitor' _name = 'fo.visitor'
_description = 'Visitor'
name = fields.Char(string="Visitor", required=True) name = fields.Char(string="Visitor", required=True)
visitor_image = fields.Binary(string='Image', attachment=True) visitor_image = fields.Binary(string='Image', attachment=True)
@ -31,6 +32,7 @@ class VisitorDetails(models.Model):
class VisitorProof(models.Model): class VisitorProof(models.Model):
_name = 'id.proof' _name = 'id.proof'
_description = 'Visitor Proof'
_rec_name = 'id_proof' _rec_name = 'id_proof'
id_proof = fields.Char(string="Name") id_proof = fields.Char(string="Name")

52
front_office_management/report/report.xml

@ -2,31 +2,35 @@
<odoo> <odoo>
<data> <data>
<report <record id="action_print_visit_card" model="ir.actions.report">
string="Visitor Pass" <field name="name">Visitor Pass</field>
id="action_print_visit_card" <field name="model">fo.visit</field>
model="fo.visit" <field name="report_type">qweb-pdf</field>
report_type="qweb-pdf" <field name="report_name">front_office_management.report_visitor_label</field>
name="front_office_management.report_visitor_label" <field name="report_file">front_office_management.report_visitor_label</field>
file="front_office_management.report_visitor_label" <field name="binding_model_id" ref="model_fo_visit"/>
/> <field name="binding_type">report</field>
<report </record>
string="Visitors Report"
id="action_print_visit_report"
model="fo.visit"
report_type="qweb-pdf"
name="front_office_management.report_visitor_report"
file="front_office_management.report_visitor_report"
/>
<report <record id="action_print_visit_report" model="ir.actions.report">
string="Property Label" <field name="name">Visitors Report</field>
id="action_print_property_label" <field name="model">fo.visit</field>
model="fo.property.counter" <field name="report_type">qweb-pdf</field>
report_type="qweb-pdf" <field name="report_name">front_office_management.report_visitor_report</field>
name="front_office_management.report_property_label" <field name="report_file">front_office_management.report_visitor_report</field>
file="front_office_management.report_property_label" <field name="binding_model_id" ref="model_fo_visit"/>
/> <field name="binding_type">report</field>
</record>
<record id="action_print_property_label" model="ir.actions.report">
<field name="name">Property Label</field>
<field name="model">fo.property.counter</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">front_office_management.report_property_label</field>
<field name="report_file">front_office_management.report_property_label</field>
<field name="binding_model_id" ref="model_fo_property_counter"/>
<field name="binding_type">report</field>
</record>
</data> </data>
</odoo> </odoo>

1
hr_payslip_monthly_report/report/hr_payslip_report.py

@ -29,6 +29,7 @@ from calendar import monthrange
class PayrollReportView(models.Model): class PayrollReportView(models.Model):
_name = 'hr.payroll.report.view' _name = 'hr.payroll.report.view'
_description = 'Payroll Report View'
_auto = False _auto = False
now = date.today() now = date.today()

1
insurance_management_cybro/models/claim_details.py

@ -25,6 +25,7 @@ from odoo import models, fields, api, _
class ClaimDetails(models.Model): class ClaimDetails(models.Model):
_name = 'claim.details' _name = 'claim.details'
_description = 'Claim Details'
name = fields.Char(string='Name', required=True, copy=False, readonly=True, index=True, name = fields.Char(string='Name', required=True, copy=False, readonly=True, index=True,
default=lambda self: _('New')) default=lambda self: _('New'))

1
insurance_management_cybro/models/employee_details.py

@ -26,6 +26,7 @@ from odoo.exceptions import UserError
class EmployeeDetails(models.Model): class EmployeeDetails(models.Model):
_name = 'employee.details' _name = 'employee.details'
_description = 'Employee Details'
name = fields.Char(string='Name', required=True) name = fields.Char(string='Name', required=True)
related_partner = fields.Many2one('res.users', string='Related User', copy=False) related_partner = fields.Many2one('res.users', string='Related User', copy=False)

1
insurance_management_cybro/models/insurance_model.py

@ -26,6 +26,7 @@ from odoo.exceptions import UserError
class InsuranceDetails(models.Model): class InsuranceDetails(models.Model):
_name = 'insurance.details' _name = 'insurance.details'
_description = 'Insurance Details'
name = fields.Char(string='Name', required=True, copy=False, readonly=True, index=True, name = fields.Char(string='Name', required=True, copy=False, readonly=True, index=True,
default=lambda self: _('New')) default=lambda self: _('New'))

2
insurance_management_cybro/models/policy_details.py

@ -25,6 +25,7 @@ from odoo import models, fields
class PolicyDetails(models.Model): class PolicyDetails(models.Model):
_name = 'policy.details' _name = 'policy.details'
_description = 'Policy Details'
name = fields.Char(string='Name', required=True) name = fields.Char(string='Name', required=True)
policy_type = fields.Many2one('policy.type', string='Policy Type', required=True) policy_type = fields.Many2one('policy.type', string='Policy Type', required=True)
@ -37,5 +38,6 @@ class PolicyDetails(models.Model):
class PolicyType(models.Model): class PolicyType(models.Model):
_name = 'policy.type' _name = 'policy.type'
_description = 'Policy Type'
name = fields.Char(string='Name') name = fields.Char(string='Name')

2
invoice_stock_move/models/invoice_stock.py

@ -54,7 +54,7 @@ class InvoiceStockMove(models.Model):
('cancel', 'Cancelled'), ('cancel', 'Cancelled'),
('done', 'Received'), ('done', 'Received'),
], string='Status', index=True, readonly=True, default='draft', ], string='Status', index=True, readonly=True, default='draft',
track_visibility='onchange', copy=False) tracking=True, copy=False)
def action_stock_move(self): def action_stock_move(self):
if not self.picking_type_id: if not self.picking_type_id:

4
laundry_management/models/laundry.py

@ -187,7 +187,7 @@ class LaundryManagement(models.Model):
'order': [('readonly', False)]}, 'order': [('readonly', False)]},
required=True, required=True,
change_default=True, index=True, change_default=True, index=True,
track_visibility='always') tracking=True)
partner_invoice_id = fields.Many2one('res.partner', partner_invoice_id = fields.Many2one('res.partner',
string='Invoice Address', string='Invoice Address',
readonly=True, required=True, readonly=True, required=True,
@ -220,7 +220,7 @@ class LaundryManagement(models.Model):
('return', 'Returned'), ('return', 'Returned'),
('cancel', 'Cancelled'), ('cancel', 'Cancelled'),
], string='Status', readonly=True, copy=False, index=True, ], string='Status', readonly=True, copy=False, index=True,
track_visibility='onchange', default='draft') tracking=True, default='draft')
class LaundryManagementLine(models.Model): class LaundryManagementLine(models.Model):

16
laundry_management/views/laundry_label.xml

@ -35,13 +35,15 @@
</t> </t>
</template> </template>
<report <record id="laundry_label" model="ir.actions.report">
string="Laundry Order Label" <field name="name">Laundry Order Label</field>
id="laundry_label" <field name="model">laundry.order</field>
model="laundry.order" <field name="report_type">qweb-pdf</field>
report_type="qweb-pdf" <field name="report_name">laundry_management.laundry_order_label</field>
name="laundry_management.laundry_order_label" <field name="report_file">laundry_management.laundry_order_label</field>
file="laundry_management.laundry_order_label"/> <field name="binding_model_id" ref="model_laundry_order"/>
<field name="binding_type">report</field>
</record>
</data> </data>
</odoo> </odoo>

3
medical_lab_management/models/lab_appointment.py

@ -54,7 +54,7 @@ class Appointment(models.Model):
('to_invoice', 'To Invoice'), ('to_invoice', 'To Invoice'),
('invoiced', 'Done'), ('invoiced', 'Done'),
('cancel', 'Cancelled'), ('cancel', 'Cancelled'),
], string='Status', readonly=True, copy=False, index=True, track_visibility='onchange', default='draft', ], string='Status', readonly=True, copy=False, index=True, tracking=True, default='draft',
) )
priority = fields.Selection([ priority = fields.Selection([
@ -176,6 +176,7 @@ class Appointment(models.Model):
class LabAppointmentLines(models.Model): class LabAppointmentLines(models.Model):
_name = 'lab.appointment.lines' _name = 'lab.appointment.lines'
_description = 'Lab Appointment Lines'
lab_test = fields.Many2one('lab.test', string="Test") lab_test = fields.Many2one('lab.test', string="Test")
cost = fields.Float(string="Cost") cost = fields.Float(string="Cost")

2
medical_lab_management/models/lab_request.py

@ -47,7 +47,7 @@ class LabRequest(models.Model):
('completed', 'Completed'), ('completed', 'Completed'),
('cancel', 'Cancelled'), ('cancel', 'Cancelled'),
], string='Status', readonly=True, copy=False, index=True, track_visibility='onchange', default='draft') ], string='Status', readonly=True, copy=False, index=True, tracking=True, default='draft')
@api.model @api.model
def create(self, vals): def create(self, vals):

27
medical_lab_management/report/report.xml

@ -9,24 +9,15 @@
<field name="report_file">medical_lab_management.report_patient_labtest</field> <field name="report_file">medical_lab_management.report_patient_labtest</field>
</record> </record>
<record id="action_report_patient_label" model="ir.actions.report">
<!-- <record id="action_report_patient_label" model="ir.actions.report">--> <field name="name">Patient Card</field>
<!-- <field name="name">Patient Card</field>--> <field name="model">lab.patient</field>
<!-- <field name="model">lab.patient</field>--> <field name="report_type">qweb-pdf</field>
<!-- <field name="report_type">qweb-pdf</field>--> <field name="report_name">medical_lab_management.report_patient_label</field>
<!-- <field name="report_name">medical_lab_management.report_patient_label</field>--> <field name="report_file">medical_lab_management.report_patient_label</field>
<!-- <field name="report_file">medical_lab_management.report_patient_label</field>--> <field name="binding_model_id" ref="model_lab_patient"/>
<!-- </record>--> <field name="binding_type">report</field>
</record>
<report
string="Patient Card"
id="action_report_patient_label"
model="lab.patient"
report_type="qweb-pdf"
name="medical_lab_management.report_patient_label"
file="medical_lab_management.report_patient_label"
/>
</data> </data>
</odoo> </odoo>

2
mobile_service_shop/models/mobile_service.py

@ -65,7 +65,7 @@ class MobileServiceShop(models.Model):
service_state = fields.Selection([('draft', 'Draft'), ('assigned', 'Assigned'), service_state = fields.Selection([('draft', 'Draft'), ('assigned', 'Assigned'),
('completed', 'Completed'), ('returned', 'Returned'), ('completed', 'Completed'), ('returned', 'Returned'),
('not_solved', 'Not solved')], ('not_solved', 'Not solved')],
string='Service Status', default='draft', track_visibility='always') string='Service Status', default='draft', tracking=True)
complaints_tree = fields.One2many('mobile.complaint.tree', 'complaint_id', string='Complaints Tree') complaints_tree = fields.One2many('mobile.complaint.tree', 'complaint_id', string='Complaints Tree')

17
mrp_work_order_print/views/report_work_order.xml

@ -88,13 +88,14 @@
</template> </template>
<data> <data>
<report <record id="action_report_work_order" model="ir.actions.report">
string="Work Order Details" <field name="name">Work Order Details</field>
id="action_report_work_order" <field name="model">mrp.workorder</field>
model="mrp.workorder" <field name="report_name">mrp_work_order_print.report_workorder</field>
name="mrp_work_order_print.report_workorder" <field name="report_file">mrp_work_order_print.report.report_work_order</field>
file="mrp_work_order_print.report.report_work_order" <field name="report_type">qweb-pdf</field>
report_type="qweb-pdf" <field name="binding_model_id" ref="model_mrp_workorder"/>
/> <field name="binding_type">report</field>
</record>
</data> </data>
</odoo> </odoo>

1
multicolor_backend_theme/models/theme_config.py

@ -25,6 +25,7 @@ from odoo.exceptions import ValidationError
class ThemeConfig(models.Model): class ThemeConfig(models.Model):
_name = 'theme.config' _name = 'theme.config'
_description = 'Theme Config'
name = fields.Char(string="Name") name = fields.Char(string="Name")
sidebar_image = fields.Binary(string="Sidebar image") sidebar_image = fields.Binary(string="Sidebar image")

17
print_voucher_receipts/views/account_voucher_print.xml

@ -1,13 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<data> <data>
<report <record id="action_print_receipt" model="ir.actions.report">
id="action_print_receipt" <field name="name">Receipts</field>
string="Receipts" <field name="model">account.move</field>
model="account.move" <field name="report_type">qweb-pdf</field>
report_type="qweb-pdf" <field name="report_name">print_voucher_receipts.print_voucher_receipt</field>
name="print_voucher_receipts.print_voucher_receipt" <field name="report_file">print_voucher_receipts.print_voucher_receipt</field>
file="print_voucher_receipts.print_voucher_receipt" <field name="binding_model_id" ref="model_account_move"/>
/> <field name="binding_type">report</field>
</record>
</data> </data>
</odoo> </odoo>

1
product_brand_purchase/models/brand.py

@ -8,6 +8,7 @@ class ProductBrand(models.Model):
class BrandProduct(models.Model): class BrandProduct(models.Model):
_name = 'product.brand' _name = 'product.brand'
_description = 'Product Brand'
name= fields.Char(String="Name") name= fields.Char(String="Name")
brand_image = fields.Binary() brand_image = fields.Binary()

1
product_brand_sale/models/brand.py

@ -8,6 +8,7 @@ class ProductBrand(models.Model):
class BrandProduct(models.Model): class BrandProduct(models.Model):
_name = 'product.brand' _name = 'product.brand'
_description = 'Product Brand'
name= fields.Char(String="Name") name= fields.Char(String="Name")

17
product_catalogue/report/product_catalog_report.xml

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<report <record id="action_report_product_catalog" model="ir.actions.report">
id="action_report_product_catalog" <field name="name">Product Catalog(PDF)</field>
string="Product Catalog(PDF)" <field name="model">product.template</field>
model="product.template" <field name="report_type">qweb-pdf</field>
report_type="qweb-pdf" <field name="report_name">product_catalogue.report_product_catalog</field>
name="product_catalogue.report_product_catalog" <field name="report_file">product_catalogue.report_product_catalog</field>
file="product_catalogue.report_product_catalog" <field name="binding_model_id" ref="model_product_template"/>
/> <field name="binding_type">report</field>
</record>
</odoo> </odoo>

1
product_import/wizard/product_import.py

@ -32,6 +32,7 @@ from odoo import models, fields, _
class ProductImport(models.Model): class ProductImport(models.Model):
_name = 'product.import' _name = 'product.import'
_description = 'Product Import'
file = fields.Binary(string="Upload File") file = fields.Binary(string="Upload File")
file_name = fields.Char(string="File Name") file_name = fields.Char(string="File Name")

1
project_report_pdf/wizard/project_report_wizard.py

@ -35,6 +35,7 @@ except ImportError:
class ProjectReportButton(models.TransientModel): class ProjectReportButton(models.TransientModel):
_name = 'wizard.project.report' _name = 'wizard.project.report'
_description = 'Project Report Button'
partner_select = fields.Many2many('res.users', string='Assigned to') partner_select = fields.Many2many('res.users', string='Assigned to')
stage_select = fields.Many2many('project.task.type', string="Stage") stage_select = fields.Many2many('project.task.type', string="Stage")

2
sale_discount_total/models/account_invoice.py

@ -141,7 +141,7 @@ class AccountInvoice(models.Model):
discount_rate = fields.Float('Discount Amount', digits=(16, 2), readonly=True, discount_rate = fields.Float('Discount Amount', digits=(16, 2), readonly=True,
states={'draft': [('readonly', False)]}) states={'draft': [('readonly', False)]})
amount_discount = fields.Monetary(string='Discount', store=True, readonly=True, compute='_compute_amount', amount_discount = fields.Monetary(string='Discount', store=True, readonly=True, compute='_compute_amount',
track_visibility='always') tracking=True)
@api.onchange('discount_type', 'discount_rate', 'invoice_line_ids') @api.onchange('discount_type', 'discount_rate', 'invoice_line_ids')
def supply_rate(self): def supply_rate(self):

2
sale_discount_total/models/discount_approval.py

@ -33,7 +33,7 @@ class sale_discount(models.Model):
('sale', 'Sales Order'), ('sale', 'Sales Order'),
('done', 'Locked'), ('done', 'Locked'),
('cancel', 'Cancelled'), ('cancel', 'Cancelled'),
], string='Status', readonly=True, copy=False, index=True, track_visibility='onchange', default='draft') ], string='Status', readonly=True, copy=False, index=True, tracking=True, default='draft')
def action_confirm(self): def action_confirm(self):

11
sale_discount_total/models/sale.py

@ -21,7 +21,6 @@
############################################################################# #############################################################################
from odoo import api, fields, models from odoo import api, fields, models
import odoo.addons.decimal_precision as dp
class SaleOrder(models.Model): class SaleOrder(models.Model):
@ -49,16 +48,16 @@ class SaleOrder(models.Model):
readonly=True, readonly=True,
states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]},
default='percent') default='percent')
discount_rate = fields.Float('Discount Rate', digits=dp.get_precision('Account'), discount_rate = fields.Float('Discount Rate', digits='Account',
readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}) readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]})
amount_untaxed = fields.Monetary(string='Untaxed Amount', store=True, readonly=True, compute='_amount_all', amount_untaxed = fields.Monetary(string='Untaxed Amount', store=True, readonly=True, compute='_amount_all',
track_visibility='always') tracking=True)
amount_tax = fields.Monetary(string='Taxes', store=True, readonly=True, compute='_amount_all', amount_tax = fields.Monetary(string='Taxes', store=True, readonly=True, compute='_amount_all',
track_visibility='always') tracking=True)
amount_total = fields.Monetary(string='Total', store=True, readonly=True, compute='_amount_all', amount_total = fields.Monetary(string='Total', store=True, readonly=True, compute='_amount_all',
track_visibility='always') tracking=True)
amount_discount = fields.Monetary(string='Discount', store=True, readonly=True, compute='_amount_all', amount_discount = fields.Monetary(string='Discount', store=True, readonly=True, compute='_amount_all',
digits=dp.get_precision('Account'), track_visibility='always') digits='Account', tracking=True)
@api.onchange('discount_type', 'discount_rate', 'order_line') @api.onchange('discount_type', 'discount_rate', 'order_line')
def supply_rate(self): def supply_rate(self):

2
theme_diva/models/configuration.py

@ -54,5 +54,5 @@ class WebsiteProductFeatured(models.Model):
string="Featured List", string="Featured List",
default=_default_featured_list) default=_default_featured_list)
user_id = fields.Many2one('res.users', string="Person Responsible", user_id = fields.Many2one('res.users', string="Person Responsible",
track_visibility='onchange', tracking=True,
default=lambda self: self.env.uid) default=lambda self: self.env.uid)

1
timesheets_by_employee/wizard/timesheet_employee.py

@ -24,6 +24,7 @@ from odoo import models, fields
class EmployeeTimesheet(models.TransientModel): class EmployeeTimesheet(models.TransientModel):
_name = 'timesheet.wizard' _name = 'timesheet.wizard'
_description = 'Employee Timesheet'
employee = fields.Many2one('res.users', string="Employee", required=True) employee = fields.Many2one('res.users', string="Employee", required=True)
from_date = fields.Date(string="Starting Date") from_date = fields.Date(string="Starting Date")

2
vista_backend_theme/wizard/theme.py

@ -7,6 +7,7 @@ from odoo.modules import get_module_resource
class Theme(models.TransientModel): class Theme(models.TransientModel):
_name = "theme.data" _name = "theme.data"
_description = "Theme Data"
def _get_current_theme(self): def _get_current_theme(self):
return self.env['theme.data.stored'].sudo().search([], limit=1).name return self.env['theme.data.stored'].sudo().search([], limit=1).name
@ -543,6 +544,7 @@ class Theme(models.TransientModel):
class ThemeStored(models.Model): class ThemeStored(models.Model):
_name = "theme.data.stored" _name = "theme.data.stored"
_description = "Theme Data Stored"
name = fields.Selection([ name = fields.Selection([
('default', 'Default'), ('default', 'Default'),

Loading…
Cancel
Save