Skip to content

Instantly share code, notes, and snippets.

@rvalyi
Created September 25, 2020 13:04
Show Gist options
  • Save rvalyi/0107bc1706dc6f169798d243676c8058 to your computer and use it in GitHub Desktop.
Save rvalyi/0107bc1706dc6f169798d243676c8058 to your computer and use it in GitHub Desktop.
# Copyright 2020 Akretion - Raphael Valyi <[email protected]>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html).
# Generated Fri Sep 25 10:03:51 2020 by https://github.com/akretion/generateds-odoo
# and generateDS.py.
# Python 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
#
import textwrap
from odoo import fields, models
class TenderContract(models.AbstractModel):
"""ABIE
Tender Contract. Details
A document published by a Contracting Party to announce the awarding of a
procurement project.
Tender Contract"""
_description = textwrap.dedent(" %s" % (__doc__,))
_name = 'ubl.23.tendercontract'
_inherit = 'spec.mixin.ubl'
_generateds_type = 'TenderContractType'
_concrete_rec_name = 'ubl23_UBLExtensions'
ubl23_UBLExtensions = fields.Char(
string="UBLExtensions")
ubl23_UBLVersionID = fields.Many2one(
"ubl.23.ublversionid",
string="UBLVersionID")
ubl23_CustomizationID = fields.Many2one(
"ubl.23.customizationid",
string="CustomizationID")
ubl23_ProfileID = fields.Many2one(
"ubl.23.profileid",
string="ProfileID")
ubl23_ProfileExecutionID = fields.Many2one(
"ubl.23.profileexecutionid",
string="ProfileExecutionID")
ubl23_ID = fields.Many2one(
"ubl.23.id",
string="ID")
ubl23_CopyIndicator = fields.Many2one(
"ubl.23.copyindicator",
string="CopyIndicator")
ubl23_UUID = fields.Many2one(
"ubl.23.uuid",
string="UUID")
ubl23_ContractFolderID = fields.Many2one(
"ubl.23.contractfolderid",
string="ContractFolderID",
xsd_required=True)
ubl23_IssueDate = fields.Many2one(
"ubl.23.issuedatetype",
string="IssueDate", xsd_required=True)
ubl23_IssueTime = fields.Many2one(
"ubl.23.issuetime",
string="IssueTime")
ubl23_ContractName = fields.One2many(
"ubl.23.contractnametype",
"ubl23_ContractName_TenderContract_id",
string="ContractName"
)
ubl23_Note = fields.One2many(
"ubl.23.notetype",
"ubl23_Note_TenderContract_id",
string="Note"
)
ubl23_RegulatoryDomain = fields.One2many(
"ubl.23.regulatorydomaintype",
"ubl23_RegulatoryDomain_TenderContract_id",
string="RegulatoryDomain"
)
ubl23_PublishAwardIndicator = fields.Many2one(
"ubl.23.publishawardindicator",
string="PublishAwardIndicator")
ubl23_PreviousDocumentReference = fields.One2many(
"ubl.23.documentreference",
"ubl23_PreviousDocumentReference_TenderContract_id",
string="PreviousDocumentReference"
)
ubl23_ContractDocumentReference = fields.One2many(
"ubl.23.documentreference",
"ubl23_ContractDocumentReference_TenderContract_id",
string="ContractDocumentReference"
)
ubl23_ContractingParty = fields.One2many(
"ubl.23.contractingparty",
"ubl23_ContractingParty_TenderContract_id",
string="ContractingParty",
xsd_required=True
)
ubl23_EconomicOperatorParty = fields.One2many(
"ubl.23.economicoperatorparty",
"ubl23_EconomicOperatorParty_TenderContract_id",
string="EconomicOperatorParty",
xsd_required=True
)
ubl23_ReceiverParty = fields.Many2one(
"ubl.23.party",
string="ReceiverParty")
ubl23_TenderingTerms = fields.Many2one(
"ubl.23.tenderingterms",
string="TenderingTerms")
ubl23_TenderingProcess = fields.Many2one(
"ubl.23.tenderingprocess",
string="TenderingProcess")
ubl23_ProcurementProject = fields.Many2one(
"ubl.23.procurementproject",
string="ProcurementProject")
ubl23_ProcurementProjectLot = fields.One2many(
"ubl.23.procurementprojectlot",
"ubl23_ProcurementProjectLot_TenderContract_id",
string="ProcurementProjectLot"
)
ubl23_TenderResult = fields.One2many(
"ubl.23.tenderresult",
"ubl23_TenderResult_TenderContract_id",
string="TenderResult", xsd_required=True
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment