15 lines
526 B
Python
15 lines
526 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import models, fields, api
|
|
|
|
class ResCompany(models.Model):
|
|
_inherit = 'res.company'
|
|
|
|
intercompany_auto_so = fields.Boolean(
|
|
string='Auto-create Sales Orders',
|
|
help='If checked, when another company issues a PO to this company, an SO is automatically generated.'
|
|
)
|
|
intercompany_auto_invoice = fields.Boolean(
|
|
string='Auto-generate Invoices',
|
|
help='If checked, syncing delivery/receipt automatically generates invoices on both sides.'
|
|
)
|