Created
September 25, 2020 13:01
-
-
Save rvalyi/a37c1d3706bac1d09676bc6bfb652236 to your computer and use it in GitHub Desktop.
This file contains 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:00:46 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 Invoice(models.AbstractModel): | |
"""ABIE | |
Invoice. Details | |
A document used to request payment. | |
Invoice""" | |
_description = textwrap.dedent(" %s" % (__doc__,)) | |
_name = 'ubl.23.invoice' | |
_inherit = 'spec.mixin.ubl' | |
_generateds_type = 'InvoiceType' | |
_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_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_DueDate = fields.Many2one( | |
"ubl.23.duedatetype", | |
string="DueDate") | |
ubl23_InvoiceTypeCode = fields.Many2one( | |
"ubl.23.invoicetypecodetype", | |
string="InvoiceTypeCode") | |
ubl23_Note = fields.One2many( | |
"ubl.23.notetype", | |
"ubl23_Note_Invoice_id", | |
string="Note" | |
) | |
ubl23_TaxPointDate = fields.Many2one( | |
"ubl.23.taxpointdatetype", | |
string="TaxPointDate") | |
ubl23_DocumentCurrencyCode = fields.Many2one( | |
"ubl.23.documentcurrencycodetype", | |
string="DocumentCurrencyCode") | |
ubl23_TaxCurrencyCode = fields.Many2one( | |
"ubl.23.taxcurrencycodetype", | |
string="TaxCurrencyCode") | |
ubl23_PricingCurrencyCode = fields.Many2one( | |
"ubl.23.pricingcurrencycodetype", | |
string="PricingCurrencyCode") | |
ubl23_PaymentCurrencyCode = fields.Many2one( | |
"ubl.23.paymentcurrencycodetype", | |
string="PaymentCurrencyCode") | |
ubl23_PaymentAlternativeCurrencyCode = fields.Many2one( | |
"ubl.23.paymentalternativecurrencycodetype", | |
string="PaymentAlternativeCurrencyCode") | |
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_BuyerReference = fields.Many2one( | |
"ubl.23.buyerreferencetype", | |
string="BuyerReference") | |
ubl23_InvoicePeriod = fields.One2many( | |
"ubl.23.period", | |
"ubl23_InvoicePeriod_Invoice_id", | |
string="InvoicePeriod" | |
) | |
ubl23_OrderReference = fields.Many2one( | |
"ubl.23.orderreference", | |
string="OrderReference") | |
ubl23_BillingReference = fields.One2many( | |
"ubl.23.billingreference", | |
"ubl23_BillingReference_Invoice_id", | |
string="BillingReference" | |
) | |
ubl23_DespatchDocumentReference = fields.One2many( | |
"ubl.23.documentreference", | |
"ubl23_DespatchDocumentReference_Invoice_id", | |
string="DespatchDocumentReference" | |
) | |
ubl23_ReceiptDocumentReference = fields.One2many( | |
"ubl.23.documentreference", | |
"ubl23_ReceiptDocumentReference_Invoice_id", | |
string="ReceiptDocumentReference" | |
) | |
ubl23_StatementDocumentReference = fields.One2many( | |
"ubl.23.documentreference", | |
"ubl23_StatementDocumentReference_Invoice_id", | |
string="StatementDocumentReference" | |
) | |
ubl23_OriginatorDocumentReference = fields.One2many( | |
"ubl.23.documentreference", | |
"ubl23_OriginatorDocumentReference_Invoice_id", | |
string="OriginatorDocumentReference" | |
) | |
ubl23_ContractDocumentReference = fields.One2many( | |
"ubl.23.documentreference", | |
"ubl23_ContractDocumentReference_Invoice_id", | |
string="ContractDocumentReference" | |
) | |
ubl23_AdditionalDocumentReference = fields.One2many( | |
"ubl.23.documentreference", | |
"ubl23_AdditionalDocumentReference_Invoice_id", | |
string="AdditionalDocumentReference" | |
) | |
ubl23_ProjectReference = fields.One2many( | |
"ubl.23.projectreference", | |
"ubl23_ProjectReference_Invoice_id", | |
string="ProjectReference" | |
) | |
ubl23_AccountingSupplierParty = fields.Many2one( | |
"ubl.23.supplierparty", | |
string="AccountingSupplierParty", | |
xsd_required=True) | |
ubl23_AccountingCustomerParty = fields.Many2one( | |
"ubl.23.customerparty", | |
string="AccountingCustomerParty") | |
ubl23_PayeeParty = fields.Many2one( | |
"ubl.23.party", | |
string="PayeeParty") | |
ubl23_BuyerCustomerParty = fields.Many2one( | |
"ubl.23.customerparty", | |
string="BuyerCustomerParty") | |
ubl23_SellerSupplierParty = fields.Many2one( | |
"ubl.23.supplierparty", | |
string="SellerSupplierParty") | |
ubl23_TaxRepresentativeParty = fields.Many2one( | |
"ubl.23.party", | |
string="TaxRepresentativeParty") | |
ubl23_Delivery = fields.One2many( | |
"ubl.23.delivery", | |
"ubl23_Delivery_Invoice_id", | |
string="Delivery" | |
) | |
ubl23_DeliveryTerms = fields.Many2one( | |
"ubl.23.deliveryterms", | |
string="DeliveryTerms") | |
ubl23_PaymentMeans = fields.One2many( | |
"ubl.23.paymentmeans", | |
"ubl23_PaymentMeans_Invoice_id", | |
string="PaymentMeans" | |
) | |
ubl23_PaymentTerms = fields.One2many( | |
"ubl.23.paymentterms", | |
"ubl23_PaymentTerms_Invoice_id", | |
string="PaymentTerms" | |
) | |
ubl23_PrepaidPayment = fields.One2many( | |
"ubl.23.payment", | |
"ubl23_PrepaidPayment_Invoice_id", | |
string="PrepaidPayment" | |
) | |
ubl23_AllowanceCharge = fields.One2many( | |
"ubl.23.allowancecharge", | |
"ubl23_AllowanceCharge_Invoice_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_PaymentAlternativeExchangeRate = fields.Many2one( | |
"ubl.23.exchangerate", | |
string="PaymentAlternativeExchangeRate") | |
ubl23_TaxTotal = fields.One2many( | |
"ubl.23.taxtotal", | |
"ubl23_TaxTotal_Invoice_id", | |
string="TaxTotal" | |
) | |
ubl23_WithholdingTaxTotal = fields.One2many( | |
"ubl.23.taxtotal", | |
"ubl23_WithholdingTaxTotal_Invoice_id", | |
string="WithholdingTaxTotal" | |
) | |
ubl23_LegalMonetaryTotal = fields.Many2one( | |
"ubl.23.monetarytotal", | |
string="LegalMonetaryTotal", | |
xsd_required=True) | |
ubl23_InvoiceLine = fields.One2many( | |
"ubl.23.invoiceline", | |
"ubl23_InvoiceLine_Invoice_id", | |
string="InvoiceLine", xsd_required=True | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment