diff --git a/AUTHORS b/AUTHORS index c8b2a90..c0c1d66 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,2 +1,3 @@ Pedro A. Gracia Fajardo Gamaliel Toro +Raimon Esteve Cusiné diff --git a/README.md b/README.md index cad03d6..c60e4f4 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,16 @@ Connecting to server >>> o = OOOP(dbname='demo') +Pyro Protocol +-------------------- +1. Install PyRO library (openerp-server and web client). +http://www.xs4all.nl/~irmen/pyro3/ +2. Install PyRO Module OpenERP from Nan (thanks this contribution!) +https://launchpad.net/openobject-client-kde +

+  >>> o = OOOP(user='admin',pwd='admin',dbname='zikzakmedia',uri='localhost',port=8071,protocol='pyro')
+
+ Retrieving all from model ------------------------- @@ -185,9 +195,4 @@ but if you want to get deep in the tables just need: o.ResPartner.export(deep=1) - The deep param its relative to the model param, deep means how far you want to get with the relations. - - - - diff --git a/artwork/ooop.png b/artwork/ooop.png deleted file mode 100644 index 778a027..0000000 Binary files a/artwork/ooop.png and /dev/null differ diff --git a/artwork/ooop.svg b/artwork/ooop.svg deleted file mode 100644 index 275f74f..0000000 --- a/artwork/ooop.svg +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - image/svg+xml - - - - - - - O - P - O - O - OpenObject on Python - OpenObject on Python - OpenObject on Python - xml-rpc - - diff --git a/artwork/openerp.png b/artwork/openerp.png deleted file mode 100644 index 78e8d41..0000000 Binary files a/artwork/openerp.png and /dev/null differ diff --git a/artwork/openerp.svg b/artwork/openerp.svg deleted file mode 100644 index f53b16c..0000000 --- a/artwork/openerp.svg +++ /dev/null @@ -1,8306 +0,0 @@ - - - - - -G -AccountMoveLineReconcileSelect - -account.move.line.reconcile.select - -+ account_id : many2one - -ResConfigUsers - -res.config.users - -+ menu_id : many2one -+ groups_id : many2many -+ address_id : many2one -+ company_ids : many2many -+ menu_tips : boolean -+ date : datetime -+ config_logo : binary -+ active : boolean -+ context_tz : selection -+ password : char -+ context_lang : selection -+ name : char -+ company_id : many2one -+ signature : text -+ progress : float -+ login : char -+ view : selection -+ email : char -+ user_email : char -+ action_id : many2one - -ResGroups - -res.groups - -+ comment : text -+ rule_groups : many2many -+ model_access : one2many -+ name : char -+ menu_access : many2many -+ users : many2many - -ResConfigUsers->ResGroups - - -*..* -*..* - -IrActionsActions - -ir.actions.actions - -+ usage : char -+ type : char -+ name : char - -ResConfigUsers->IrActionsActions - - -*..0 -0..* - -ResCompany - -res.company - -+ rml_footer1 : char -+ rml_footer2 : char -+ rml_header : text -+ child_ids : one2many -+ currency_ids : one2many -+ name : char -+ currency_id : many2one -+ parent_id : many2one -+ user_ids : many2many -+ rml_header2 : text -+ rml_header3 : text -+ rml_header1 : char -+ logo : binary -+ partner_id : many2one -+ account_no : char -+ overdue_msg : text -+ property_reserve_and_surplus_account : many2one -+ schedule_range : float -+ security_lead : float - -ResConfigUsers->ResCompany - - -*..* -*..* - -ResPartnerAddress - -res.partner.address - -+ function : char -+ fax : char -+ is_customer_add : boolean -+ street2 : char -+ phone : char -+ street : char -+ active : boolean -+ partner_id : many2one -+ city : char -+ name : char -+ zip : char -+ title : many2one -+ mobile : char -+ is_supplier_add : boolean -+ country_id : many2one -+ company_id : many2one -+ birthdate : char -+ state_id : many2one -+ type : selection -+ email : char - -ResConfigUsers->ResPartnerAddress - - -*..0 -0..* - -ResUsers - -res.users - -+ menu_id : many2one -+ groups_id : many2many -+ address_id : many2one -+ company_ids : many2many -+ menu_tips : boolean -+ active : boolean -+ date : datetime -+ context_tz : selection -+ password : char -+ context_lang : selection -+ name : char -+ company_id : many2one -+ signature : text -+ login : char -+ action_id : many2one -+ email : char -+ user_email : char -+ view : selection -+ availability : selection -+ context_section_id : many2one - -ResGroups->ResUsers - - -*..* -*..* - -IrRule - -ir.rule - -+ model_id : many2one -+ domain : text -+ domain_force : text -+ name : char -+ global : boolean -+ groups : many2many -+ perm_unlink : boolean -+ perm_write : boolean -+ perm_read : boolean -+ perm_create : boolean - -ResGroups->IrRule - - -*..* -*..* - -IrModelAccess - -ir.model.access - -+ model_id : many2one -+ perm_read : boolean -+ name : char -+ perm_unlink : boolean -+ perm_write : boolean -+ perm_create : boolean -+ group_id : many2one - -ResGroups->IrModelAccess - - -0..* -*..0 - -IrUiMenu - -ir.ui.menu - -+ groups_id : many2many -+ name : char -+ sequence : integer -+ parent_id : many2one -+ complete_name : char -+ action : reference -+ child_id : one2many -+ icon : selection -+ icon_pict : char - -ResGroups->IrUiMenu - - -*..* -*..* - -ResCompany->ResCompany - - -0..* -*..0 - -ResCompany->ResUsers - - -*..* -*..* - -ResPartner - -res.partner - -+ comment : text -+ ean13 : char -+ bank_ids : one2many -+ child_ids : one2many -+ phone : char -+ address : one2many -+ date : date -+ active : boolean -+ lang : selection -+ customer : boolean -+ city : char -+ credit_limit : float -+ user_id : many2one -+ name : char -+ title : many2one -+ mobile : char -+ country : many2one -+ company_id : many2one -+ email : char -+ website : char -+ parent_id : many2one -+ employee : boolean -+ supplier : boolean -+ category_id : many2many -+ ref : char -+ events : one2many -+ vat : char -+ emails : one2many -+ property_product_pricelist : many2one -+ property_account_position : many2one -+ ref_companies : one2many -+ property_account_payable : many2one -+ last_reconciliation_date : datetime -+ debit : float -+ property_account_receivable : many2one -+ credit : float -+ debit_limit : float -+ property_payment_term : many2one -+ invoice_ids : one2many -+ contract_ids : one2many -+ section_id : many2one -+ meeting_ids : one2many -+ phonecall_ids : one2many -+ opportunity_ids : one2many -+ property_stock_supplier : many2one -+ property_stock_customer : many2one - -ResCompany->ResPartner - - -*..0 -0..* - -ResCurrency - -res.currency - -+ rate_ids : one2many -+ code : char -+ name : char -+ rounding : float -+ symbol : char -+ company_id : many2one -+ date : date -+ rate : float -+ base : boolean -+ active : boolean -+ accuracy : integer - -ResCompany->ResCurrency - - -0..* -*..0 - -AccountAccount - -account.account - -+ code : char -+ reconcile : boolean -+ currency_id : many2one -+ child_parent_ids : one2many -+ credit : float -+ user_type : many2one -+ company_currency_id : many2one -+ active : boolean -+ child_id : many2many -+ child_consol_ids : many2many -+ parent_right : integer -+ name : char -+ level : integer -+ company_id : many2one -+ shortcut : char -+ note : text -+ parent_id : many2one -+ parent_left : integer -+ debit : float -+ currency_mode : selection -+ balance : float -+ type : selection -+ tax_ids : many2many - -ResCompany->AccountAccount - - -*..0 -0..* - -ResPartnerAddress->ResCompany - - -*..0 -0..* - -ResPartnerAddress->ResPartner - - -*..0 -0..* - -ResCountry - -res.country - -+ code : char -+ name : char - -ResPartnerAddress->ResCountry - - -*..0 -0..* - -ResCountryState - -res.country.state - -+ code : char -+ country_id : many2one -+ name : char - -ResPartnerAddress->ResCountryState - - -*..0 -0..* - -ResPartnerTitle - -res.partner.title - -+ domain : selection -+ name : char -+ shortcut : char - -ResPartnerAddress->ResPartnerTitle - - -*..0 -0..* - -IrActionsConfigurationWizard - -ir.actions.configuration.wizard - -+ note : text -+ progress : float -+ config_logo : binary - -CalendarAttendee - -calendar.attendee - -+ cn : char -+ partner_address_id : many2one -+ child_ids : many2many -+ parent_ids : many2many -+ cutype : selection -+ partner_id : many2one -+ availability : selection -+ user_id : many2one -+ language : selection -+ event_end_date : datetime -+ delegated_from : char -+ sent_by : char -+ sent_by_uid : many2one -+ member : char -+ delegated_to : char -+ state : selection -+ role : selection -+ event_date : datetime -+ ref : reference -+ email : char -+ dir : char -+ rsvp : boolean -+ categ_id : many2one - -CalendarAttendee->ResPartnerAddress - - -*..0 -0..* - -CalendarAttendee->CalendarAttendee - - -*..* -*..* - -CalendarAttendee->ResUsers - - -*..0 -0..* - -CalendarAttendee->ResPartner - - -*..0 -0..* - -CrmCaseCateg - -crm.case.categ - -+ name : char -+ object_id : many2one -+ section_id : many2one - -CalendarAttendee->CrmCaseCateg - - -*..0 -0..* - -ResUsers->ResGroups - - -*..* -*..* - -ResUsers->IrActionsActions - - -*..0 -0..* - -ResUsers->ResCompany - - -*..* -*..* - -ResUsers->ResPartnerAddress - - -*..0 -0..* - -CrmCaseSection - -crm.case.section - -+ member_ids : many2many -+ working_hours : float -+ name : char -+ user_id : many2one -+ child_ids : one2many -+ change_responsible : boolean -+ note : text -+ parent_id : many2one -+ code : char -+ complete_name : char -+ reply_to : char -+ active : boolean -+ stage_ids : many2many -+ allow_unlink : boolean -+ resource_calendar_id : many2one - -ResUsers->CrmCaseSection - - -*..0 -0..* - -ResPartner->ResCompany - - -*..0 -0..* - -ResPartner->ResPartnerAddress - - -0..* -*..0 - -ResPartner->ResUsers - - -*..0 -0..* - -ResPartner->ResPartner - - -0..* -*..0 - -ResPartner->CrmCaseSection - - -*..0 -0..* - -AccountAnalyticAccount - -account.analytic.account - -+ code : char -+ description : text -+ child_ids : one2many -+ quantity_max : float -+ contact_id : many2one -+ currency_id : many2one -+ date : date -+ partner_id : many2one -+ user_id : many2one -+ name : char -+ parent_id : many2one -+ date_start : date -+ company_id : many2one -+ credit : float -+ state : selection -+ complete_name : char -+ debit : float -+ line_ids : one2many -+ balance : float -+ type : selection -+ quantity : float - -ResPartner->AccountAnalyticAccount - - -0..* -*..0 - -ResPartner->ResCountry - - -*..0 -0..* - -ResPartnerCategory - -res.partner.category - -+ active : boolean -+ parent_id : many2one -+ complete_name : char -+ child_ids : one2many -+ name : char -+ partner_ids : many2many - -ResPartner->ResPartnerCategory - - -*..* -*..* - -ResPartner->AccountAccount - - -*..0 -0..* - -AccountPaymentTerm - -account.payment.term - -+ active : boolean -+ note : text -+ name : char -+ line_ids : one2many - -ResPartner->AccountPaymentTerm - - -*..0 -0..* - -ProductPricelist - -product.pricelist - -+ currency_id : many2one -+ name : char -+ active : boolean -+ type : selection -+ company_id : many2one -+ version_id : one2many - -ResPartner->ProductPricelist - - -*..0 -0..* - -StockLocation - -stock.location - -+ comment : text -+ address_id : many2one -+ stock_virtual_value : float -+ child_ids : one2many -+ chained_delay : integer -+ chained_company_id : many2one -+ stock_virtual : float -+ posz : integer -+ posx : integer -+ posy : integer -+ active : boolean -+ location_id : many2one -+ icon : selection -+ scrap_location : boolean -+ parent_right : integer -+ name : char -+ chained_location_id : many2one -+ chained_journal_id : many2one -+ chained_picking_type : selection -+ company_id : many2one -+ chained_auto_packing : selection -+ parent_left : integer -+ complete_name : char -+ usage : selection -+ stock_real_value : float -+ chained_location_type : selection -+ stock_real : float - -ResPartner->StockLocation - - -*..0 -0..* - -AccountFiscalPosition - -account.fiscal.position - -+ note : text -+ company_id : many2one -+ account_ids : one2many -+ name : char -+ tax_ids : one2many - -ResPartner->AccountFiscalPosition - - -*..0 -0..* - -CrmLead - -crm.lead - -+ date_closed : datetime -+ create_date : datetime -+ type_id : many2one -+ date_action_last : datetime -+ day_close : float -+ street : char -+ day_open : float -+ contact_name : char -+ partner_id : many2one -+ message_ids : one2many -+ date_action_next : datetime -+ city : char -+ user_id : many2one -+ zip : char -+ title : many2one -+ partner_name : char -+ country_id : many2one -+ company_id : many2one -+ id : integer -+ priority : selection -+ state : selection -+ email_cc : text -+ type : selection -+ email : char -+ function : char -+ fax : char -+ description : text -+ street2 : char -+ optin : boolean -+ section_id : many2one -+ phone : char -+ write_date : datetime -+ active : boolean -+ categ_id : many2one -+ name : char -+ stage_id : many2one -+ date_open : datetime -+ optout : boolean -+ mobile : char -+ is_customer_add : boolean -+ birthdate : char -+ channel_id : many2one -+ state_id : many2one -+ is_supplier_add : boolean -+ email_from : char -+ referred : char -+ probability : float -+ partner_address_id : many2one -+ planned_revenue : float -+ ref2 : reference -+ title_action : char -+ date_action : date -+ date_deadline : date -+ ref : reference - -ResPartner->CrmLead - - -0..* -*..0 - -MailgateMessage - -mailgate.message - -+ description : text -+ email_bcc : char -+ ref_id : char -+ email_to : char -+ email_cc : char -+ date : datetime -+ message : text -+ partner_id : many2one -+ display_text : text -+ user_id : many2one -+ name : text -+ attachment_ids : many2many -+ email_from : char -+ references : text -+ model : char -+ res_id : integer -+ message_id : char -+ history : boolean - -ResPartner->MailgateMessage - - -0..* -*..0 - -ResPartnerBank - -res.partner.bank - -+ city : char -+ owner_name : char -+ name : char -+ zip : char -+ sequence : integer -+ country_id : many2one -+ state : selection -+ street : char -+ state_id : many2one -+ partner_id : many2one -+ bank : many2one -+ acc_number : char - -ResPartner->ResPartnerBank - - -0..* -*..0 - -ResPartnerEvent - -res.partner.event - -+ date : datetime -+ partner_id : many2one -+ user_id : many2one -+ name : char -+ description : text - -ResPartner->ResPartnerEvent - - -0..* -*..0 - -AccountInvoiceLine - -account.invoice.line - -+ origin : char -+ uos_id : many2one -+ account_id : many2one -+ name : char -+ invoice_id : many2one -+ price_unit : float -+ price_subtotal : float -+ company_id : many2one -+ invoice_line_tax_id : many2many -+ note : text -+ discount : float -+ account_analytic_id : many2one -+ quantity : float -+ partner_id : many2one -+ product_id : many2one - -ResPartner->AccountInvoiceLine - - -0..* -*..0 - -CrmMeeting - -crm.meeting - -+ date_closed : datetime -+ allday : boolean -+ create_date : datetime -+ sequence : integer -+ message_ids : one2many -+ partner_address_id : many2one -+ date_action_last : datetime -+ we : boolean -+ base_calendar_alarm_id : many2one -+ rrule : char -+ duration : float -+ organizer : char -+ partner_id : many2one -+ id : integer -+ date_action_next : datetime -+ month_list : selection -+ user_id : many2one -+ vtimezone : selection -+ tu : boolean -+ week_list : selection -+ day : integer -+ recurrent_uid : integer -+ attendee_ids : many2many -+ state : selection -+ base_calendar_url : char -+ show_as : selection -+ location : char -+ th : boolean -+ exrule : char -+ active : boolean -+ exdate : text -+ fr : boolean -+ description : text -+ end_date : date -+ section_id : many2one -+ write_date : datetime -+ date : datetime -+ freq : selection -+ categ_id : many2one -+ class : selection -+ opportunity_id : many2one -+ count : integer -+ byday : selection -+ name : char -+ date_deadline : datetime -+ mo : boolean -+ interval : integer -+ su : boolean -+ rrule_type : selection -+ alarm_id : many2one -+ recurrent_id : datetime -+ phonecall_id : many2one -+ organizer_id : many2one -+ sa : boolean -+ email_from : char -+ select1 : selection - -ResPartner->CrmMeeting - - -0..* -*..0 - -CrmPhonecall - -crm.phonecall - -+ date_closed : datetime -+ active : boolean -+ create_date : datetime -+ description : text -+ canal_id : many2one -+ date_action_last : datetime -+ partner_address_id : many2one -+ partner_contact : char -+ section_id : many2one -+ date : datetime -+ state : selection -+ partner_mobile : char -+ duration : float -+ partner_id : many2one -+ message_ids : one2many -+ date_action_next : datetime -+ user_id : many2one -+ name : char -+ date_open : datetime -+ categ_id : many2one -+ company_id : many2one -+ id : integer -+ priority : selection -+ partner_phone : char -+ opportunity_id : many2one -+ email_from : char - -ResPartner->CrmPhonecall - - -0..* -*..0 - -ResPartner->ResPartnerTitle - - -*..0 -0..* - -CrmCaseCateg->CrmCaseSection - - -*..0 -0..* - -IrModel - -ir.model - -+ info : text -+ state : selection -+ access_ids : one2many -+ osv_memory : boolean -+ name : char -+ model : char -+ field_id : one2many - -CrmCaseCateg->IrModel - - -*..0 -0..* - -IrActionsAct_window_close - -ir.actions.act_window_close - -+ usage : char -+ type : char -+ name : char - -CrmPhonecallReport - -crm.phonecall.report - -+ date_closed : date -+ create_date : datetime -+ nbr : integer -+ delay_close : float -+ section_id : many2one -+ month : selection -+ delay_open : float -+ opening_date : date -+ duration : float -+ creation_date : date -+ partner_id : many2one -+ day : char -+ user_id : many2one -+ name : char -+ categ_id : many2one -+ company_id : many2one -+ priority : selection -+ state : selection - -CrmPhonecallReport->ResCompany - - -*..0 -0..* - -CrmPhonecallReport->ResUsers - - -*..0 -0..* - -CrmPhonecallReport->ResPartner - - -*..0 -0..* - -CrmPhonecallReport->CrmCaseCateg - - -*..0 -0..* - -CrmPhonecallReport->CrmCaseSection - - -*..0 -0..* - -CrmCaseSection->ResUsers - - -*..0 -0..* - -CrmCaseSection->CrmCaseSection - - -0..* -*..0 - -ResourceCalendar - -resource.calendar - -+ manager : many2one -+ attendance_ids : one2many -+ name : char -+ company_id : many2one - -CrmCaseSection->ResourceCalendar - - -*..0 -0..* - -CrmCaseStage - -crm.case.stage - -+ requirements : text -+ name : char -+ probability : float -+ sequence : integer -+ on_change : boolean -+ object_id : many2one -+ section_ids : many2many - -CrmCaseSection->CrmCaseStage - - -*..* -*..* - -AccountAnalyticAccount->ResCompany - - -*..0 -0..* - -AccountAnalyticAccount->ResPartnerAddress - - -*..0 -0..* - -AccountAnalyticAccount->ResUsers - - -*..0 -0..* - -AccountAnalyticAccount->ResPartner - - -*..0 -0..* - -AccountAnalyticAccount->AccountAnalyticAccount - - -0..* -*..0 - -AccountAnalyticLine - -account.analytic.line - -+ amount : float -+ user_id : many2one -+ name : char -+ unit_amount : float -+ date : date -+ company_id : many2one -+ account_id : many2one -+ code : char -+ general_account_id : many2one -+ currency_id : many2one -+ move_id : many2one -+ product_id : many2one -+ product_uom_id : many2one -+ journal_id : many2one -+ amount_currency : float -+ ref : char - -AccountAnalyticAccount->AccountAnalyticLine - - -0..* -*..0 - -AccountAnalyticAccount->ResCurrency - - -*..0 -0..* - -AccountAnalyticLine->ResCompany - - -*..0 -0..* - -AccountAnalyticLine->ResUsers - - -*..0 -0..* - -AccountAnalyticLine->AccountAnalyticAccount - - -*..0 -0..* - -AccountAnalyticLine->ResCurrency - - -*..0 -0..* - -AccountAnalyticLine->AccountAccount - - -*..0 -0..* - -AccountMoveLine - -account.move.line - -+ analytic_lines : one2many -+ statement_id : many2one -+ journal_id : many2one -+ currency_id : many2one -+ date_maturity : date -+ invoice : many2one -+ narration : text -+ partner_id : many2one -+ reconcile_partial_id : many2one -+ blocked : boolean -+ analytic_account_id : many2one -+ centralisation : selection -+ company_id : many2one -+ tax_code_id : many2one -+ state : selection -+ debit : float -+ ref : char -+ account_id : many2one -+ period_id : many2one -+ date_created : date -+ date : date -+ move_id : many2one -+ name : char -+ reconcile_id : many2one -+ tax_amount : float -+ product_id : many2one -+ account_tax_id : many2one -+ product_uom_id : many2one -+ credit : float -+ amount_currency : float -+ balance : float -+ quantity : float -+ amount_unreconciled : float - -AccountAnalyticLine->AccountMoveLine - - -*..0 -0..* - -ProductProduct - -product.product - -+ ean13 : char -+ code : char -+ incoming_qty : float -+ price : float -+ price_extra : float -+ packaging : one2many -+ outgoing_qty : float -+ default_code : char -+ active : boolean -+ qty_available : float -+ variants : char -+ partner_ref : char -+ virtual_available : float -+ product_tmpl_id : many2one -+ lst_price : float -+ pricelist_id : many2one -+ price_margin : float -+ track_production : boolean -+ valuation : selection -+ location_id : many2one -+ track_outgoing : boolean -+ track_incoming : boolean -+ pricelist_purchase : text -+ pricelist_sale : text - -AccountAnalyticLine->ProductProduct - - -*..0 -0..* - -ProductUom - -product.uom - -+ uom_type : selection -+ category_id : many2one -+ name : char -+ factor_inv : float -+ rounding : float -+ factor : float -+ active : boolean - -AccountAnalyticLine->ProductUom - - -*..0 -0..* - -AccountAnalyticJournal - -account.analytic.journal - -+ code : char -+ name : char -+ active : boolean -+ line_ids : one2many -+ type : selection -+ company_id : many2one - -AccountAnalyticLine->AccountAnalyticJournal - - -*..0 -0..* - -ResCurrency->ResCompany - - -*..0 -0..* - -AccountAgedTrialBalance - -account.aged.trial.balance - -+ chart_account_id : many2one -+ period_length : integer -+ period_to : many2one -+ date_from : date -+ direction_selection : selection -+ result_selection : selection -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ date_to : date -+ target_move : selection - -AccountPeriod - -account.period - -+ date_stop : date -+ code : char -+ name : char -+ date_start : date -+ fiscalyear_id : many2one -+ company_id : many2one -+ state : selection -+ special : boolean - -AccountAgedTrialBalance->AccountPeriod - - -*..0 -0..* - -AccountJournal - -account.journal - -+ default_debit_account_id : many2one -+ groups_id : many2many -+ code : char -+ view_id : many2one -+ type_control_ids : many2many -+ currency : many2one -+ sequence_id : many2one -+ account_control_ids : many2many -+ allow_date : boolean -+ update_posted : boolean -+ user_id : many2one -+ name : char -+ centralisation : boolean -+ group_invoice_lines : boolean -+ company_id : many2one -+ refund_journal : boolean -+ entry_posted : boolean -+ type : selection -+ default_credit_account_id : many2one -+ analytic_journal_id : many2one - -AccountAgedTrialBalance->AccountJournal - - -*..* -*..* - -AccountFiscalyear - -account.fiscalyear - -+ date_stop : date -+ code : char -+ name : char -+ state : selection -+ date_start : date -+ company_id : many2one -+ period_ids : one2many -+ end_journal_period_id : many2one - -AccountAgedTrialBalance->AccountFiscalyear - - -*..0 -0..* - -AccountPeriod->ResCompany - - -*..0 -0..* - -AccountPeriod->AccountFiscalyear - - -*..0 -0..* - -AccountJournal->ResGroups - - -*..* -*..* - -AccountJournal->ResCompany - - -*..0 -0..* - -AccountJournal->ResUsers - - -*..0 -0..* - -AccountJournal->ResCurrency - - -*..0 -0..* - -AccountJournal->AccountAccount - - -*..* -*..* - -AccountJournalView - -account.journal.view - -+ columns_id : one2many -+ name : char - -AccountJournal->AccountJournalView - - -*..0 -0..* - -IrSequence - -ir.sequence - -+ code : selection -+ name : char -+ number_next : integer -+ company_id : many2one -+ padding : integer -+ number_increment : integer -+ prefix : char -+ active : boolean -+ suffix : char -+ fiscal_ids : one2many - -AccountJournal->IrSequence - - -*..0 -0..* - -AccountAccountType - -account.account.type - -+ note : text -+ close_method : selection -+ code : char -+ name : char -+ report_type : selection -+ sign : selection - -AccountJournal->AccountAccountType - - -*..* -*..* - -AccountJournal->AccountAnalyticJournal - - -*..0 -0..* - -AccountFiscalyear->ResCompany - - -*..0 -0..* - -AccountFiscalyear->AccountPeriod - - -0..* -*..0 - -AccountJournalPeriod - -account.journal.period - -+ name : char -+ state : selection -+ company_id : many2one -+ journal_id : many2one -+ fiscalyear_id : many2one -+ period_id : many2one -+ active : boolean -+ icon : char - -AccountFiscalyear->AccountJournalPeriod - - -*..0 -0..* - -CrmOpportunity2phonecall - -crm.opportunity2phonecall - -+ date : datetime -+ categ_id : many2one -+ user_id : many2one -+ name : char -+ section_id : many2one - -CrmOpportunity2phonecall->ResUsers - - -*..0 -0..* - -CrmOpportunity2phonecall->CrmCaseCateg - - -*..0 -0..* - -CrmOpportunity2phonecall->CrmCaseSection - - -*..0 -0..* - -CrmPhonecall2partner - -crm.phonecall2partner - -+ action : selection -+ partner_id : many2one - -CrmPhonecall2partner->ResPartner - - -*..0 -0..* - -BaseLanguageExport - -base.language.export - -+ lang : selection -+ name : char -+ format : selection -+ advice : text -+ modules : many2many -+ state : selection -+ config_logo : binary -+ data : binary - -IrModuleModule - -ir.module.module - -+ website : char -+ menus_by_module : text -+ certificate : char -+ maintainer : char -+ description : text -+ contributors : text -+ demo : boolean -+ views_by_module : text -+ web : boolean -+ category_id : many2one -+ name : char -+ license : selection -+ author : char -+ url : char -+ published_version : char -+ installed_version : char -+ latest_version : char -+ dependencies_id : one2many -+ state : selection -+ shortdesc : char -+ reports_by_module : text - -BaseLanguageExport->IrModuleModule - - -*..* -*..* - -IrModuleCategory - -ir.module.category - -+ parent_id : many2one -+ module_nr : integer -+ child_ids : one2many -+ name : char - -IrModuleModule->IrModuleCategory - - -*..0 -0..* - -IrModuleModuleDependency - -ir.module.module.dependency - -+ module_id : many2one -+ state : selection -+ name : char - -IrModuleModule->IrModuleModuleDependency - - -0..* -*..0 - -ProductPriceType - -product.price.type - -+ active : boolean -+ field : selection -+ currency_id : many2one -+ name : char - -ProductPriceType->ResCurrency - - -*..0 -0..* - -BaseLanguageImport - -base.language.import - -+ code : char -+ data : binary -+ name : char -+ config_logo : binary - -AccountAnalyticChart - -account.analytic.chart - -+ from_date : date -+ to_date : date - -AccountMoveLineUnreconcileSelect - -account.move.line.unreconcile.select - -+ account_id : many2one - -ResPartnerCategory->ResPartner - - -*..* -*..* - -ResPartnerCategory->ResPartnerCategory - - -*..0 -0..* - -ProductUomCateg - -product.uom.categ - -+ name : char - -CrmLead2opportunity - -crm.lead2opportunity - -+ partner_id : many2one -+ planned_revenue : float -+ name : char -+ probability : float - -AccountPartnerReconcileProcess - -account.partner.reconcile.process - -+ progress : float -+ today_reconciled : float -+ next_partner_id : many2one -+ to_reconcile : float - -AccountPartnerReconcileProcess->ResPartner - - -*..0 -0..* - -BoardBoard - -board.board - -+ line_ids : one2many -+ view_id : many2one -+ name : char - -IrUiView - -ir.ui.view - -+ inherit_id : many2one -+ xml_id : char -+ name : char -+ type : selection -+ priority : integer -+ model : char -+ arch : text -+ field_parent : char - -BoardBoard->IrUiView - - -*..0 -0..* - -AccountBankStatementLine - -account.bank.statement.line - -+ analytic_account_id : many2one -+ move_ids : many2many -+ ref : char -+ statement_id : many2one -+ sequence : integer -+ type : selection -+ company_id : many2one -+ name : char -+ note : text -+ amount : float -+ date : date -+ partner_id : many2one -+ account_id : many2one -+ voucher_id : many2one -+ amount_reconciled : float - -AccountBankStatementLine->ResCompany - - -*..0 -0..* - -AccountBankStatementLine->ResPartner - - -*..0 -0..* - -AccountMove - -account.move - -+ name : char -+ state : selection -+ ref : char -+ company_id : many2one -+ journal_id : many2one -+ line_id : one2many -+ amount : float -+ period_id : many2one -+ narration : text -+ date : date -+ partner_id : many2one -+ to_check : boolean - -AccountBankStatementLine->AccountMove - - -*..* -*..* - -AccountBankStatementLine->AccountAccount - - -*..0 -0..* - -AccountBankStatement - -account.bank.statement - -+ name : char -+ state : selection -+ balance_end : float -+ balance_start : float -+ journal_id : many2one -+ company_id : many2one -+ currency : many2one -+ move_line_ids : one2many -+ period_id : many2one -+ date : date -+ line_ids : one2many -+ balance_end_real : float -+ total_entry_encoding : float -+ balance_end_cash : float -+ user_id : many2one -+ closing_date : datetime -+ starting_details_ids : one2many -+ ending_details_ids : one2many - -AccountBankStatementLine->AccountBankStatement - - -*..0 -0..* - -AccountVoucher - -account.voucher - -+ line_cr_ids : one2many -+ date_due : date -+ account_id : many2one -+ reference : char -+ line_dr_ids : one2many -+ number : char -+ journal_id : many2one -+ currency_id : many2one -+ period_id : many2one -+ narration : text -+ date : date -+ partner_id : many2one -+ move_id : many2one -+ tax_id : many2one -+ audit : boolean -+ tax_amount : float -+ name : char -+ pay_now : selection -+ amount : float -+ company_id : many2one -+ move_ids : one2many -+ state : selection -+ pre_line : boolean -+ line_ids : one2many -+ type : selection - -AccountBankStatementLine->AccountVoucher - - -*..0 -0..* - -AccountMove->ResCompany - - -*..0 -0..* - -AccountMove->ResPartner - - -*..0 -0..* - -AccountMove->AccountPeriod - - -*..0 -0..* - -AccountMove->AccountJournal - - -*..0 -0..* - -AccountMove->AccountMoveLine - - -0..* -*..0 - -AccountAccount->ResCompany - - -*..0 -0..* - -AccountAccount->ResCurrency - - -*..0 -0..* - -AccountAccount->AccountAccount - - -0..* -*..0 - -AccountTax - -account.tax - -+ ref_base_code_id : many2one -+ domain : char -+ description : char -+ ref_tax_code_id : many2one -+ sequence : integer -+ account_paid_id : many2one -+ child_ids : one2many -+ ref_base_sign : float -+ type_tax_use : selection -+ base_code_id : many2one -+ base_sign : float -+ child_depend : boolean -+ include_base_amount : boolean -+ active : boolean -+ ref_tax_sign : float -+ applicable_type : selection -+ account_collected_id : many2one -+ company_id : many2one -+ name : char -+ tax_code_id : many2one -+ parent_id : many2one -+ amount : float -+ python_compute : text -+ tax_sign : float -+ python_compute_inv : text -+ python_applicable : text -+ type : selection -+ price_include : boolean - -AccountAccount->AccountTax - - -*..* -*..* - -AccountAccount->AccountAccountType - - -*..0 -0..* - -AccountBankStatement->ResCompany - - -*..0 -0..* - -AccountBankStatement->ResUsers - - -*..0 -0..* - -AccountBankStatement->ResCurrency - - -*..0 -0..* - -AccountBankStatement->AccountPeriod - - -*..0 -0..* - -AccountBankStatement->AccountJournal - - -*..0 -0..* - -AccountBankStatement->AccountBankStatementLine - - -0..* -*..0 - -AccountBankStatement->AccountMoveLine - - -0..* -*..0 - -AccountCashboxLine - -account.cashbox.line - -+ ending_id : many2one -+ pieces : float -+ subtotal : float -+ number : integer -+ starting_id : many2one - -AccountBankStatement->AccountCashboxLine - - -0..* -*..0 - -AccountVoucher->ResCompany - - -*..0 -0..* - -AccountVoucher->ResPartner - - -*..0 -0..* - -AccountVoucher->ResCurrency - - -*..0 -0..* - -AccountVoucher->AccountPeriod - - -*..0 -0..* - -AccountVoucher->AccountJournal - - -*..0 -0..* - -AccountVoucher->AccountMove - - -*..0 -0..* - -AccountVoucher->AccountAccount - - -*..0 -0..* - -AccountVoucher->AccountMoveLine - - -0..* -*..0 - -AccountVoucher->AccountTax - - -*..0 -0..* - -AccountVoucherLine - -account.voucher.line - -+ date_due : date -+ account_id : many2one -+ date_original : date -+ move_line_id : many2one -+ type : selection -+ untax_amount : float -+ company_id : float -+ amount_unreconciled : float -+ account_analytic_id : many2one -+ amount : float -+ voucher_id : many2one -+ partner_id : many2one -+ amount_original : float -+ name : char - -AccountVoucher->AccountVoucherLine - - -0..* -*..0 - -CrmSegmentationLine - -crm.segmentation.line - -+ expr_name : selection -+ name : char -+ expr_value : float -+ operator : selection -+ segmentation_id : many2one -+ expr_operator : selection - -CrmSegmentation - -crm.segmentation - -+ description : text -+ som_interval_max : integer -+ categ_id : many2one -+ exclusif : boolean -+ segmentation_line : one2many -+ som_interval : integer -+ state : selection -+ sales_purchase_active : boolean -+ som_interval_default : float -+ partner_id : integer -+ som_interval_decrease : float -+ name : char - -CrmSegmentationLine->CrmSegmentation - - -*..0 -0..* - -CrmSegmentation->ResPartnerCategory - - -*..0 -0..* - -CrmSegmentation->CrmSegmentationLine - - -0..* -*..0 - -AccountMoveLine->ResCompany - - -*..0 -0..* - -AccountMoveLine->ResPartner - - -*..0 -0..* - -AccountMoveLine->AccountAnalyticAccount - - -*..0 -0..* - -AccountMoveLine->ResCurrency - - -*..0 -0..* - -AccountMoveLine->AccountPeriod - - -*..0 -0..* - -AccountMoveLine->AccountJournal - - -*..0 -0..* - -AccountMoveLine->AccountMove - - - -AccountMoveLine->AccountAccount - - -*..0 -0..* - -AccountMoveLine->AccountBankStatement - - -*..0 -0..* - -AccountMoveLine->ProductProduct - - -*..0 -0..* - -AccountMoveLine->ProductUom - - -*..0 -0..* - -AccountInvoice - -account.invoice - -+ origin : char -+ comment : text -+ date_due : date -+ check_total : float -+ reference : char -+ payment_term : many2one -+ number : char -+ journal_id : many2one -+ currency_id : many2one -+ address_invoice_id : many2one -+ partner_id : many2one -+ move_lines : many2many -+ fiscal_position : many2one -+ user_id : many2one -+ partner_bank_id : many2one -+ address_contact_id : many2one -+ reference_type : selection -+ company_id : many2one -+ tax_line : one2many -+ amount_tax : float -+ state : selection -+ type : selection -+ invoice_line : one2many -+ internal_number : char -+ account_id : many2one -+ payment_ids : many2many -+ reconciled : boolean -+ residual : float -+ move_name : char -+ date_invoice : date -+ period_id : many2one -+ amount_untaxed : float -+ move_id : many2one -+ amount_total : float -+ name : char - -AccountMoveLine->AccountInvoice - - -*..0 -0..* - -AccountTaxCode - -account.tax.code - -+ info : text -+ code : char -+ name : char -+ sum : float -+ child_ids : one2many -+ company_id : many2one -+ sign : float -+ notprintable : boolean -+ parent_id : many2one -+ line_ids : one2many -+ sum_period : float - -AccountMoveLine->AccountTaxCode - - -*..0 -0..* - -AccountMoveReconcile - -account.move.reconcile - -+ line_id : one2many -+ line_partial_ids : one2many -+ create_date : date -+ name : char -+ type : char - -AccountMoveLine->AccountMoveReconcile - - -*..0 -0..* - -AccountMoveLine->AccountTax - - -*..0 -0..* - -AccountFiscalPositionAccountTemplate - -account.fiscal.position.account.template - -+ position_id : many2one -+ account_dest_id : many2one -+ account_src_id : many2one - -AccountAccountTemplate - -account.account.template - -+ note : text -+ code : char -+ reconcile : boolean -+ child_parent_ids : one2many -+ user_type : many2one -+ shortcut : char -+ currency_id : many2one -+ parent_id : many2one -+ nocreate : boolean -+ tax_ids : many2many -+ type : selection -+ name : char - -AccountFiscalPositionAccountTemplate->AccountAccountTemplate - - -*..0 -0..* - -AccountAccountTemplate->ResCurrency - - -*..0 -0..* - -AccountAccountTemplate->AccountAccountTemplate - - -0..* -*..0 - -AccountAccountTemplate->AccountAccountType - - -*..0 -0..* - -AccountTaxTemplate - -account.tax.template - -+ ref_base_code_id : many2one -+ domain : char -+ description : char -+ ref_tax_code_id : many2one -+ sequence : integer -+ ref_base_sign : float -+ type_tax_use : selection -+ base_code_id : many2one -+ base_sign : float -+ child_depend : boolean -+ include_base_amount : boolean -+ applicable_type : selection -+ ref_tax_sign : float -+ account_paid_id : many2one -+ account_collected_id : many2one -+ chart_template_id : many2one -+ name : char -+ tax_code_id : many2one -+ parent_id : many2one -+ amount : float -+ python_compute : text -+ tax_sign : float -+ python_compute_inv : text -+ python_applicable : text -+ type : selection - -AccountAccountTemplate->AccountTaxTemplate - - -*..* -*..* - -AccountJournalColumn - -account.journal.column - -+ field : selection -+ readonly : boolean -+ name : char -+ sequence : integer -+ view_id : many2one -+ required : boolean - -AccountJournalColumn->AccountJournalView - - -*..0 -0..* - -WizardIrModelMenuCreateLine - -wizard.ir.model.menu.create.line - -+ view_id : many2one -+ view_type : selection -+ wizard_id : many2one -+ sequence : integer - -WizardIrModelMenuCreate - -wizard.ir.model.menu.create - -+ menu_id : many2one -+ name : char - -WizardIrModelMenuCreateLine->WizardIrModelMenuCreate - - -*..0 -0..* - -AccountPaymentTermLine - -account.payment.term.line - -+ payment_id : many2one -+ name : char -+ value_amount : float -+ sequence : integer -+ days2 : integer -+ days : integer -+ value : selection - -AccountPaymentTerm->AccountPaymentTermLine - - -0..* -*..0 - -ProductPricelistItem - -product.pricelist.item - -+ price_round : float -+ price_discount : float -+ base_pricelist_id : many2one -+ sequence : integer -+ price_max_margin : float -+ company_id : many2one -+ name : char -+ product_tmpl_id : many2one -+ product_id : many2one -+ base : selection -+ price_version_id : many2one -+ min_quantity : integer -+ price_min_margin : float -+ categ_id : many2one -+ price_surcharge : float - -ProductPricelistItem->ResCompany - - -*..0 -0..* - -ProductPricelistItem->ProductProduct - - -*..0 -0..* - -ProductPricelistItem->ProductPricelist - - -*..0 -0..* - -ProductPricelistVersion - -product.pricelist.version - -+ items_id : one2many -+ name : char -+ active : boolean -+ pricelist_id : many2one -+ date_end : date -+ date_start : date -+ company_id : many2one - -ProductPricelistItem->ProductPricelistVersion - - -*..0 -0..* - -ProductTemplate - -product.template - -+ warranty : float -+ supply_method : selection -+ uos_id : many2one -+ list_price : float -+ weight : float -+ standard_price : float -+ mes_type : selection -+ uom_id : many2one -+ description_purchase : text -+ seller_qty : float -+ uos_coeff : float -+ seller_delay : integer -+ purchase_ok : boolean -+ product_manager : many2one -+ company_id : many2one -+ name : char -+ state : selection -+ loc_rack : char -+ uom_po_id : many2one -+ type : selection -+ description : text -+ weight_net : float -+ volume : float -+ loc_row : char -+ description_sale : text -+ procure_method : selection -+ cost_method : selection -+ rental : boolean -+ sale_ok : boolean -+ seller_id : many2one -+ sale_delay : float -+ loc_case : char -+ produce_delay : float -+ categ_id : many2one -+ seller_ids : one2many -+ property_account_income : many2one -+ supplier_taxes_id : many2many -+ property_account_expense : many2one -+ taxes_id : many2many -+ property_stock_procurement : many2one -+ property_stock_account_input : many2one -+ property_stock_production : many2one -+ property_stock_inventory : many2one -+ property_stock_account_output : many2one - -ProductPricelistItem->ProductTemplate - - -*..0 -0..* - -ProductCategory - -product.category - -+ parent_id : many2one -+ complete_name : char -+ name : char -+ sequence : integer -+ child_id : one2many -+ type : selection -+ property_account_expense_categ : many2one -+ property_account_income_categ : many2one -+ property_stock_journal : many2one -+ property_stock_account_input_categ : many2one -+ property_stock_variation : many2one -+ property_stock_account_output_categ : many2one - -ProductPricelistItem->ProductCategory - - -*..0 -0..* - -ProductProduct->ProductPricelist - - -*..0 -0..* - -ProductProduct->ProductTemplate - - -*..0 -0..* - -ProductProduct->StockLocation - - -*..0 -0..* - -ProductPackaging - -product.packaging - -+ ul : many2one -+ code : char -+ product_id : many2one -+ weight : float -+ sequence : integer -+ ul_qty : integer -+ ean : char -+ qty : float -+ width : float -+ length : float -+ rows : integer -+ height : float -+ weight_ul : float -+ name : text - -ProductProduct->ProductPackaging - - -0..* -*..0 - -ProductPricelist->ResCompany - - -*..0 -0..* - -ProductPricelist->ProductPricelistVersion - - -0..* -*..0 - -ProductPricelistVersion->ResCompany - - -*..0 -0..* - -ProductPricelistVersion->ProductPricelist - - -*..0 -0..* - -ProductTemplate->ResCompany - - -*..0 -0..* - -ProductTemplate->ResUsers - - -*..0 -0..* - -ProductTemplate->ResPartner - - -*..0 -0..* - -ProductTemplate->AccountAccount - - -*..0 -0..* - -ProductTemplate->ProductCategory - - -*..0 -0..* - -ProductTemplate->ProductUom - - -*..0 -0..* - -ProductTemplate->StockLocation - - -*..0 -0..* - -ProductTemplate->AccountTax - - -*..* -*..* - -ProductSupplierinfo - -product.supplierinfo - -+ pricelist_ids : one2many -+ name : many2one -+ product_uom : many2one -+ sequence : integer -+ company_id : many2one -+ qty : float -+ delay : integer -+ min_qty : float -+ product_code : char -+ product_name : char -+ product_id : many2one - -ProductTemplate->ProductSupplierinfo - - -0..* -*..0 - -ProductCategory->AccountJournal - - -*..0 -0..* - -ProductCategory->AccountAccount - - -*..0 -0..* - -ProductCategory->ProductCategory - - -0..* -*..0 - -ResourceCalendarLeaves - -resource.calendar.leaves - -+ name : char -+ resource_id : many2one -+ calendar_id : many2one -+ date_from : datetime -+ date_to : datetime -+ company_id : many2one - -ResourceCalendarLeaves->ResCompany - - -*..0 -0..* - -ResourceCalendarLeaves->ResourceCalendar - - -*..0 -0..* - -ResourceResource - -resource.resource - -+ time_efficiency : float -+ code : char -+ user_id : many2one -+ name : char -+ company_id : many2one -+ active : boolean -+ calendar_id : many2one -+ resource_type : selection - -ResourceCalendarLeaves->ResourceResource - - -*..0 -0..* - -ResourceCalendar->ResCompany - - -*..0 -0..* - -ResourceCalendarAttendance - -resource.calendar.attendance - -+ dayofweek : selection -+ hour_from : float -+ name : char -+ calendar_id : many2one -+ date_from : date -+ hour_to : float - -ResourceCalendar->ResourceCalendarAttendance - - -0..* -*..0 - -ResourceResource->ResCompany - - -*..0 -0..* - -ResourceResource->ResUsers - - -*..0 -0..* - -ResourceResource->ResourceCalendar - - -*..0 -0..* - -AccountAutomaticReconcile - -account.automatic.reconcile - -+ power : selection -+ reconciled : integer -+ allow_write_off : boolean -+ writeoff_acc_id : many2one -+ period_id : many2one -+ account_ids : many2many -+ date1 : date -+ date2 : date -+ max_amount : float -+ unreconciled : integer -+ journal_id : many2one - -AccountAutomaticReconcile->AccountPeriod - - -*..0 -0..* - -AccountAutomaticReconcile->AccountJournal - - -*..0 -0..* - -AccountAutomaticReconcile->AccountAccount - - -*..0 -0..* - -IrDefault - -ir.default - -+ uid : many2one -+ ref_table : char -+ company_id : many2one -+ value : char -+ ref_id : integer -+ field_tbl : char -+ field_name : char -+ page : char - -IrDefault->ResCompany - - -*..0 -0..* - -CrmPhonecall2phonecall - -crm.phonecall2phonecall - -+ date : datetime -+ categ_id : many2one -+ user_id : many2one -+ name : char -+ section_id : many2one - -CrmPhonecall2phonecall->ResUsers - - -*..0 -0..* - -CrmPhonecall2phonecall->CrmCaseCateg - - -*..0 -0..* - -CrmPhonecall2phonecall->CrmCaseSection - - -*..0 -0..* - -IrCron - -ir.cron - -+ function : char -+ interval_type : selection -+ user_id : many2one -+ name : char -+ args : text -+ numbercall : integer -+ nextcall : datetime -+ priority : integer -+ doall : boolean -+ active : boolean -+ interval_number : integer -+ model : char - -IrCron->ResUsers - - -*..0 -0..* - -StockInventoryLine - -stock.inventory.line - -+ product_id : many2one -+ product_uom : many2one -+ prod_lot_id : many2one -+ company_id : many2one -+ inventory_id : many2one -+ state : char -+ product_qty : float -+ location_id : many2one - -StockInventoryLine->ResCompany - - -*..0 -0..* - -StockInventoryLine->ProductUom - - -*..0 -0..* - -StockProductionLot - -stock.production.lot - -+ stock_available : float -+ name : char -+ company_id : many2one -+ move_ids : one2many -+ prefix : char -+ product_id : many2one -+ date : datetime -+ ref : char -+ revisions : one2many - -StockInventoryLine->StockProductionLot - - -*..0 -0..* - -StockInventory - -stock.inventory - -+ move_ids : many2many -+ state : selection -+ name : char -+ date_done : datetime -+ date : datetime -+ inventory_line_id : one2many -+ company_id : many2one - -StockInventoryLine->StockInventory - - -*..0 -0..* - -StockInventoryLine->StockLocation - - -*..0 -0..* - -ProductUom->ProductUomCateg - - -*..0 -0..* - -StockProductionLot->ResCompany - - -*..0 -0..* - -StockProductionLot->ProductProduct - - -*..0 -0..* - -StockMove - -stock.move - -+ origin : char -+ product_uos_qty : float -+ address_id : many2one -+ create_date : datetime -+ backorder_id : many2one -+ product_uom : many2one -+ price_unit : float -+ date_expected : datetime -+ date : datetime -+ prodlot_id : many2one -+ move_dest_id : many2one -+ product_qty : float -+ product_uos : many2one -+ scrapped : boolean -+ location_id : many2one -+ name : char -+ note : text -+ move_history_ids2 : many2many -+ product_id : many2one -+ auto_validate : boolean -+ price_currency_id : many2one -+ partner_id : many2one -+ company_id : many2one -+ picking_id : many2one -+ priority : selection -+ state : selection -+ location_dest_id : many2one -+ tracking_id : many2one -+ product_packaging : many2one -+ move_history_ids : many2many -+ procurements : one2many -+ sale_line_id : many2one - -StockProductionLot->StockMove - - -0..* -*..0 - -StockProductionLotRevision - -stock.production.lot.revision - -+ indice : char -+ name : char -+ date : date -+ lot_id : many2one -+ author_id : many2one -+ company_id : many2one -+ description : text - -StockProductionLot->StockProductionLotRevision - - -0..* -*..0 - -StockInventory->ResCompany - - -*..0 -0..* - -StockInventory->StockInventoryLine - - -0..* -*..0 - -StockLocation->ResCompany - - -*..0 -0..* - -StockLocation->ResPartnerAddress - - -*..0 -0..* - -StockLocation->StockLocation - - -0..* -*..0 - -StockJournal - -stock.journal - -+ user_id : many2one -+ name : char - -StockLocation->StockJournal - - -*..0 -0..* - -IrSequence->ResCompany - - -*..0 -0..* - -AccountSequenceFiscalyear - -account.sequence.fiscalyear - -+ sequence_id : many2one -+ fiscalyear_id : many2one -+ sequence_main_id : many2one - -IrSequence->AccountSequenceFiscalyear - - -0..* -*..0 - -AccountSequenceFiscalyear->AccountFiscalyear - - -*..0 -0..* - -AccountSequenceFiscalyear->IrSequence - - -*..0 -0..* - -ResPayterm - -res.payterm - -+ name : char - -StockWarehouse - -stock.warehouse - -+ lot_input_id : many2one -+ lot_output_id : many2one -+ name : char -+ lot_stock_id : many2one -+ partner_address_id : many2one -+ company_id : many2one - -StockWarehouse->ResCompany - - -*..0 -0..* - -StockWarehouse->ResPartnerAddress - - -*..0 -0..* - -StockWarehouse->StockLocation - - -*..0 -0..* - -StockMoveSplitLinesExist - -stock.move.split.lines.exist - -+ lot_id : many2one -+ prodlot_id : many2one -+ name : char -+ quantity : integer - -StockMoveSplitLinesExist->StockProductionLot - - -*..0 -0..* - -BaseModuleUpdate - -base.module.update - -+ add : integer -+ state : selection -+ update : integer -+ config_logo : binary - -AccountSubscriptionGenerate - -account.subscription.generate - -+ date : date - -AccountInvoiceTax - -account.invoice.tax - -+ factor_tax : float -+ tax_amount : float -+ account_id : many2one -+ sequence : integer -+ company_id : many2one -+ invoice_id : many2one -+ manual : boolean -+ base_amount : float -+ base_code_id : many2one -+ factor_base : float -+ amount : float -+ base : float -+ tax_code_id : many2one -+ name : char - -AccountInvoiceTax->ResCompany - - -*..0 -0..* - -AccountInvoiceTax->AccountAccount - - -*..0 -0..* - -AccountInvoiceTax->AccountInvoice - - -*..0 -0..* - -AccountInvoiceTax->AccountTaxCode - - -*..0 -0..* - -AccountInvoice->ResCompany - - -*..0 -0..* - -AccountInvoice->ResPartnerAddress - - -*..0 -0..* - -AccountInvoice->ResUsers - - -*..0 -0..* - -AccountInvoice->ResPartner - - -*..0 -0..* - -AccountInvoice->ResCurrency - - -*..0 -0..* - -AccountInvoice->AccountPeriod - - -*..0 -0..* - -AccountInvoice->AccountJournal - - -*..0 -0..* - -AccountInvoice->AccountMove - - - -AccountInvoice->AccountAccount - - -*..0 -0..* - -AccountInvoice->AccountMoveLine - - -*..* -*..* - -AccountInvoice->AccountPaymentTerm - - -*..0 -0..* - -AccountInvoice->AccountInvoiceTax - - -0..* -*..0 - -AccountInvoice->AccountFiscalPosition - - -*..0 -0..* - -AccountInvoice->ResPartnerBank - - -*..0 -0..* - -AccountInvoice->AccountInvoiceLine - - -0..* -*..0 - -AccountTaxCode->ResCompany - - -*..0 -0..* - -AccountTaxCode->AccountMoveLine - - -0..* -*..0 - -AccountTaxCode->AccountTaxCode - - -0..* -*..0 - -CrmSendMail - -crm.send.mail - -+ body : text -+ state : selection -+ html : boolean -+ email_to : char -+ attachment_ids : one2many -+ reply_to : char -+ email_cc : char -+ email_from : char -+ subject : char - -CrmSendMailAttachment - -crm.send.mail.attachment - -+ binary : binary -+ name : char -+ wizard_id : many2one - -CrmSendMail->CrmSendMailAttachment - - -0..* -*..0 - -CrmSendMailAttachment->CrmSendMail - - -*..0 -0..* - -AccountMoveReconcile->AccountMoveLine - - -0..* -*..0 - -AccountTax->ResCompany - - -*..0 -0..* - -AccountTax->AccountAccount - - -*..0 -0..* - -AccountTax->AccountTaxCode - - -*..0 -0..* - -AccountTax->AccountTax - - -0..* -*..0 - -StockMoveSplit - -stock.move.split - -+ product_id : many2one -+ product_uom : many2one -+ line_exist_ids : one2many -+ qty : integer -+ line_ids : one2many -+ use_exist : boolean - -StockMoveSplit->ProductUom - - -*..0 -0..* - -StockMoveSplit->StockMoveSplitLinesExist - - -0..* -*..0 - -StockMoveSplitLines - -stock.move.split.lines - -+ action : selection -+ lot_id : many2one -+ use_exist : boolean -+ name : char -+ quantity : integer - -StockMoveSplit->StockMoveSplitLines - - -0..* -*..0 - -StockMoveSplitLines->StockMoveSplit - - -*..0 -0..* - -WizardMultiChartsAccounts - -wizard.multi.charts.accounts - -+ code_digits : integer -+ seq_journal : boolean -+ config_logo : binary -+ progress : float -+ chart_template_id : many2one -+ company_id : many2one -+ bank_accounts_id : one2many - -WizardMultiChartsAccounts->ResCompany - - -*..0 -0..* - -AccountChartTemplate - -account.chart.template - -+ property_account_expense_categ : many2one -+ name : char -+ property_account_expense : many2one -+ property_account_receivable : many2one -+ property_account_payable : many2one -+ property_reserve_and_surplus_account : many2one -+ tax_code_root_id : many2one -+ property_account_income_categ : many2one -+ property_account_income : many2one -+ tax_template_ids : one2many -+ bank_account_view_id : many2one -+ account_root_id : many2one - -WizardMultiChartsAccounts->AccountChartTemplate - - -*..0 -0..* - -AccountBankAccountsWizard - -account.bank.accounts.wizard - -+ currency_id : many2one -+ acc_name : char -+ account_type : selection -+ bank_account_id : many2one - -WizardMultiChartsAccounts->AccountBankAccountsWizard - - -0..* -*..0 - -AccountChartTemplate->AccountAccountTemplate - - -*..0 -0..* - -AccountTaxCodeTemplate - -account.tax.code.template - -+ info : text -+ notprintable : boolean -+ code : char -+ name : char -+ parent_id : many2one -+ child_ids : one2many -+ sign : float - -AccountChartTemplate->AccountTaxCodeTemplate - - -*..0 -0..* - -AccountChartTemplate->AccountTaxTemplate - - -0..* -*..0 - -AccountInstaller - -account.installer - -+ date_stop : date -+ date_start : date -+ sale_tax : float -+ company_id : many2one -+ purchase_tax : float -+ period : selection -+ charts : selection -+ config_logo : binary -+ progress : float -+ bank_accounts_id : one2many - -AccountBankAccountsWizard->AccountInstaller - - -*..0 -0..* - -ResCountryState->ResCountry - - -*..0 -0..* - -MrpProperty - -mrp.property - -+ composition : selection -+ group_id : many2one -+ description : text -+ name : char - -MrpPropertyGroup - -mrp.property.group - -+ name : char -+ description : text - -MrpProperty->MrpPropertyGroup - - -*..0 -0..* - -IrRule->ResGroups - - -*..* -*..* - -AccountFiscalPosition->ResCompany - - -*..0 -0..* - -AccountFiscalPositionAccount - -account.fiscal.position.account - -+ position_id : many2one -+ account_dest_id : many2one -+ account_src_id : many2one - -AccountFiscalPosition->AccountFiscalPositionAccount - - -0..* -*..0 - -AccountFiscalPositionTax - -account.fiscal.position.tax - -+ position_id : many2one -+ tax_dest_id : many2one -+ tax_src_id : many2one - -AccountFiscalPosition->AccountFiscalPositionTax - - -0..* -*..0 - -AccountFiscalPositionAccount->AccountAccount - - -*..0 -0..* - -AccountFiscalPositionTax->AccountTax - - -*..0 -0..* - -CrmAddNote - -crm.add.note - -+ body : text -+ state : selection -+ attachment_ids : one2many - -CrmAddNote->CrmSendMailAttachment - - -0..* -*..0 - -MaintenanceContract - -maintenance.contract - -+ date_stop : date -+ password : char -+ name : char -+ state : selection -+ module_ids : many2many -+ date_start : date -+ kind : selection - -MaintenanceContractModule - -maintenance.contract.module - -+ version : char -+ name : char - -MaintenanceContract->MaintenanceContractModule - - -*..* -*..* - -ResConfigInstaller - -res.config.installer - -+ progress : float -+ config_logo : binary - -IrModel->IrModelAccess - - -0..* -*..0 - -IrModelFields - -ir.model.fields - -+ model_id : many2one -+ domain : char -+ selection : char -+ on_delete : selection -+ view_load : boolean -+ select_level : selection -+ relation : char -+ groups : many2many -+ selectable : boolean -+ size : integer -+ name : char -+ required : boolean -+ readonly : boolean -+ state : selection -+ relation_field : char -+ ttype : selection -+ model : char -+ translate : boolean -+ field_description : char -+ complete_name : char - -IrModel->IrModelFields - - -0..* -*..0 - -AccountAnalyticJournal->ResCompany - - -*..0 -0..* - -AccountAnalyticJournal->AccountAnalyticLine - - -0..* -*..0 - -StockPartialPicking - -stock.partial.picking - -+ date : datetime - -AccountVatDeclaration - -account.vat.declaration - -+ chart_account_id : many2one -+ date_from : date -+ based_on : selection -+ period_to : many2one -+ journal_ids : many2many -+ company_id : many2one -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ periods : many2many -+ date_to : date -+ display_account : selection -+ target_move : selection -+ fiscalyear : many2many - -AccountVatDeclaration->ResCompany - - -*..0 -0..* - -AccountVatDeclaration->AccountPeriod - - -*..0 -0..* - -AccountVatDeclaration->AccountJournal - - -*..* -*..* - -AccountVatDeclaration->AccountFiscalyear - - -*..0 -0..* - -AccountMoveLineReconcileWriteoff - -account.move.line.reconcile.writeoff - -+ comment : char -+ analytic_id : many2one -+ date_p : date -+ journal_id : many2one -+ writeoff_acc_id : many2one - -AccountMoveLineReconcileWriteoff->AccountAnalyticAccount - - -*..0 -0..* - -AccountMoveLineReconcileWriteoff->AccountJournal - - -*..0 -0..* - -AccountMoveLineReconcileWriteoff->AccountAccount - - -*..0 -0..* - -IrModelData - -ir.model.data - -+ noupdate : boolean -+ name : char -+ res_id : integer -+ model : char -+ date_update : datetime -+ date_init : datetime -+ module : char - -SaleConfigPicking_policy - -sale.config.picking_policy - -+ order_policy : selection -+ step : selection -+ name : char -+ config_logo : binary -+ picking_policy : selection -+ progress : float - -AccountTaxCodeTemplate->AccountTaxCodeTemplate - - -*..0 -0..* - -StockIncoterms - -stock.incoterms - -+ active : boolean -+ code : char -+ name : char - -ResWidgetWizard - -res.widget.wizard - -+ widget_id : one2many - -AccountVoucherLine->ResCompany - - - -AccountVoucherLine->ResPartner - - -*..0 -0..* - -AccountVoucherLine->AccountAnalyticAccount - - -*..0 -0..* - -AccountVoucherLine->AccountAccount - - -*..0 -0..* - -AccountVoucherLine->AccountVoucher - - -*..0 -0..* - -AccountVoucherLine->AccountMoveLine - - - -CrmMergeOpportunity - -crm.merge.opportunity - -+ state : selection -+ opportunity_ids : many2many - -CrmMergeOpportunity->CrmLead - - -*..* -*..* - -CrmLead->ResCompany - - -*..0 -0..* - -CrmLead->ResPartnerAddress - - -*..0 -0..* - -CrmLead->ResUsers - - -*..0 -0..* - -CrmLead->ResPartner - - -*..0 -0..* - -CrmLead->CrmCaseCateg - - -*..0 -0..* - -CrmLead->CrmCaseSection - - -*..0 -0..* - -CrmLead->ResCountry - - -*..0 -0..* - -CrmLead->ResCountryState - - -*..0 -0..* - -CrmLead->MailgateMessage - - -0..* -*..0 - -CrmLead->CrmCaseStage - - -*..0 -0..* - -CrmCaseResourceType - -crm.case.resource.type - -+ name : char -+ section_id : many2one - -CrmLead->CrmCaseResourceType - - -*..0 -0..* - -ResPartnerCanal - -res.partner.canal - -+ active : boolean -+ name : char - -CrmLead->ResPartnerCanal - - -*..0 -0..* - -CrmLead->ResPartnerTitle - - -*..0 -0..* - -AccountTaxChart - -account.tax.chart - -+ period_id : many2one -+ target_move : selection - -BaseUpdateTranslations - -base.update.translations - -+ lang : selection -+ config_logo : binary - -ResAlarm - -res.alarm - -+ trigger_duration : integer -+ name : char -+ trigger_occurs : selection -+ trigger_interval : selection -+ duration : integer -+ repeat : integer -+ active : boolean -+ trigger_related : selection - -WorkflowTransition - -workflow.transition - -+ trigger_model : char -+ signal : char -+ act_from : many2one -+ condition : char -+ trigger_expr_id : char -+ group_id : many2one -+ wkf_id : many2one -+ act_to : many2one - -WorkflowTransition->ResGroups - - -*..0 -0..* - -WorkflowActivity - -workflow.activity - -+ kind : selection -+ name : char -+ join_mode : selection -+ out_transitions : one2many -+ flow_stop : boolean -+ subflow_id : many2one -+ split_mode : selection -+ action : text -+ signal_send : char -+ action_id : many2one -+ wkf_id : many2one -+ in_transitions : one2many -+ flow_start : boolean - -WorkflowTransition->WorkflowActivity - - -*..0 -0..* - -Workflow - -workflow - -+ activities : one2many -+ on_create : boolean -+ name : char -+ osv : char - -WorkflowTransition->Workflow - - -*..0 -0..* - -WorkflowActivity->WorkflowTransition - - -0..* -*..0 - -WorkflowActivity->Workflow - - -*..0 -0..* - -IrActionsServer - -ir.actions.server - -+ model_id : many2one -+ code : text -+ sequence : integer -+ copy_object : reference -+ child_ids : many2many -+ usage : char -+ write_id : char -+ srcmodel_id : many2one -+ message : text -+ trigger_name : selection -+ condition : char -+ subject : char -+ loop_action : many2one -+ fields_lines : one2many -+ trigger_obj_id : many2one -+ name : char -+ mobile : char -+ expression : char -+ sms : char -+ wkf_model_id : many2one -+ state : selection -+ record_id : many2one -+ type : char -+ email : char -+ action_id : many2one - -WorkflowActivity->IrActionsServer - - -*..0 -0..* - -AccountStatementFromInvoiceLines - -account.statement.from.invoice.lines - -+ line_ids : many2many - -AccountFiscalPositionTemplate - -account.fiscal.position.template - -+ chart_template_id : many2one -+ name : char -+ account_ids : one2many -+ tax_ids : one2many - -AccountFiscalPositionTemplate->AccountFiscalPositionAccountTemplate - - -0..* -*..0 - -AccountFiscalPositionTaxTemplate - -account.fiscal.position.tax.template - -+ position_id : many2one -+ tax_dest_id : many2one -+ tax_src_id : many2one - -AccountFiscalPositionTemplate->AccountFiscalPositionTaxTemplate - - -0..* -*..0 - -AccountFiscalPositionTaxTemplate->AccountTaxTemplate - - -*..0 -0..* - -IrUiViewCustom - -ir.ui.view.custom - -+ user_id : many2one -+ arch : text -+ ref_id : many2one - -IrUiViewCustom->IrUiView - - -*..0 -0..* - -SaleReport - -sale.report - -+ state : selection -+ nbr : integer -+ product_uom_qty : float -+ shipped_qty_1 : integer -+ month : selection -+ shop_id : many2one -+ year : char -+ date : date -+ partner_id : many2one -+ day : char -+ shipped : boolean -+ analytic_account_id : many2one -+ uom_name : char -+ price_total : float -+ user_id : many2one -+ product_id : many2one -+ categ_id : many2one -+ company_id : many2one -+ date_confirm : date -+ delay : float -+ price_average : float -+ pricelist_id : many2one - -SaleReport->ResCompany - - -*..0 -0..* - -SaleReport->ResUsers - - -*..0 -0..* - -SaleReport->ResPartner - - -*..0 -0..* - -SaleReport->AccountAnalyticAccount - - -*..0 -0..* - -SaleReport->ProductProduct - - -*..0 -0..* - -SaleReport->ProductPricelist - - -*..0 -0..* - -SaleReport->ProductCategory - - -*..0 -0..* - -SaleShop - -sale.shop - -+ name : char -+ pricelist_id : many2one -+ project_id : many2one -+ company_id : many2one -+ payment_default_id : many2one -+ warehouse_id : many2one - -SaleReport->SaleShop - - -*..0 -0..* - -SaleShop->ResCompany - - -*..0 -0..* - -SaleShop->AccountAnalyticAccount - - -*..0 -0..* - -SaleShop->AccountPaymentTerm - - -*..0 -0..* - -SaleShop->ProductPricelist - - -*..0 -0..* - -SaleShop->StockWarehouse - - -*..0 -0..* - -AccountTaxTemplate->AccountAccountTemplate - - -*..0 -0..* - -AccountTaxTemplate->AccountChartTemplate - - -*..0 -0..* - -AccountTaxTemplate->AccountTaxCodeTemplate - - -*..0 -0..* - -AccountTaxTemplate->AccountTaxTemplate - - -*..0 -0..* - -ResCurrencyRate - -res.currency.rate - -+ currency_id : many2one -+ rate : float -+ name : date - -AccountEntriesReport - -account.entries.report - -+ reconcile_id : many2one -+ move_state : selection -+ account_id : many2one -+ company_id : many2one -+ nbr : integer -+ user_type : many2one -+ month : selection -+ currency_id : many2one -+ fiscalyear_id : many2one -+ date_maturity : date -+ period_id : many2one -+ year : char -+ date : date -+ product_uom_id : many2one -+ partner_id : many2one -+ day : char -+ analytic_account_id : many2one -+ move_line_state : selection -+ balance : float -+ product_id : many2one -+ ref : char -+ journal_id : many2one -+ credit : float -+ debit : float -+ date_created : date -+ amount_currency : float -+ type : selection -+ quantity : float - -AccountEntriesReport->ResCompany - - -*..0 -0..* - -AccountEntriesReport->ResPartner - - -*..0 -0..* - -AccountEntriesReport->AccountAnalyticAccount - - -*..0 -0..* - -AccountEntriesReport->ResCurrency - - -*..0 -0..* - -AccountEntriesReport->AccountPeriod - - -*..0 -0..* - -AccountEntriesReport->AccountJournal - - -*..0 -0..* - -AccountEntriesReport->AccountFiscalyear - - -*..0 -0..* - -AccountEntriesReport->AccountAccount - - -*..0 -0..* - -AccountEntriesReport->ProductProduct - - -*..0 -0..* - -AccountEntriesReport->ProductUom - - -*..0 -0..* - -AccountEntriesReport->AccountAccountType - - -*..0 -0..* - -BoardNote - -board.note - -+ note : text -+ date : date -+ user_id : many2one -+ name : char -+ type : selection - -BoardNote->ResUsers - - -*..0 -0..* - -BaseSetupCompany - -base.setup.company - -+ website : char -+ rml_footer1 : char -+ street2 : char -+ rml_header1 : char -+ currency : many2one -+ street : char -+ config_logo : binary -+ logo : binary -+ account_no : char -+ city : char -+ rml_footer2 : char -+ name : char -+ zip : char -+ phone : char -+ country_id : selection -+ company_id : many2one -+ state_id : selection -+ progress : float -+ email : char - -BaseSetupCompany->ResCompany - - -*..0 -0..* - -BaseSetupCompany->ResCurrency - - -*..0 -0..* - -ProductPricelistType - -product.pricelist.type - -+ name : char -+ key : char - -MakeProcurement - -make.procurement - -+ uom_id : many2one -+ warehouse_id : many2one -+ date_planned : date -+ product_id : many2one -+ qty : float - -MakeProcurement->ProductProduct - - -*..0 -0..* - -MakeProcurement->StockWarehouse - - -*..0 -0..* - -IrModelAccess->ResGroups - - -*..0 -0..* - -IrActionsWizard - -ir.actions.wizard - -+ groups_id : many2many -+ multi : boolean -+ name : char -+ usage : char -+ type : char -+ model : char -+ wiz_name : char - -IrWizardScreen - -ir.wizard.screen - -+ config_logo : binary - -AccountPartnerLedger - -account.partner.ledger - -+ initial_balance : boolean -+ chart_account_id : many2one -+ period_to : many2one -+ date_from : date -+ reconcil : boolean -+ result_selection : selection -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ page_split : boolean -+ date_to : date -+ amount_currency : boolean -+ target_move : selection - -AccountPartnerLedger->AccountPeriod - - -*..0 -0..* - -AccountPartnerLedger->AccountJournal - - -*..* -*..* - -AccountPartnerLedger->AccountFiscalyear - - -*..0 -0..* - -AccountPartnerLedger->AccountAccount - - -*..0 -0..* - -AccountCashboxLine->AccountBankStatement - - -*..0 -0..* - -ProcurementOrderpointCompute - -procurement.orderpoint.compute - -+ automatic : boolean - -CalendarEvent - -calendar.event - -+ allday : boolean -+ create_date : datetime -+ sequence : integer -+ we : boolean -+ base_calendar_alarm_id : many2one -+ rrule : char -+ duration : float -+ organizer : char -+ id : integer -+ month_list : selection -+ user_id : many2one -+ vtimezone : selection -+ tu : boolean -+ week_list : selection -+ day : integer -+ recurrent_uid : integer -+ attendee_ids : many2many -+ state : selection -+ base_calendar_url : char -+ location : char -+ th : boolean -+ exrule : char -+ su : boolean -+ exdate : text -+ fr : boolean -+ description : text -+ end_date : date -+ class : selection -+ date : datetime -+ active : boolean -+ freq : selection -+ show_as : selection -+ count : integer -+ byday : selection -+ name : char -+ date_deadline : datetime -+ mo : boolean -+ interval : integer -+ recurrent_id : datetime -+ alarm_id : many2one -+ organizer_id : many2one -+ sa : boolean -+ rrule_type : selection -+ select1 : selection - -CalendarEvent->CalendarAttendee - - -*..* -*..* - -CalendarEvent->ResUsers - - -*..0 -0..* - -CalendarEvent->ResAlarm - - -*..0 -0..* - -CalendarAlarm - -calendar.alarm - -+ model_id : many2one -+ repeat : integer -+ description : text -+ trigger_occurs : selection -+ duration : integer -+ active : boolean -+ attendee_ids : many2many -+ trigger_related : selection -+ trigger_duration : integer -+ user_id : many2one -+ name : char -+ attach : binary -+ event_end_date : datetime -+ trigger_interval : selection -+ alarm_id : many2one -+ state : selection -+ action : selection -+ event_date : datetime -+ trigger_date : datetime -+ res_id : integer - -CalendarEvent->CalendarAlarm - - -*..0 -0..* - -CalendarAlarm->CalendarAttendee - - -*..* -*..* - -CalendarAlarm->ResUsers - - -*..0 -0..* - -CalendarAlarm->ResAlarm - - -*..0 -0..* - -AccountChangeCurrency - -account.change.currency - -+ currency_id : many2one - -IrProperty - -ir.property - -+ value_text : text -+ value_float : float -+ name : char -+ value_integer : integer_big -+ type : selection -+ company_id : many2one -+ fields_id : many2one -+ value_datetime : datetime -+ value_binary : binary -+ value_reference : reference -+ res_id : reference - -IrProperty->ResCompany - - -*..0 -0..* - -IrProperty->IrModelFields - - -*..0 -0..* - -IrModelFields->ResGroups - - -*..* -*..* - -ResBank - -res.bank - -+ city : char -+ fax : char -+ code : char -+ name : char -+ zip : char -+ country : many2one -+ street2 : char -+ bic : char -+ phone : char -+ state : many2one -+ street : char -+ active : boolean -+ email : char - -ResBank->ResCountry - - -*..0 -0..* - -ResBank->ResCountryState - - -*..0 -0..* - -AccountMoveBankReconcile - -account.move.bank.reconcile - -+ journal_id : many2one - -ProjectAccountAnalyticLine - -project.account.analytic.line - -+ from_date : date -+ to_date : date - -ProductPrice_list - -product.price_list - -+ price_list : many2one -+ qty1 : integer -+ qty2 : integer -+ qty3 : integer -+ qty4 : integer -+ qty5 : integer - -AccountInstaller->ResCompany - - -*..0 -0..* - -AccountInstaller->AccountBankAccountsWizard - - -0..* -*..0 - -StockFillInventory - -stock.fill.inventory - -+ set_stock_zero : boolean -+ location_id : many2one -+ recursive : boolean - -StockFillInventory->StockLocation - - -*..0 -0..* - -StockSplitInto - -stock.split.into - -+ quantity : float - -AccountAnalyticJournalReport - -account.analytic.Journal.report - -+ date1 : date -+ date2 : date - -StockInvoiceOnshipping - -stock.invoice.onshipping - -+ invoice_date : date -+ group : boolean -+ journal_id : many2one - -StockInvoiceOnshipping->AccountJournal - - -*..0 -0..* - -ProcurementOrderComputeAll - -procurement.order.compute.all - -+ automatic : boolean - -AccountUseModel - -account.use.model - -+ model : many2many - -MailgateMessage->ResUsers - - -*..0 -0..* - -MailgateMessage->ResPartner - - -*..0 -0..* - -IrAttachment - -ir.attachment - -+ create_uid : many2one -+ create_date : datetime -+ description : text -+ url : char -+ res_model : char -+ company_id : many2one -+ res_name : char -+ datas_fname : char -+ type : selection -+ res_id : integer -+ datas : binary -+ name : char - -MailgateMessage->IrAttachment - - -*..* -*..* - -IrAttachment->ResCompany - - -*..0 -0..* - -StockLocationProduct - -stock.location.product - -+ from_date : datetime -+ to_date : datetime - -WorkflowTriggers - -workflow.triggers - -+ instance_id : many2one -+ workitem_id : many2one -+ model : char -+ res_id : integer - -WorkflowWorkitem - -workflow.workitem - -+ subflow_id : many2one -+ wkf_id : many2one -+ act_id : many2one -+ state : char -+ inst_id : many2one - -WorkflowTriggers->WorkflowWorkitem - - -*..0 -0..* - -WorkflowWorkitem->WorkflowActivity - - -*..0 -0..* - -WorkflowWorkitem->Workflow - - -*..0 -0..* - -WorkflowInstance - -workflow.instance - -+ res_type : char -+ wkf_id : many2one -+ res_id : integer -+ state : char - -WorkflowWorkitem->WorkflowInstance - - -*..0 -0..* - -DecimalPrecision - -decimal.precision - -+ digits : integer -+ name : char - -StockMoveTrack - -stock.move.track - -+ tracking_prefix : char -+ quantity : float - -ResPartnerBankType - -res.partner.bank.type - -+ code : char -+ name : char -+ field_ids : one2many - -ResPartnerBankTypeField - -res.partner.bank.type.field - -+ bank_type_id : many2one -+ readonly : boolean -+ required : boolean -+ name : char -+ size : integer - -ResPartnerBankType->ResPartnerBankTypeField - - -0..* -*..0 - -IrModuleCategory->IrModuleCategory - - -0..* -*..0 - -AccountJournalPeriod->ResCompany - - -*..0 -0..* - -AccountJournalPeriod->AccountPeriod - - -*..0 -0..* - -AccountJournalPeriod->AccountJournal - - -*..0 -0..* - -AccountJournalPeriod->AccountFiscalyear - - -*..0 -0..* - -StockUps - -stock.ups - -+ weight : float - -CrmLead2opportunityPartner - -crm.lead2opportunity.partner - -+ action : selection -+ msg : text -+ partner_id : many2one - -CrmLead2opportunityPartner->ResPartner - - -*..0 -0..* - -ReportAccountReceivable - -report.account.receivable - -+ credit : float -+ balance : float -+ type : selection -+ name : char -+ debit : float - -AccountInvoiceRefund - -account.invoice.refund - -+ date : date -+ filter_refund : selection -+ description : char -+ period : many2one -+ journal_id : many2one - -AccountInvoiceRefund->AccountPeriod - - -*..0 -0..* - -AccountInvoiceRefund->AccountJournal - - -*..0 -0..* - -AccountReportGeneralLedger - -account.report.general.ledger - -+ initial_balance : boolean -+ chart_account_id : many2one -+ date_from : date -+ landscape : boolean -+ period_to : many2one -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ sortby : selection -+ date_to : date -+ amount_currency : boolean -+ display_account : selection -+ target_move : selection - -AccountReportGeneralLedger->AccountPeriod - - -*..0 -0..* - -AccountReportGeneralLedger->AccountJournal - - -*..* -*..* - -AccountReportGeneralLedger->AccountFiscalyear - - -*..0 -0..* - -AccountReportGeneralLedger->AccountAccount - - -*..0 -0..* - -BaseSetupConfig - -base.setup.config - -+ installed_users : text -+ config_logo : binary - -IrUiMenu->IrUiMenu - - -*..0 -0..* - -AccountAnalyticInvertedBalance - -account.analytic.inverted.balance - -+ date1 : date -+ date2 : date - -ReportStockMove - -report.stock.move - -+ day_diff1 : float -+ stock_journal : many2one -+ year : char -+ month : selection -+ product_qty : integer -+ date : date -+ day_diff2 : float -+ location_id : many2one -+ day : char -+ partner_id : many2one -+ product_id : many2one -+ product_qty_out : integer -+ categ_id : many2one -+ company_id : many2one -+ value : float -+ state : selection -+ location_dest_id : many2one -+ product_qty_in : integer -+ day_diff : float -+ type : selection -+ picking_id : many2one - -ReportStockMove->ResCompany - - -*..0 -0..* - -ReportStockMove->ResPartnerAddress - - -*..0 -0..* - -ReportStockMove->ProductProduct - - -*..0 -0..* - -ReportStockMove->ProductCategory - - -*..0 -0..* - -ReportStockMove->StockLocation - - -*..0 -0..* - -ReportStockMove->StockJournal - - -*..0 -0..* - -StockPicking - -stock.picking - -+ origin : char -+ address_id : many2one -+ move_lines : one2many -+ date_done : datetime -+ min_date : datetime -+ date : datetime -+ location_id : many2one -+ stock_journal_id : many2one -+ backorder_id : many2one -+ name : char -+ partner_id : many2one -+ move_type : selection -+ company_id : many2one -+ invoice_state : selection -+ note : text -+ state : selection -+ location_dest_id : many2one -+ max_date : datetime -+ auto_picking : boolean -+ type : selection -+ sale_id : many2one - -ReportStockMove->StockPicking - - -*..0 -0..* - -StockPicking->ResCompany - - -*..0 -0..* - -StockPicking->ResPartnerAddress - - -*..0 -0..* - -StockPicking->ResPartner - - -*..0 -0..* - -StockPicking->StockLocation - - -*..0 -0..* - -StockPicking->StockJournal - - -*..0 -0..* - -StockPicking->StockPicking - - -*..0 -0..* - -SaleOrder - -sale.order - -+ origin : char -+ create_date : date -+ order_line : one2many -+ picking_policy : selection -+ order_policy : selection -+ invoice_ids : many2many -+ shop_id : many2one -+ client_order_ref : char -+ date_order : date -+ partner_id : many2one -+ invoiced : boolean -+ note : text -+ fiscal_position : many2one -+ amount_untaxed : float -+ payment_term : many2one -+ company_id : many2one -+ picking_ids : one2many -+ amount_tax : float -+ state : selection -+ invoiced_rate : float -+ pricelist_id : many2one -+ project_id : many2one -+ incoterm : selection -+ partner_order_id : many2one -+ picked_rate : float -+ partner_invoice_id : many2one -+ user_id : many2one -+ date_confirm : date -+ amount_total : float -+ name : char -+ partner_shipping_id : many2one -+ shipped : boolean -+ invoice_quantity : selection -+ section_id : many2one - -StockPicking->SaleOrder - - -*..0 -0..* - -StockPicking->StockMove - - -0..* -*..0 - -ResWidgetUser - -res.widget.user - -+ user_id : many2one -+ widget_id : many2one -+ sequence : integer - -ResWidget - -res.widget - -+ content : text -+ title : char - -ResWidgetUser->ResWidget - - -*..0 -0..* - -ProcessCondition - -process.condition - -+ model_id : many2one -+ node_id : many2one -+ model_states : char -+ name : char - -ProcessNode - -process.node - -+ menu_id : many2one -+ model_id : many2one -+ kind : selection -+ note : text -+ name : char -+ condition_ids : one2many -+ subflow_id : many2one -+ process_id : many2one -+ model_states : char -+ transition_out : one2many -+ help_url : char -+ transition_in : one2many -+ flow_start : boolean - -ProcessCondition->ProcessNode - - -*..0 -0..* - -ProcessNode->IrModel - - -*..0 -0..* - -ProcessNode->ProcessCondition - - -0..* -*..0 - -ProcessTransition - -process.transition - -+ note : text -+ group_ids : many2many -+ transition_ids : many2many -+ name : char -+ source_node_id : many2one -+ target_node_id : many2one -+ action_ids : one2many - -ProcessNode->ProcessTransition - - -0..* -*..0 - -ProcessProcess - -process.process - -+ active : boolean -+ model_id : many2one -+ note : text -+ name : char -+ node_ids : one2many - -ProcessNode->ProcessProcess - - -*..0 -0..* - -AccountCommonPartnerReport - -account.common.partner.report - -+ chart_account_id : many2one -+ result_selection : selection -+ date_from : date -+ period_to : many2one -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ date_to : date -+ target_move : selection - -AccountCommonPartnerReport->AccountPeriod - - -*..0 -0..* - -AccountCommonPartnerReport->AccountJournal - - -*..* -*..* - -AccountCommonPartnerReport->AccountFiscalyear - - -*..0 -0..* - -ProductUl - -product.ul - -+ type : selection -+ name : char - -AccountCommonAccountReport - -account.common.account.report - -+ chart_account_id : many2one -+ date_from : date -+ period_to : many2one -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ date_to : date -+ display_account : selection -+ target_move : selection - -AccountCommonAccountReport->AccountPeriod - - -*..0 -0..* - -AccountCommonAccountReport->AccountJournal - - -*..* -*..* - -AccountCommonAccountReport->AccountFiscalyear - - -*..0 -0..* - -CrmLead2partner - -crm.lead2partner - -+ action : selection -+ msg : text -+ partner_id : many2one - -CrmLead2partner->ResPartner - - -*..0 -0..* - -CrmCaseStage->CrmCaseSection - - -*..* -*..* - -CrmCaseStage->IrModel - - -*..0 -0..* - -ReportInvoiceCreated - -report.invoice.created - -+ origin : char -+ date_invoice : date -+ date_due : date -+ create_date : datetime -+ name : char -+ type : selection -+ residual : float -+ number : char -+ currency_id : many2one -+ state : selection -+ amount_untaxed : float -+ partner_id : many2one -+ amount_total : float - -ReportInvoiceCreated->ResPartner - - -*..0 -0..* - -ReportInvoiceCreated->ResCurrency - - -*..0 -0..* - -ResRequest - -res.request - -+ body : text -+ create_date : datetime -+ name : char -+ date_sent : datetime -+ ref_doc2 : reference -+ priority : selection -+ ref_doc1 : reference -+ state : selection -+ act_from : many2one -+ ref_partner_id : many2one -+ active : boolean -+ trigger_date : datetime -+ act_to : many2one -+ history : one2many - -ResRequest->ResUsers - - -*..0 -0..* - -ResRequest->ResPartner - - -*..0 -0..* - -ResRequestHistory - -res.request.history - -+ body : text -+ act_from : many2one -+ name : char -+ req_id : many2one -+ date_sent : datetime -+ act_to : many2one - -ResRequest->ResRequestHistory - - -0..* -*..0 - -ResRequestHistory->ResUsers - - -*..0 -0..* - -ResRequestHistory->ResRequest - - -*..0 -0..* - -SaleOrder->ResCompany - - -*..0 -0..* - -SaleOrder->ResPartnerAddress - - -*..0 -0..* - -SaleOrder->ResUsers - - -*..0 -0..* - -SaleOrder->ResPartner - - -*..0 -0..* - -SaleOrder->CrmCaseSection - - -*..0 -0..* - -SaleOrder->AccountAnalyticAccount - - -*..0 -0..* - -SaleOrder->AccountPaymentTerm - - -*..0 -0..* - -SaleOrder->ProductPricelist - - -*..0 -0..* - -SaleOrder->AccountInvoice - - -*..* -*..* - -SaleOrder->AccountFiscalPosition - - -*..0 -0..* - -SaleOrder->SaleShop - - -*..0 -0..* - -SaleOrder->StockPicking - - -0..* -*..0 - -SaleOrderLine - -sale.order.line - -+ property_ids : many2many -+ product_uos_qty : float -+ procurement_id : many2one -+ product_uom : many2one -+ sequence : integer -+ order_id : many2one -+ price_unit : float -+ product_uom_qty : float -+ price_subtotal : float -+ discount : float -+ product_uos : many2one -+ number_packages : integer -+ invoiced : boolean -+ delay : float -+ name : char -+ invoice_lines : many2many -+ notes : text -+ company_id : many2one -+ salesman_id : many2one -+ move_ids : one2many -+ state : selection -+ product_id : many2one -+ order_partner_id : many2one -+ th_weight : float -+ product_packaging : many2one -+ tax_id : many2many -+ type : selection -+ address_allotment_id : many2one - -SaleOrder->SaleOrderLine - - -0..* -*..0 - -SaleOrderLine->ResCompany - - -*..0 -0..* - -SaleOrderLine->ResPartnerAddress - - -*..0 -0..* - -SaleOrderLine->ResUsers - - -*..0 -0..* - -SaleOrderLine->ResPartner - - -*..0 -0..* - -SaleOrderLine->ProductProduct - - -*..0 -0..* - -SaleOrderLine->ProductUom - - -*..0 -0..* - -SaleOrderLine->AccountTax - - -*..* -*..* - -SaleOrderLine->SaleOrder - - -*..0 -0..* - -SaleOrderLine->StockMove - - -0..* -*..0 - -ProcurementOrder - -procurement.order - -+ origin : char -+ product_uos_qty : float -+ product_uom : many2one -+ product_uos : many2one -+ product_qty : float -+ procure_method : selection -+ message : char -+ location_id : many2one -+ move_id : many2one -+ product_id : many2one -+ priority : selection -+ name : char -+ date_planned : datetime -+ close_move : boolean -+ company_id : many2one -+ date_close : datetime -+ note : text -+ state : selection - -SaleOrderLine->ProcurementOrder - - -*..0 -0..* - -SaleOrderLine->ProductPackaging - - -*..0 -0..* - -SaleOrderLine->AccountInvoiceLine - - -*..* -*..* - -StockUpsFinal - -stock.ups.final - -+ xmlfile : binary - -AccountAnalyticBalance - -account.analytic.balance - -+ date1 : date -+ date2 : date -+ empty_acc : boolean - -CalendarEventEditAll - -calendar.event.edit.all - -+ date : datetime -+ alarm_id : many2one -+ name : char -+ date_deadline : datetime -+ location : char - -CalendarEventEditAll->ResAlarm - - -*..0 -0..* - -ResPartnerBank->ResPartner - - -*..0 -0..* - -ResPartnerBank->ResCountry - - -*..0 -0..* - -ResPartnerBank->ResCountryState - - -*..0 -0..* - -ResPartnerBank->ResBank - - -*..0 -0..* - -AccountMoveLineReconcile - -account.move.line.reconcile - -+ trans_nbr : integer -+ credit : float -+ writeoff : float -+ debit : float - -AccountModelLine - -account.model.line - -+ analytic_account_id : many2one -+ model_id : many2one -+ account_id : many2one -+ sequence : integer -+ currency_id : many2one -+ credit : float -+ date_maturity : selection -+ debit : float -+ amount_currency : float -+ quantity : float -+ partner_id : many2one -+ name : char - -AccountModelLine->ResPartner - - -*..0 -0..* - -AccountModelLine->ResCurrency - - -*..0 -0..* - -AccountModelLine->AccountAccount - - -*..0 -0..* - -AccountModel - -account.model - -+ journal_id : many2one -+ lines_id : one2many -+ company_id : many2one -+ name : char -+ legend : text - -AccountModelLine->AccountModel - - -*..0 -0..* - -AccountModel->ResCompany - - -*..0 -0..* - -AccountModel->AccountModelLine - - -0..* -*..0 - -IrActionsReportXml - -ir.actions.report.xml - -+ groups_id : many2many -+ report_rml_content_data : binary -+ report_rml_content : binary -+ auto : boolean -+ header : boolean -+ report_type : char -+ report_sxw : char -+ report_file : char -+ multi : boolean -+ report_xsl : char -+ name : char -+ report_rml : char -+ report_sxw_content : binary -+ report_name : char -+ attachment : char -+ usage : char -+ model : char -+ report_sxw_content_data : binary -+ type : char -+ report_xml : char -+ attachment_use : boolean - -AccountSubscriptionLine - -account.subscription.line - -+ date : date -+ subscription_id : many2one -+ move_id : many2one - -AccountSubscriptionLine->AccountMove - - -*..0 -0..* - -AccountSubscription - -account.subscription - -+ model_id : many2one -+ period_nbr : integer -+ lines_id : one2many -+ name : char -+ date_start : date -+ period_total : integer -+ state : selection -+ period_type : selection -+ ref : char - -AccountSubscriptionLine->AccountSubscription - - -*..0 -0..* - -AccountSubscription->AccountSubscriptionLine - - -0..* -*..0 - -IrUiView_sc - -ir.ui.view_sc - -+ user_id : many2one -+ res_id : many2one -+ resource : char -+ name : char -+ sequence : integer - -IrUiView_sc->IrUiMenu - - -*..0 -0..* - -AccountFiscalyearCloseState - -account.fiscalyear.close.state - -+ fy_id : many2one - -StockMove->ResCompany - - -*..0 -0..* - -StockMove->ResPartnerAddress - - -*..0 -0..* - -StockMove->ResPartner - - -*..0 -0..* - -StockMove->ResCurrency - - -*..0 -0..* - -StockMove->ProductProduct - - -*..0 -0..* - -StockMove->ProductUom - - -*..0 -0..* - -StockMove->StockProductionLot - - -*..0 -0..* - -StockMove->StockLocation - - - -StockMove->StockPicking - - -*..0 -0..* - -StockMove->SaleOrderLine - - -*..0 -0..* - -StockMove->StockMove - - -*..0 -0..* - -StockTracking - -stock.tracking - -+ active : boolean -+ move_ids : one2many -+ serial : char -+ date : datetime -+ name : char - -StockMove->StockTracking - - -*..0 -0..* - -StockMove->ProcurementOrder - - -0..* -*..0 - -StockMove->ProductPackaging - - -*..0 -0..* - -StockTracking->StockMove - - -0..* -*..0 - -ProcurementOrder->ResCompany - - -*..0 -0..* - -ProcurementOrder->ProductProduct - - -*..0 -0..* - -ProcurementOrder->ProductUom - - -*..0 -0..* - -ProcurementOrder->StockLocation - - -*..0 -0..* - -ProcurementOrder->StockMove - - -*..0 -0..* - -ProductPackaging->ProductProduct - - -*..0 -0..* - -IrActionsTodo - -ir.actions.todo - -+ note : text -+ groups_id : many2many -+ state : selection -+ name : char -+ sequence : integer -+ restart : selection -+ action_id : many2one - -IrActionsTodo->ResGroups - - -*..* -*..* - -IrActionsAct_window - -ir.actions.act_window - -+ groups_id : many2many -+ domain : char -+ help : text -+ views : binary -+ auto_search : boolean -+ res_model : char -+ view_id : many2one -+ search_view_id : many2one -+ auto_refresh : integer -+ view_mode : char -+ search_view : text -+ view_ids : one2many -+ name : char -+ multi : boolean -+ target : selection -+ src_model : char -+ view_type : selection -+ filter : boolean -+ menus : char -+ display_menu_tip : boolean -+ limit : integer -+ context : char -+ usage : char -+ type : char - -IrActionsTodo->IrActionsAct_window - - -*..0 -0..* - -IrActionsAct_window->IrUiView - - -*..0 -0..* - -IrActionsAct_windowView - -ir.actions.act_window.view - -+ act_window_id : many2one -+ multi : boolean -+ view_mode : selection -+ view_id : many2one -+ sequence : integer - -IrActionsAct_window->IrActionsAct_windowView - - -0..* -*..0 - -IrActionsServer->IrActionsActions - - -*..0 -0..* - -IrActionsServer->IrModel - - -*..0 -0..* - -IrActionsServer->IrModelFields - - -*..0 -0..* - -IrActionsServer->IrActionsServer - - -*..* -*..* - -IrServerObjectLines - -ir.server.object.lines - -+ server_id : many2one -+ type : selection -+ value : text -+ col1 : many2one - -IrActionsServer->IrServerObjectLines - - -0..* -*..0 - -IrServerObjectLines->IrModelFields - - -*..0 -0..* - -AnalyticEntriesReport - -analytic.entries.report - -+ account_id : many2one -+ general_account_id : many2one -+ nbr : integer -+ month : selection -+ currency_id : many2one -+ year : char -+ date : date -+ partner_id : many2one -+ day : char -+ move_id : many2one -+ product_id : many2one -+ user_id : many2one -+ name : char -+ product_uom_id : many2one -+ company_id : many2one -+ journal_id : many2one -+ amount : float -+ unit_amount : float - -AnalyticEntriesReport->ResCompany - - -*..0 -0..* - -AnalyticEntriesReport->ResUsers - - -*..0 -0..* - -AnalyticEntriesReport->ResPartner - - -*..0 -0..* - -AnalyticEntriesReport->ResCurrency - - -*..0 -0..* - -AnalyticEntriesReport->AccountAccount - - -*..0 -0..* - -AnalyticEntriesReport->AccountMoveLine - - -*..0 -0..* - -AnalyticEntriesReport->ProductProduct - - -*..0 -0..* - -AnalyticEntriesReport->ProductUom - - -*..0 -0..* - -AnalyticEntriesReport->AccountAnalyticJournal - - -*..0 -0..* - -Base_calendarInviteAttendee - -base_calendar.invite.attendee - -+ type : selection -+ email : char -+ user_ids : many2many -+ contact_ids : many2many -+ partner_id : many2one -+ send_mail : boolean - -Base_calendarInviteAttendee->ResPartnerAddress - - -*..* -*..* - -Base_calendarInviteAttendee->ResUsers - - -*..* -*..* - -Base_calendarInviteAttendee->ResPartner - - -*..0 -0..* - -CrmCaseResourceType->CrmCaseSection - - -*..0 -0..* - -ProcessTransition->ResGroups - - -*..* -*..* - -ProcessTransition->WorkflowTransition - - -*..* -*..* - -ProcessTransition->ProcessNode - - -*..0 -0..* - -ProcessTransitionAction - -process.transition.action - -+ action : char -+ state : selection -+ name : char -+ transition_id : many2one - -ProcessTransition->ProcessTransitionAction - - -0..* -*..0 - -ProcessProcess->IrModel - - -*..0 -0..* - -ProcessProcess->ProcessNode - - -0..* -*..0 - -ResPartnerEvent->ResUsers - - -*..0 -0..* - -ResPartnerEvent->ResPartner - - -*..0 -0..* - -AccountVoucherUnreconcile - -account.voucher.unreconcile - -+ remove : boolean - -IrActionsUrl - -ir.actions.url - -+ url : text -+ type : char -+ name : char -+ target : selection - -CrmMakeSale - -crm.make.sale - -+ close : boolean -+ shop_id : many2one -+ partner_id : many2one - -CrmMakeSale->ResPartner - - -*..0 -0..* - -CrmMakeSale->SaleShop - - -*..0 -0..* - -StockReportTracklots - -stock.report.tracklots - -+ location_id : many2one -+ name : float -+ tracking_id : many2one -+ product_id : many2one - -StockReportTracklots->ProductProduct - - -*..0 -0..* - -StockReportTracklots->StockTracking - - -*..0 -0..* - -AccountPartnerBalance - -account.partner.balance - -+ display_partner : selection -+ chart_account_id : many2one -+ period_to : many2one -+ date_from : date -+ result_selection : selection -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ date_to : date -+ target_move : selection - -AccountPartnerBalance->AccountPeriod - - -*..0 -0..* - -AccountPartnerBalance->AccountJournal - - -*..* -*..* - -AccountPartnerBalance->AccountFiscalyear - - -*..0 -0..* - -AccountPartnerBalance->AccountAccount - - -*..0 -0..* - -StockChangeStandardPrice - -stock.change.standard.price - -+ stock_account_input : many2one -+ stock_journal : many2one -+ enable_stock_in_out_acc : boolean -+ new_price : float -+ stock_account_output : many2one - -StockChangeStandardPrice->AccountJournal - - -*..0 -0..* - -StockChangeStandardPrice->AccountAccount - - -*..0 -0..* - -StockMoveScrap - -stock.move.scrap - -+ location_id : many2one -+ product_id : many2one -+ product_uom : many2one -+ product_qty : float - -StockMoveScrap->ProductProduct - - -*..0 -0..* - -StockMoveScrap->ProductUom - - -*..0 -0..* - -AccountInvoiceLine->ResCompany - - -*..0 -0..* - -AccountInvoiceLine->ResPartner - - -*..0 -0..* - -AccountInvoiceLine->AccountAnalyticAccount - - -*..0 -0..* - -AccountInvoiceLine->AccountAccount - - -*..0 -0..* - -AccountInvoiceLine->ProductProduct - - -*..0 -0..* - -AccountInvoiceLine->ProductUom - - -*..0 -0..* - -AccountInvoiceLine->AccountInvoice - - -*..0 -0..* - -AccountInvoiceLine->AccountTax - - -*..* -*..* - -CrmMeeting->ResPartnerAddress - - -*..0 -0..* - -CrmMeeting->CalendarAttendee - - -*..* -*..* - -CrmMeeting->ResUsers - - -*..0 -0..* - -CrmMeeting->ResPartner - - -*..0 -0..* - -CrmMeeting->CrmCaseCateg - - -*..0 -0..* - -CrmMeeting->CrmCaseSection - - -*..0 -0..* - -CrmMeeting->CrmLead - - -*..0 -0..* - -CrmMeeting->ResAlarm - - -*..0 -0..* - -CrmMeeting->CalendarAlarm - - -*..0 -0..* - -CrmMeeting->MailgateMessage - - -0..* -*..0 - -CrmMeeting->CrmPhonecall - - -*..0 -0..* - -CrmPhonecall->ResCompany - - -*..0 -0..* - -CrmPhonecall->ResPartnerAddress - - -*..0 -0..* - -CrmPhonecall->ResUsers - - -*..0 -0..* - -CrmPhonecall->ResPartner - - -*..0 -0..* - -CrmPhonecall->CrmCaseCateg - - -*..0 -0..* - -CrmPhonecall->CrmCaseSection - - -*..0 -0..* - -CrmPhonecall->CrmLead - - -*..0 -0..* - -CrmPhonecall->MailgateMessage - - -0..* -*..0 - -CrmPhonecall->ResPartnerCanal - - -*..0 -0..* - -AccountStatementFromInvoice - -account.statement.from.invoice - -+ date : date -+ line_ids : many2many -+ journal_ids : many2many - -AccountStatementFromInvoice->AccountJournal - - -*..* -*..* - -AccountStatementFromInvoice->AccountMoveLine - - -*..* -*..* - -BaseActionRule - -base.action.rule - -+ trg_user_id : many2one -+ model_id : many2one -+ create_date : datetime -+ sequence : integer -+ act_remind_partner : boolean -+ trg_date_range_type : selection -+ active : boolean -+ regex_name : char -+ trg_date_range : integer -+ act_remind_user : boolean -+ act_mail_to_watchers : boolean -+ act_reply_to : char -+ name : char -+ trg_date_type : selection -+ trg_state_from : selection -+ act_user_id : many2one -+ server_action_id : many2one -+ act_state : selection -+ act_mail_to_user : boolean -+ act_email_from : char -+ act_method : char -+ trg_partner_id : many2one -+ trg_partner_categ_id : many2one -+ act_email_cc : char -+ trg_state_to : selection -+ act_mail_to_email : char -+ filter_id : many2one -+ act_mail_body : text -+ act_remind_attach : boolean -+ act_email_to : char -+ trg_categ_id : many2one -+ trg_section_id : many2one -+ regex_history : char -+ act_categ_id : many2one -+ act_section_id : many2one -+ act_mail_to_partner : boolean -+ trg_max_history : integer - -BaseActionRule->ResUsers - - -*..0 -0..* - -BaseActionRule->ResPartner - - -*..0 -0..* - -BaseActionRule->CrmCaseCateg - - -*..0 -0..* - -BaseActionRule->CrmCaseSection - - -*..0 -0..* - -BaseActionRule->ResPartnerCategory - - -*..0 -0..* - -BaseActionRule->IrModel - - -*..0 -0..* - -BaseActionRule->IrActionsServer - - -*..0 -0..* - -IrFilters - -ir.filters - -+ model_id : selection -+ domain : text -+ user_id : many2one -+ name : char -+ context : text - -BaseActionRule->IrFilters - - -*..0 -0..* - -IrFilters->ResUsers - - -*..0 -0..* - -AccountCommonReport - -account.common.report - -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ chart_account_id : many2one -+ date_to : date -+ date_from : date -+ period_to : many2one -+ journal_ids : many2many -+ target_move : selection - -AccountCommonReport->AccountPeriod - - -*..0 -0..* - -AccountCommonReport->AccountJournal - - -*..* -*..* - -AccountCommonReport->AccountFiscalyear - - -*..0 -0..* - -AccountCommonReport->AccountAccount - - -*..0 -0..* - -AccountCentralJournal - -account.central.journal - -+ chart_account_id : many2one -+ date_from : date -+ period_to : many2one -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ date_to : date -+ amount_currency : boolean -+ target_move : selection - -AccountCentralJournal->AccountPeriod - - -*..0 -0..* - -AccountCentralJournal->AccountJournal - - -*..* -*..* - -AccountCentralJournal->AccountFiscalyear - - -*..0 -0..* - -StockReportProdlots - -stock.report.prodlots - -+ prodlot_id : many2one -+ location_id : many2one -+ product_id : many2one -+ qty : float - -StockReportProdlots->ProductProduct - - -*..0 -0..* - -StockReportProdlots->StockLocation - - -*..0 -0..* - -CrmInstaller - -crm.installer - -+ outlook : boolean -+ name : char -+ thunderbird : boolean -+ wiki_sale_faq : boolean -+ fetchmail : boolean -+ sale_crm : boolean -+ crm_claim : boolean -+ config_logo : binary -+ crm_caldav : boolean -+ progress : float -+ crm_fundraising : boolean -+ crm_helpdesk : boolean - -MailgateThread - -mailgate.thread - -+ message_ids : one2many - -ResConfig - -res.config - -+ progress : float -+ config_logo : binary - -IrSequenceType - -ir.sequence.type - -+ code : char -+ name : char - -StockProductionLotRevision->ResCompany - - -*..0 -0..* - -StockProductionLotRevision->ResUsers - - -*..0 -0..* - -StockProductionLotRevision->StockProductionLot - - -*..0 -0..* - -Multi_companyDefault - -multi_company.default - -+ name : char -+ sequence : integer -+ expression : char -+ company_dest_id : many2one -+ field_id : many2one -+ company_id : many2one -+ object_id : many2one - -Multi_companyDefault->ResCompany - - -*..0 -0..* - -Multi_companyDefault->IrModel - - -*..0 -0..* - -Multi_companyDefault->IrModelFields - - -*..0 -0..* - -PricelistPartnerinfo - -pricelist.partnerinfo - -+ min_quantity : float -+ price : float -+ suppinfo_id : many2one -+ name : char - -PricelistPartnerinfo->ProductSupplierinfo - - -*..0 -0..* - -ProductSupplierinfo->ResCompany - - -*..0 -0..* - -ProductSupplierinfo->ResPartner - - -*..0 -0..* - -ProductSupplierinfo->ProductTemplate - - -*..0 -0..* - -ProductSupplierinfo->ProductUom - - -*..0 -0..* - -AccountAnalyticCostLedger - -account.analytic.cost.ledger - -+ date1 : date -+ date2 : date - -ReportStockLinesDate - -report.stock.lines.date - -+ date : datetime -+ id : integer -+ product_id : many2one - -ReportStockLinesDate->ProductProduct - - -*..0 -0..* - -BoardNoteType - -board.note.type - -+ name : char - -AccountFiscalyearClose - -account.fiscalyear.close - -+ fy_id : many2one -+ fy2_id : many2one -+ period_id : many2one -+ journal_id : many2one -+ report_name : char - -AccountFiscalyearClose->AccountPeriod - - -*..0 -0..* - -AccountFiscalyearClose->AccountJournal - - -*..0 -0..* - -AccountFiscalyearClose->AccountFiscalyear - - -*..0 -0..* - -ResLog - -res.log - -+ create_date : datetime -+ name : char -+ read : boolean -+ res_model : char -+ context : char -+ user_id : many2one -+ res_id : integer -+ secondary : boolean - -ResLog->ResUsers - - -*..0 -0..* - -MaintenanceContractWizard - -maintenance.contract.wizard - -+ state : selection -+ password : char -+ name : char - -BoardBoardLine - -board.board.line - -+ board_id : many2one -+ width : integer -+ name : char -+ sequence : integer -+ position : selection -+ action_id : many2one -+ height : integer - -BoardBoardLine->IrActionsAct_window - - -*..0 -0..* - -IrActionsAct_windowView->IrUiView - - -*..0 -0..* - -BaseCalendarSetExrule - -base.calendar.set.exrule - -+ count : integer -+ we : boolean -+ tu : boolean -+ end_date : date -+ byday : selection -+ mo : boolean -+ interval : integer -+ fr : boolean -+ su : boolean -+ day : integer -+ month_list : selection -+ week_list : selection -+ th : boolean -+ freq : selection -+ sa : boolean -+ select1 : selection - -AccountBalanceReport - -account.balance.report - -+ chart_account_id : many2one -+ date_from : date -+ period_to : many2one -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ date_to : date -+ display_account : selection -+ target_move : selection - -AccountBalanceReport->AccountPeriod - - -*..0 -0..* - -AccountBalanceReport->AccountJournal - - -*..* -*..* - -AccountBalanceReport->AccountFiscalyear - - -*..0 -0..* - -StockMoveConsume - -stock.move.consume - -+ location_id : many2one -+ product_id : many2one -+ product_uom : many2one -+ product_qty : float - -StockMoveConsume->ProductProduct - - -*..0 -0..* - -StockMoveConsume->ProductUom - - -*..0 -0..* - -AccountInvoiceReport - -account.invoice.report - -+ date_due : date -+ account_id : many2one -+ partner_bank_id : many2one -+ payment_term : many2one -+ nbr : integer -+ product_qty : float -+ residual : float -+ company_id : many2one -+ currency_id : many2one -+ price_total_tax : float -+ address_invoice_id : many2one -+ state : selection -+ period_id : many2one -+ year : char -+ date : date -+ month : selection -+ partner_id : many2one -+ day : char -+ price_total : float -+ delay_to_pay : float -+ uom_name : char -+ fiscal_position : many2one -+ user_id : many2one -+ due_delay : float -+ address_contact_id : many2one -+ categ_id : many2one -+ journal_id : many2one -+ price_average : float -+ product_id : many2one -+ type : selection -+ currency_rate : float - -AccountInvoiceReport->ResCompany - - -*..0 -0..* - -AccountInvoiceReport->ResPartnerAddress - - -*..0 -0..* - -AccountInvoiceReport->ResUsers - - -*..0 -0..* - -AccountInvoiceReport->ResPartner - - -*..0 -0..* - -AccountInvoiceReport->ResCurrency - - -*..0 -0..* - -AccountInvoiceReport->AccountPeriod - - -*..0 -0..* - -AccountInvoiceReport->AccountJournal - - -*..0 -0..* - -AccountInvoiceReport->AccountAccount - - -*..0 -0..* - -AccountInvoiceReport->AccountPaymentTerm - - -*..0 -0..* - -AccountInvoiceReport->ProductProduct - - -*..0 -0..* - -AccountInvoiceReport->ProductCategory - - -*..0 -0..* - -AccountInvoiceReport->AccountFiscalPosition - - -*..0 -0..* - -AccountInvoiceReport->ResPartnerBank - - -*..0 -0..* - -IrExports - -ir.exports - -+ export_fields : one2many -+ resource : char -+ name : char - -ReportStockInventory - -report.stock.inventory - -+ product_id : many2one -+ state : selection -+ partner_id : many2one -+ company_id : many2one -+ value : float -+ prodlot_id : many2one -+ product_categ_id : many2one -+ product_qty : float -+ date : datetime -+ location_id : many2one -+ location_type : selection - -ReportStockInventory->ResCompany - - -*..0 -0..* - -ReportStockInventory->ResPartnerAddress - - -*..0 -0..* - -ReportStockInventory->ProductCategory - - -*..0 -0..* - -ReportStockInventory->StockProductionLot - - -*..0 -0..* - -ReportStockInventory->StockLocation - - -*..0 -0..* - -AccountAnalyticCostLedgerJournalReport - -account.analytic.cost.ledger.journal.report - -+ date1 : date -+ journal : many2many -+ date2 : date - -AccountAnalyticCostLedgerJournalReport->AccountAnalyticJournal - - -*..* -*..* - -AccountCommonJournalReport - -account.common.journal.report - -+ chart_account_id : many2one -+ date_from : date -+ period_to : many2one -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ date_to : date -+ amount_currency : boolean -+ target_move : selection - -AccountCommonJournalReport->AccountPeriod - - -*..0 -0..* - -AccountCommonJournalReport->AccountJournal - - -*..* -*..* - -AccountCommonJournalReport->AccountFiscalyear - - -*..0 -0..* - -ResourceCalendarAttendance->ResourceCalendar - - -*..0 -0..* - -AccountInstallerModules - -account.installer.modules - -+ account_payment : boolean -+ config_logo : binary -+ account_followup : boolean -+ progress : float -+ account_anglo_saxon : boolean -+ account_analytic_plans : boolean -+ account_voucher : boolean - -ValidateAccountMove - -validate.account.move - -+ period_id : many2one -+ journal_id : many2one - -ValidateAccountMove->AccountJournal - - -*..0 -0..* - -ReportAccountSales - -report.account.sales - -+ name : char -+ account_id : many2one -+ month : selection -+ currency_id : many2one -+ product_id : many2one -+ period_id : many2one -+ quantity : float -+ amount_total : float - -ReportAccountSales->ResCurrency - - -*..0 -0..* - -ReportAccountSales->AccountPeriod - - -*..0 -0..* - -ReportAccountSales->AccountAccount - - -*..0 -0..* - -ReportAccountSales->ProductProduct - - -*..0 -0..* - -AccountOpenClosedFiscalyear - -account.open.closed.fiscalyear - -+ fyear_id : many2one - -ProcessTransitionAction->ProcessTransition - - -*..0 -0..* - -ResConfigView - -res.config.view - -+ progress : float -+ view : selection -+ name : char -+ config_logo : binary - -WorkflowInstance->Workflow - - -*..0 -0..* - -StockPartialMove - -stock.partial.move - -+ date : datetime -+ type : char - -AccountAddtmplWizard - -account.addtmpl.wizard - -+ cparent_id : many2one - -IrValues - -ir.values - -+ model_id : many2one -+ value_unpickle : text -+ user_id : many2one -+ name : char -+ key2 : char -+ object : boolean -+ company_id : many2one -+ value : text -+ meta : text -+ meta_unpickle : text -+ key : selection -+ model : char -+ res_id : integer -+ action_id : many2one - -IrValues->IrActionsActions - - -*..0 -0..* - -IrValues->ResCompany - - -*..0 -0..* - -IrValues->ResUsers - - -*..0 -0..* - -CrmPartner2opportunity - -crm.partner2opportunity - -+ partner_id : many2one -+ planned_revenue : float -+ name : char -+ probability : float - -BaseLanguageInstall - -base.language.install - -+ lang : selection -+ state : selection -+ overwrite : boolean -+ config_logo : binary - -ResLang - -res.lang - -+ date_format : char -+ direction : selection -+ code : char -+ name : char -+ thousands_sep : char -+ translatable : boolean -+ time_format : char -+ decimal_point : char -+ active : boolean -+ iso_code : char -+ grouping : char - -CalendarTodo - -calendar.todo - -+ allday : boolean -+ create_date : datetime -+ sequence : integer -+ we : boolean -+ base_calendar_alarm_id : many2one -+ rrule : char -+ duration : integer -+ organizer : char -+ id : integer -+ month_list : selection -+ user_id : many2one -+ vtimezone : selection -+ tu : boolean -+ week_list : selection -+ day : integer -+ recurrent_uid : integer -+ attendee_ids : many2many -+ state : selection -+ base_calendar_url : char -+ show_as : selection -+ location : char -+ th : boolean -+ exrule : char -+ exdate : text -+ fr : boolean -+ description : text -+ end_date : date -+ date : datetime -+ freq : selection -+ active : boolean -+ class : selection -+ count : integer -+ byday : selection -+ name : char -+ date_deadline : datetime -+ mo : boolean -+ interval : integer -+ su : boolean -+ alarm_id : many2one -+ recurrent_id : datetime -+ organizer_id : many2one -+ sa : boolean -+ rrule_type : selection -+ select1 : selection - -CalendarTodo->CalendarAttendee - - -*..* -*..* - -CalendarTodo->ResUsers - - -*..0 -0..* - -CalendarTodo->ResAlarm - - -*..0 -0..* - -CalendarTodo->CalendarAlarm - - -*..0 -0..* - -BaseModuleImport - -base.module.import - -+ module_name : char -+ module_file : binary -+ state : selection -+ config_logo : binary - -PartnerWizardSpam - -partner.wizard.spam - -+ text : text -+ email_from : char -+ subject : char - -AccountGeneralJournal - -account.general.journal - -+ chart_account_id : many2one -+ date_from : date -+ period_to : many2one -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ date_to : date -+ amount_currency : boolean -+ target_move : selection - -AccountGeneralJournal->AccountPeriod - - -*..0 -0..* - -AccountGeneralJournal->AccountJournal - - -*..* -*..* - -AccountGeneralJournal->AccountFiscalyear - - -*..0 -0..* - -PartnerSmsSend - -partner.sms.send - -+ text : text -+ user : char -+ password : char -+ app_id : char -+ mobile_to : char - -SaleAdvancePaymentInv - -sale.advance.payment.inv - -+ amount : float -+ product_id : many2one -+ qtty : float - -SaleAdvancePaymentInv->ProductProduct - - -*..0 -0..* - -BaseSetupInstaller - -base.setup.installer - -+ hr : boolean -+ marketing : boolean -+ product_expiry : boolean -+ account_voucher : boolean -+ report_designer : boolean -+ profile_tools : boolean -+ config_logo : binary -+ account_accountant : boolean -+ association : boolean -+ purchase : boolean -+ knowledge : boolean -+ auction : boolean -+ mrp : boolean -+ sale : boolean -+ project : boolean -+ progress : float -+ stock : boolean -+ crm : boolean -+ point_of_sale : boolean - -IrTranslation - -ir.translation - -+ lang : selection -+ src : text -+ name : char -+ type : selection -+ res_id : integer -+ value : text - -CrmLead2opportunityAction - -crm.lead2opportunity.action - -+ name : selection - -CrmPhonecall2opportunity - -crm.phonecall2opportunity - -+ partner_id : many2one -+ planned_revenue : float -+ name : char -+ probability : float - -AccountBsReport - -account.bs.report - -+ chart_account_id : many2one -+ date_from : date -+ period_to : many2one -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ display_type : boolean -+ reserve_account_id : many2one -+ date_to : date -+ display_account : selection -+ target_move : selection - -AccountBsReport->AccountPeriod - - -*..0 -0..* - -AccountBsReport->AccountJournal - - -*..* -*..* - -AccountBsReport->AccountFiscalyear - - -*..0 -0..* - -AccountBsReport->AccountAccount - - -*..0 -0..* - -BoardMenuCreate - -board.menu.create - -+ menu_name : char -+ menu_parent_id : many2one - -BoardMenuCreate->IrUiMenu - - -*..0 -0..* - -SaleInstaller - -sale.installer - -+ delivery : boolean -+ sale_journal : boolean -+ config_logo : binary -+ progress : float -+ sale_margin : boolean -+ sale_order_dates : boolean -+ sale_layout : boolean - -TempRange - -temp.range - -+ name : char - -StockInventoryLineSplit - -stock.inventory.line.split - -+ product_id : many2one -+ product_uom : many2one -+ line_ids : one2many -+ line_exist_ids : one2many -+ use_exist : boolean -+ qty : integer - -StockInventoryLineSplit->ProductUom - - -*..0 -0..* - -StockInventoryLineSplit->StockMoveSplitLinesExist - - -0..* -*..0 - -StockInventoryLineSplit->StockMoveSplitLines - - -0..* -*..0 - -CrmLeadReport - -crm.lead.report - -+ date_closed : date -+ create_date : datetime -+ probability : float -+ type_id : many2one -+ nbr : integer -+ opening_date : date -+ section_id : many2one -+ month : selection -+ delay_open : float -+ delay_close : float -+ creation_date : date -+ partner_id : many2one -+ categ_id : many2one -+ stage_id : many2one -+ user_id : many2one -+ name : char -+ probable_revenue : float -+ planned_revenue : float -+ country_id : many2one -+ company_id : many2one -+ day : char -+ priority : selection -+ channel_id : many2one -+ state : selection -+ type : selection -+ email : integer -+ delay_expected : float - -CrmLeadReport->ResCompany - - -*..0 -0..* - -CrmLeadReport->ResUsers - - -*..0 -0..* - -CrmLeadReport->ResPartner - - -*..0 -0..* - -CrmLeadReport->CrmCaseCateg - - -*..0 -0..* - -CrmLeadReport->CrmCaseSection - - -*..0 -0..* - -CrmLeadReport->ResCountry - - -*..0 -0..* - -CrmLeadReport->CrmCaseStage - - -*..0 -0..* - -CrmLeadReport->CrmCaseResourceType - - -*..0 -0..* - -CrmLeadReport->ResPartnerCanal - - -*..0 -0..* - -ReportAccount_typeSales - -report.account_type.sales - -+ name : char -+ user_type : many2one -+ month : selection -+ currency_id : many2one -+ product_id : many2one -+ period_id : many2one -+ quantity : float -+ amount_total : float - -ReportAccount_typeSales->ResCurrency - - -*..0 -0..* - -ReportAccount_typeSales->AccountPeriod - - -*..0 -0..* - -ReportAccount_typeSales->ProductProduct - - -*..0 -0..* - -ReportAccount_typeSales->AccountAccountType - - -*..0 -0..* - -AccountPlReport - -account.pl.report - -+ chart_account_id : many2one -+ date_from : date -+ period_to : many2one -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ display_type : boolean -+ date_to : date -+ display_account : selection -+ target_move : selection - -AccountPlReport->AccountPeriod - - -*..0 -0..* - -AccountPlReport->AccountJournal - - -*..* -*..* - -AccountPlReport->AccountFiscalyear - - -*..0 -0..* - -AccountPeriodClose - -account.period.close - -+ sure : boolean - -ReportAgedReceivable - -report.aged.receivable - -+ balance : float -+ name : char - -StockWarehouseOrderpoint - -stock.warehouse.orderpoint - -+ product_max_qty : float -+ product_min_qty : float -+ qty_multiple : integer -+ procurement_id : many2one -+ name : char -+ product_uom : many2one -+ company_id : many2one -+ warehouse_id : many2one -+ logic : selection -+ active : boolean -+ location_id : many2one -+ product_id : many2one - -StockWarehouseOrderpoint->ResCompany - - -*..0 -0..* - -StockWarehouseOrderpoint->ProductProduct - - -*..0 -0..* - -StockWarehouseOrderpoint->ProductUom - - -*..0 -0..* - -StockWarehouseOrderpoint->StockLocation - - -*..0 -0..* - -StockWarehouseOrderpoint->StockWarehouse - - -*..0 -0..* - -StockWarehouseOrderpoint->ProcurementOrder - - -*..0 -0..* - -BaseModuleUpgrade - -base.module.upgrade - -+ module_info : text - -AccountPrintJournal - -account.print.journal - -+ chart_account_id : many2one -+ sort_selection : selection -+ date_from : date -+ period_to : many2one -+ journal_ids : many2many -+ filter : selection -+ period_from : many2one -+ fiscalyear_id : many2one -+ date_to : date -+ amount_currency : boolean -+ target_move : selection - -AccountPrintJournal->AccountPeriod - - -*..0 -0..* - -AccountPrintJournal->AccountJournal - - -*..* -*..* - -AccountPrintJournal->AccountFiscalyear - - -*..0 -0..* - -AccountChart - -account.chart - -+ period_from : many2one -+ period_to : many2one -+ target_move : selection -+ fiscalyear : many2one - -AccountChart->AccountPeriod - - -*..0 -0..* - -AccountChart->AccountFiscalyear - - -*..0 -0..* - -IrExportsLine - -ir.exports.line - -+ export_id : many2one -+ name : char - -ResRequestLink - -res.request.link - -+ priority : integer -+ object : char -+ name : char - -SaleMakeInvoice - -sale.make.invoice - -+ grouped : boolean -+ invoice_date : date - - - diff --git a/examples/basic.py b/examples/basic.py index b0c16b2..5dfd4b7 100644 --- a/examples/basic.py +++ b/examples/basic.py @@ -1,6 +1,8 @@ from ooop import OOOP o = OOOP(dbname="testv6") +#Pyro Demo +#o = OOOP(user='admin',pwd='admin',dbname='zikzakmedia',uri='localhost',port=8071,protocol='pyro') partners = o.ResPartner.all() for partner in partners: - print "id: %d, name: %s" % ( partner._ref, partner.name ) \ No newline at end of file + print "id: %d, name: %s" % ( partner._ref, partner.name ) diff --git a/ooop.py b/ooop.py old mode 100644 new mode 100755 index c99a206..5ad8f0b --- a/ooop.py +++ b/ooop.py @@ -32,6 +32,12 @@ except: pydot = False +# check if pyro is installed +try: + import Pyro.core +except: + pyro = False + __author__ = "Pedro Gracia " __license__ = "GPLv3+" __version__ = "0.2.3" @@ -111,13 +117,14 @@ def execute(self, *args, **kargs): class OOOP: """ Main class to manage xml-rpc comunitacion with openerp-server """ def __init__(self, user='admin', pwd='admin', dbname='openerp', - uri='http://localhost', port=8069, debug=False, - exe=False, active=True, **kwargs): + uri='http://localhost', port=8069, protocol='xmlrpc', debug=False, + exe=False, active=True, lang='en_US', **kwargs): self.user = user # default: 'admin' self.pwd = pwd # default: 'admin' self.dbname = dbname # default: 'openerp' self.uri = uri self.port = port + self.protocol = protocol # default: 'xmlrpc' self.debug = debug self.exe = exe self.active = active @@ -127,13 +134,18 @@ def __init__(self, user='admin', pwd='admin', dbname='openerp', self.uid = None self.models = {} self.fields = {} + self.proxy = False + self.lang = lang #has to be uid, cr, parent (the openerp model to get the pool) if len(kwargs) == 3: self.uid = kwargs['uid'] self.objectsock = objectsock_mock(kwargs['parent'], kwargs['cr']) else: - self.connect() + if protocol == 'pyro': + self.connect_pyro() + else: + self.connect() self.load_models() @@ -147,46 +159,92 @@ def login(self, dbname, user, pwd): self.commonsock = xmlrpclib.ServerProxy('%s:%i/xmlrpc/common' % (self.uri, self.port)) return self.commonsock.login(dbname, user, pwd) + def connect_pyro(self): + """login and sockets to pyro services: common, object and report""" + url = 'PYROLOC://%s:%s/rpc' % (self.uri,self.port) + self.proxy = Pyro.core.getProxyForURI(url) + self.uid = self.proxy.dispatch( 'common', 'login', self.dbname, self.user, self.pwd) + self.reportsock = False + def execute(self, model, *args): if self.debug: print "DEBUG [execute]:", model, args - return self.objectsock.execute(self.dbname, self.uid, self.pwd, model, *args) + if self.protocol == 'pyro': + result = self.proxy.dispatch( 'object', 'execute', self.dbname, self.uid, self.pwd, model, *args) + else: + result = self.objectsock.execute(self.dbname, self.uid, self.pwd, model, *args) + return result def create(self, model, data): """ create a new register """ + context = {'lang':self.lang} if self.debug: print "DEBUG [create]:", model, data - return self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'create', data) + if 'id' in data: + del data['id'] + if self.protocol == 'pyro': + result = self.proxy.dispatch( 'object', 'execute', self.dbname, self.uid, self.pwd, model, 'create', data, context) + else: + result = self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'create', data, context) + return result def unlink(self, model, ids): """ remove register """ if self.debug: print "DEBUG [unlink]:", model, ids - return self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'unlink', ids) + if isinstance(ids, int): + ids = [ids] + if self.protocol == 'pyro': + result = self.proxy.dispatch( 'object', 'execute', self.dbname, self.uid, self.pwd, model, 'unlink', ids) + else: + result = self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'unlink', ids) + return result def write(self, model, ids, value): """ update register """ + context = {'lang':self.lang} if self.debug: print "DEBUG [write]:", model, ids, value - return self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'write', ids, value) + if isinstance(ids, int): + ids = [ids] + if self.protocol == 'pyro': + result = self.proxy.dispatch( 'object', 'execute', self.dbname, self.uid, self.pwd, model, 'write', ids, value, context) + else: + result = self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'write', ids, value, context) + return result def read(self, model, ids, fields=[]): """ update register """ + context = {'lang':self.lang} if self.debug: print "DEBUG [read]:", model, ids, fields - return self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'read', ids, fields) + if self.protocol == 'pyro': + result = self.proxy.dispatch( 'object', 'execute', self.dbname, self.uid, self.pwd, model, 'read', ids, fields, context) + else: + result = self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'read', ids, fields, context) + return result def read_all(self, model, fields=[]): """ update register """ + context = {'lang':self.lang} if self.debug: print "DEBUG [read_all]:", model, fields - return self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'read', self.all(model), fields) + if self.protocol == 'pyro': + result = self.proxy.dispatch( 'object', 'execute', self.dbname, self.uid, self.pwd, model, 'read', self.all(model), fields, context) + else: + result = self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'read', self.all(model), fields, context) + return result - def search(self, model, query): + def search(self, model, query, offset=0, limit=999, order=''): """ return ids that match with 'query' """ + context = {'lang':self.lang} if self.debug: - print "DEBUG [search]:", model, query - return self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'search', query) + print "DEBUG [search]:", model, query, offset, limit, order + if self.protocol == 'pyro': + result = self.proxy.dispatch( 'object', 'execute', self.dbname, self.uid, self.pwd, model, 'search', query, offset, limit, order, context) + else: + result = self.objectsock.execute(self.dbname, self.uid, self.pwd, model, 'search', query, offset, limit, order, context) + return result # TODO: verify if remove this def custom_execute(self, model, ids, remote_method, data): @@ -451,15 +509,27 @@ def all(self, fields=[], offset=0, limit=999999, as_list=False): def filter(self, fields=[], as_list=False, **kargs): q = [] # query dict + offset = 0 + limit = 999 + order = '' for key, value in kargs.items(): - if not '__' in key: - op = '=' - else: + if key == 'offset': + if int(value): + offset = value + elif key == 'limit': + if int(value): + limit = value + elif key == 'order': + order = value + elif '__' in key: i = key.find('__') op = OPERATORS[key[i+2:]] key = key[:i] - q.append(('%s' % key, op, value)) - ids = self._ooop.search(self._model, q) + q.append(('%s' % key, op, value)) + else: + op = '=' + q.append(('%s' % key, op, value)) + ids = self._ooop.search(self._model, q, offset, limit, order) if as_list: return self.read(ids, fields) return List(self, ids) @@ -520,7 +590,10 @@ def __init__(self, manager, ref=None, model=None, copy=False, data=None, fields= # convert DateTime instance to datetime.datetime object for i in default_values: if self.fields[i]['ttype'] == 'datetime': - t = default_values[i].timetuple() + if isinstance(default_values[i], str): + t = datetime.strptime(default_values[i], "%Y-%m-%d %H:%M:%S").timetuple() + else: + t = default_values[i].timetuple() default_values[i] = datetime(t.tm_year, t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec) # active by default ? if self._ooop.active: @@ -539,7 +612,7 @@ def init_values(self, *args, **kargs): else: self.__dict__[name] = List(Manager(relation, self._ooop), data=self, model=relation) elif ttype == 'many2one': - if name in keys: + if name in keys and kargs[name]: # manager, ref=None, model=None, copy=False instance = Data(Manager(relation, self._ooop), kargs[name], relation) self.INSTANCES['%s:%s' % (relation, kargs[name])] = instance @@ -674,7 +747,7 @@ def save(self): for i in self.__dict__[name]: self.INSTANCES['%s:%s' % (relation, i._ref)] = i elif ttype == 'many2one': - if self.__dict__[name]: + if self.__dict__[name] and 'name' in dir(self.__dict__[name]): data[name] = self.__dict__[name]._ref # update __name and INSTANCES (cache) self.__dict__['__%s' % name] = [self.__dict__[name]._ref, self.__dict__[name].name]