mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[WIP][12.0][MIG] contract_sale_generation
This commit is contained in:
committed by
Jesús Feliciano Valdez Cruz [Vauxoo]
parent
7e8a29cca1
commit
d28e7ad3c4
19
contract_sale_generation/models/abstract_contract.py
Normal file
19
contract_sale_generation/models/abstract_contract.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Copyright 2017 Pesol (<http://pesol.es>)
|
||||
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ContractAbstractContract(models.AbstractModel):
|
||||
_inherit = 'contract.abstract.contract'
|
||||
|
||||
type = fields.Selection(
|
||||
[('invoice', 'Invoice'),
|
||||
('sale', 'Sale')],
|
||||
string='Type',
|
||||
default='invoice',
|
||||
required=True,
|
||||
)
|
||||
sale_autoconfirm = fields.Boolean(
|
||||
string='Sale Autoconfirm')
|
||||
Reference in New Issue
Block a user