Created
September 25, 2020 13:03
-
-
Save rvalyi/ebdc33b1571259b24584de682399233c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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:02:26 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 Order(models.AbstractModel): | |
| """ABIE | |
| Order. Details | |
| A document used to order goods and services. | |
| Order | |
| Purchase Order""" | |
| _description = textwrap.dedent(" %s" % (__doc__,)) | |
| _name = 'ubl.23.order' | |
| _inherit = 'spec.mixin.ubl' | |
| _generateds_type = 'OrderType' | |
| _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", xsd_required=True) | |
| ubl23_SalesOrderID = fields.Many2one( | |
| "ubl.23.salesorderid", | |
| string="SalesOrderID") | |
| ubl23_CopyIndicator = fields.Many2one( | |
| "ubl.23.copyindicator", | |
| string="CopyIndicator") | |
| ubl23_UUID = fields.Many2one( | |
| "ubl.23.uuid", | |
| string="UUID") | |
| ubl23_IssueDate = fields.Many2one( | |
| "ubl.23.issuedatetype", | |
| string="IssueDate", xsd_required=True) | |
| ubl23_IssueTime = fields.Many2one( | |
| "ubl.23.issuetime", | |
| string="IssueTime") | |
| ubl23_OrderTypeCode = fields.Many2one( | |
| "ubl.23.ordertypecodetype", | |
| string="OrderTypeCode") | |
| ubl23_Note = fields.One2many( | |
| "ubl.23.notetype", | |
| "ubl23_Note_Order_id", | |
| string="Note" | |
| ) | |
| ubl23_RequestedInvoiceCurrencyCode = fields.Many2one( | |
| "ubl.23.requestedinvoicecurrencycodetype", | |
| string="RequestedInvoiceCurrencyCode") | |
| ubl23_DocumentCurrencyCode = fields.Many2one( | |
| "ubl.23.documentcurrencycodetype", | |
| string="DocumentCurrencyCode") | |
| ubl23_PricingCurrencyCode = fields.Many2one( | |
| "ubl.23.pricingcurrencycodetype", | |
| string="PricingCurrencyCode") | |
| ubl23_TaxCurrencyCode = fields.Many2one( | |
| "ubl.23.taxcurrencycodetype", | |
| string="TaxCurrencyCode") | |
| ubl23_CustomerReference = fields.Many2one( | |
| "ubl.23.customerreferencetype", | |
| string="CustomerReference") | |
| ubl23_AccountingCostCode = fields.Many2one( | |
| "ubl.23.accountingcostcodetype", | |
| string="AccountingCostCode") | |
| ubl23_AccountingCost = fields.Many2one( | |
| "ubl.23.accountingcosttype", | |
| string="AccountingCost") | |
| ubl23_LineCountNumeric = fields.Many2one( | |
| "ubl.23.linecountnumeric", | |
| string="LineCountNumeric") | |
| ubl23_ValidityPeriod = fields.One2many( | |
| "ubl.23.period", | |
| "ubl23_ValidityPeriod_Order_id", | |
| string="ValidityPeriod" | |
| ) | |
| ubl23_QuotationDocumentReference = fields.Many2one( | |
| "ubl.23.documentreference", | |
| string="QuotationDocumentReference") | |
| ubl23_OrderDocumentReference = fields.One2many( | |
| "ubl.23.documentreference", | |
| "ubl23_OrderDocumentReference_Order_id", | |
| string="OrderDocumentReference" | |
| ) | |
| ubl23_OriginatorDocumentReference = fields.Many2one( | |
| "ubl.23.documentreference", | |
| string="OriginatorDocumentReference") | |
| ubl23_CatalogueReference = fields.Many2one( | |
| "ubl.23.cataloguereference", | |
| string="CatalogueReference") | |
| ubl23_AdditionalDocumentReference = fields.One2many( | |
| "ubl.23.documentreference", | |
| "ubl23_AdditionalDocumentReference_Order_id", | |
| string="AdditionalDocumentReference" | |
| ) | |
| ubl23_Contract = fields.One2many( | |
| "ubl.23.contract", | |
| "ubl23_Contract_Order_id", | |
| string="Contract" | |
| ) | |
| ubl23_ProjectReference = fields.One2many( | |
| "ubl.23.projectreference", | |
| "ubl23_ProjectReference_Order_id", | |
| string="ProjectReference" | |
| ) | |
| ubl23_BuyerCustomerParty = fields.Many2one( | |
| "ubl.23.customerparty", | |
| string="BuyerCustomerParty", | |
| xsd_required=True) | |
| ubl23_SellerSupplierParty = fields.Many2one( | |
| "ubl.23.supplierparty", | |
| string="SellerSupplierParty", | |
| xsd_required=True) | |
| ubl23_OriginatorCustomerParty = fields.Many2one( | |
| "ubl.23.customerparty", | |
| string="OriginatorCustomerParty") | |
| ubl23_FreightForwarderParty = fields.Many2one( | |
| "ubl.23.party", | |
| string="FreightForwarderParty") | |
| ubl23_AccountingCustomerParty = fields.Many2one( | |
| "ubl.23.customerparty", | |
| string="AccountingCustomerParty") | |
| ubl23_Delivery = fields.One2many( | |
| "ubl.23.delivery", | |
| "ubl23_Delivery_Order_id", | |
| string="Delivery" | |
| ) | |
| ubl23_DeliveryTerms = fields.One2many( | |
| "ubl.23.deliveryterms", | |
| "ubl23_DeliveryTerms_Order_id", | |
| string="DeliveryTerms" | |
| ) | |
| ubl23_PaymentMeans = fields.One2many( | |
| "ubl.23.paymentmeans", | |
| "ubl23_PaymentMeans_Order_id", | |
| string="PaymentMeans" | |
| ) | |
| ubl23_PaymentTerms = fields.One2many( | |
| "ubl.23.paymentterms", | |
| "ubl23_PaymentTerms_Order_id", | |
| string="PaymentTerms" | |
| ) | |
| ubl23_TransactionConditions = fields.Many2one( | |
| "ubl.23.transactionconditions", | |
| string="TransactionConditions") | |
| ubl23_AllowanceCharge = fields.One2many( | |
| "ubl.23.allowancecharge", | |
| "ubl23_AllowanceCharge_Order_id", | |
| string="AllowanceCharge" | |
| ) | |
| ubl23_TaxExchangeRate = fields.Many2one( | |
| "ubl.23.exchangerate", | |
| string="TaxExchangeRate") | |
| ubl23_PricingExchangeRate = fields.Many2one( | |
| "ubl.23.exchangerate", | |
| string="PricingExchangeRate") | |
| ubl23_PaymentExchangeRate = fields.Many2one( | |
| "ubl.23.exchangerate", | |
| string="PaymentExchangeRate") | |
| ubl23_DestinationCountry = fields.Many2one( | |
| "ubl.23.country", | |
| string="DestinationCountry") | |
| ubl23_TaxTotal = fields.One2many( | |
| "ubl.23.taxtotal", | |
| "ubl23_TaxTotal_Order_id", | |
| string="TaxTotal" | |
| ) | |
| ubl23_AnticipatedMonetaryTotal = fields.Many2one( | |
| "ubl.23.monetarytotal", | |
| string="AnticipatedMonetaryTotal") | |
| ubl23_OrderLine = fields.One2many( | |
| "ubl.23.orderline", | |
| "ubl23_OrderLine_Order_id", | |
| string="OrderLine", xsd_required=True | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment