-- Name: product_template_attribute_value product_template_attribute_value_attribute_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template_attribute_value
    ADD CONSTRAINT product_template_attribute_value_attribute_id_fkey FOREIGN KEY (attribute_id) REFERENCES public.product_attribute(id) ON DELETE SET NULL;


--
-- Name: product_template_attribute_value product_template_attribute_value_attribute_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template_attribute_value
    ADD CONSTRAINT product_template_attribute_value_attribute_line_id_fkey FOREIGN KEY (attribute_line_id) REFERENCES public.product_template_attribute_line(id) ON DELETE CASCADE;


--
-- Name: product_template_attribute_value product_template_attribute_value_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template_attribute_value
    ADD CONSTRAINT product_template_attribute_value_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: product_template_attribute_value product_template_attribute_value_product_tmpl_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template_attribute_value
    ADD CONSTRAINT product_template_attribute_value_product_tmpl_id_fkey FOREIGN KEY (product_tmpl_id) REFERENCES public.product_template(id) ON DELETE SET NULL;


--
-- Name: product_template_attribute_value_purchase_order_line_rel product_template_attribute_value_pu_purchase_order_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template_attribute_value_purchase_order_line_rel
    ADD CONSTRAINT product_template_attribute_value_pu_purchase_order_line_id_fkey FOREIGN KEY (purchase_order_line_id) REFERENCES public.purchase_order_line(id) ON DELETE CASCADE;


--
-- Name: product_template_attribute_value_sale_order_line_rel product_template_attribute_value_sale_o_sale_order_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template_attribute_value_sale_order_line_rel
    ADD CONSTRAINT product_template_attribute_value_sale_o_sale_order_line_id_fkey FOREIGN KEY (sale_order_line_id) REFERENCES public.sale_order_line(id) ON DELETE CASCADE;


--
-- Name: product_template_attribute_value product_template_attribute_value_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template_attribute_value
    ADD CONSTRAINT product_template_attribute_value_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: product_template product_template_categ_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template
    ADD CONSTRAINT product_template_categ_id_fkey FOREIGN KEY (categ_id) REFERENCES public.product_category(id) ON DELETE RESTRICT;


--
-- Name: product_template product_template_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template
    ADD CONSTRAINT product_template_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: product_template product_template_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template
    ADD CONSTRAINT product_template_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: product_template product_template_uom_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template
    ADD CONSTRAINT product_template_uom_id_fkey FOREIGN KEY (uom_id) REFERENCES public.uom_uom(id) ON DELETE RESTRICT;


--
-- Name: product_template product_template_uom_po_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template
    ADD CONSTRAINT product_template_uom_po_id_fkey FOREIGN KEY (uom_po_id) REFERENCES public.uom_uom(id) ON DELETE RESTRICT;


--
-- Name: product_template product_template_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_template
    ADD CONSTRAINT product_template_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: product_variant_combination product_variant_combination_product_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_variant_combination
    ADD CONSTRAINT product_variant_combination_product_product_id_fkey FOREIGN KEY (product_product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: product_variant_combination product_variant_combination_product_template_attribute_val_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.product_variant_combination
    ADD CONSTRAINT product_variant_combination_product_template_attribute_val_fkey FOREIGN KEY (product_template_attribute_value_id) REFERENCES public.product_template_attribute_value(id) ON DELETE RESTRICT;


--
-- Name: project_collaborator project_collaborator_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_collaborator
    ADD CONSTRAINT project_collaborator_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_collaborator project_collaborator_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_collaborator
    ADD CONSTRAINT project_collaborator_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE RESTRICT;


--
-- Name: project_collaborator project_collaborator_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_collaborator
    ADD CONSTRAINT project_collaborator_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE RESTRICT;


--
-- Name: project_collaborator project_collaborator_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_collaborator
    ADD CONSTRAINT project_collaborator_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_create_invoice project_create_invoice_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_create_invoice
    ADD CONSTRAINT project_create_invoice_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_create_invoice project_create_invoice_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_create_invoice
    ADD CONSTRAINT project_create_invoice_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE CASCADE;


--
-- Name: project_create_invoice project_create_invoice_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_create_invoice
    ADD CONSTRAINT project_create_invoice_sale_order_id_fkey FOREIGN KEY (sale_order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: project_create_invoice project_create_invoice_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_create_invoice
    ADD CONSTRAINT project_create_invoice_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_favorite_user_rel project_favorite_user_rel_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_favorite_user_rel
    ADD CONSTRAINT project_favorite_user_rel_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE CASCADE;


--
-- Name: project_favorite_user_rel project_favorite_user_rel_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_favorite_user_rel
    ADD CONSTRAINT project_favorite_user_rel_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE CASCADE;


--
-- Name: project_milestone project_milestone_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_milestone
    ADD CONSTRAINT project_milestone_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_milestone project_milestone_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_milestone
    ADD CONSTRAINT project_milestone_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE CASCADE;


--
-- Name: project_milestone project_milestone_sale_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_milestone
    ADD CONSTRAINT project_milestone_sale_line_id_fkey FOREIGN KEY (sale_line_id) REFERENCES public.sale_order_line(id) ON DELETE SET NULL;


--
-- Name: project_milestone project_milestone_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_milestone
    ADD CONSTRAINT project_milestone_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_project project_project_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_account_id_fkey FOREIGN KEY (account_id) REFERENCES public.account_analytic_account(id) ON DELETE SET NULL;


--
-- Name: project_project project_project_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_alias_id_fkey FOREIGN KEY (alias_id) REFERENCES public.mail_alias(id) ON DELETE RESTRICT;


--
-- Name: project_project project_project_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: project_project project_project_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_project project_project_last_update_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_last_update_id_fkey FOREIGN KEY (last_update_id) REFERENCES public.project_update(id) ON DELETE SET NULL;


--
-- Name: project_project project_project_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: project_project_project_tags_rel project_project_project_tags_rel_project_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_project_tags_rel
    ADD CONSTRAINT project_project_project_tags_rel_project_project_id_fkey FOREIGN KEY (project_project_id) REFERENCES public.project_project(id) ON DELETE CASCADE;


--
-- Name: project_project_project_tags_rel project_project_project_tags_rel_project_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_project_tags_rel
    ADD CONSTRAINT project_project_project_tags_rel_project_tags_id_fkey FOREIGN KEY (project_tags_id) REFERENCES public.project_tags(id) ON DELETE CASCADE;


--
-- Name: project_project_project_task_type_delete_wizard_rel project_project_project_task__project_task_type_delete_wiz_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_project_task_type_delete_wizard_rel
    ADD CONSTRAINT project_project_project_task__project_task_type_delete_wiz_fkey FOREIGN KEY (project_task_type_delete_wizard_id) REFERENCES public.project_task_type_delete_wizard(id) ON DELETE CASCADE;


--
-- Name: project_project_project_task_type_delete_wizard_rel project_project_project_task_type_delet_project_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_project_task_type_delete_wizard_rel
    ADD CONSTRAINT project_project_project_task_type_delet_project_project_id_fkey FOREIGN KEY (project_project_id) REFERENCES public.project_project(id) ON DELETE CASCADE;


--
-- Name: project_project project_project_reinvoiced_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_reinvoiced_sale_order_id_fkey FOREIGN KEY (reinvoiced_sale_order_id) REFERENCES public.sale_order(id) ON DELETE SET NULL;


--
-- Name: project_project project_project_sale_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_sale_line_id_fkey FOREIGN KEY (sale_line_id) REFERENCES public.sale_order_line(id) ON DELETE SET NULL;


--
-- Name: project_project_stage project_project_stage_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_stage
    ADD CONSTRAINT project_project_stage_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: project_project_stage project_project_stage_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_stage
    ADD CONSTRAINT project_project_stage_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_project_stage_delete_wizard project_project_stage_delete_wizard_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_stage_delete_wizard
    ADD CONSTRAINT project_project_stage_delete_wizard_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_project_stage_delete_wizard project_project_stage_delete_wizard_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_stage_delete_wizard
    ADD CONSTRAINT project_project_stage_delete_wizard_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_project project_project_stage_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_stage_id_fkey FOREIGN KEY (stage_id) REFERENCES public.project_project_stage(id) ON DELETE RESTRICT;


--
-- Name: project_project_stage project_project_stage_mail_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_stage
    ADD CONSTRAINT project_project_stage_mail_template_id_fkey FOREIGN KEY (mail_template_id) REFERENCES public.mail_template(id) ON DELETE SET NULL;


--
-- Name: project_project_stage_project_project_stage_delete_wizard_rel project_project_stage_project_pro_project_project_stage_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_stage_project_project_stage_delete_wizard_rel
    ADD CONSTRAINT project_project_stage_project_pro_project_project_stage_id_fkey FOREIGN KEY (project_project_stage_id) REFERENCES public.project_project_stage(id) ON DELETE CASCADE;


--
-- Name: project_project_stage_project_project_stage_delete_wizard_rel project_project_stage_project_project_project_stage_delete_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_stage_project_project_stage_delete_wizard_rel
    ADD CONSTRAINT project_project_stage_project_project_project_stage_delete_fkey FOREIGN KEY (project_project_stage_delete_wizard_id) REFERENCES public.project_project_stage_delete_wizard(id) ON DELETE CASCADE;


--
-- Name: project_project_stage project_project_stage_sms_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_stage
    ADD CONSTRAINT project_project_stage_sms_template_id_fkey FOREIGN KEY (sms_template_id) REFERENCES public.sms_template(id) ON DELETE SET NULL;


--
-- Name: project_project_stage project_project_stage_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project_stage
    ADD CONSTRAINT project_project_stage_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_project project_project_timesheet_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_timesheet_product_id_fkey FOREIGN KEY (timesheet_product_id) REFERENCES public.product_product(id) ON DELETE SET NULL;


--
-- Name: project_project project_project_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_project project_project_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_project
    ADD CONSTRAINT project_project_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_sale_line_employee_map project_sale_line_employee_map_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_sale_line_employee_map
    ADD CONSTRAINT project_sale_line_employee_map_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_sale_line_employee_map project_sale_line_employee_map_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_sale_line_employee_map
    ADD CONSTRAINT project_sale_line_employee_map_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE SET NULL;


--
-- Name: project_sale_line_employee_map project_sale_line_employee_map_employee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_sale_line_employee_map
    ADD CONSTRAINT project_sale_line_employee_map_employee_id_fkey FOREIGN KEY (employee_id) REFERENCES public.hr_employee(id) ON DELETE RESTRICT;


--
-- Name: project_sale_line_employee_map project_sale_line_employee_map_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_sale_line_employee_map
    ADD CONSTRAINT project_sale_line_employee_map_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE RESTRICT;


--
-- Name: project_sale_line_employee_map project_sale_line_employee_map_sale_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_sale_line_employee_map
    ADD CONSTRAINT project_sale_line_employee_map_sale_line_id_fkey FOREIGN KEY (sale_line_id) REFERENCES public.sale_order_line(id) ON DELETE SET NULL;


--
-- Name: project_sale_line_employee_map project_sale_line_employee_map_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_sale_line_employee_map
    ADD CONSTRAINT project_sale_line_employee_map_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_share_collaborator_wizard project_share_collaborator_wizard_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_share_collaborator_wizard
    ADD CONSTRAINT project_share_collaborator_wizard_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_share_collaborator_wizard project_share_collaborator_wizard_parent_wizard_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_share_collaborator_wizard
    ADD CONSTRAINT project_share_collaborator_wizard_parent_wizard_id_fkey FOREIGN KEY (parent_wizard_id) REFERENCES public.project_share_wizard(id) ON DELETE SET NULL;


--
-- Name: project_share_collaborator_wizard project_share_collaborator_wizard_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_share_collaborator_wizard
    ADD CONSTRAINT project_share_collaborator_wizard_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE CASCADE;


--
-- Name: project_share_collaborator_wizard project_share_collaborator_wizard_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_share_collaborator_wizard
    ADD CONSTRAINT project_share_collaborator_wizard_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_share_wizard project_share_wizard_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_share_wizard
    ADD CONSTRAINT project_share_wizard_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_share_wizard_res_partner_rel project_share_wizard_res_partner_r_project_share_wizard_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_share_wizard_res_partner_rel
    ADD CONSTRAINT project_share_wizard_res_partner_r_project_share_wizard_id_fkey FOREIGN KEY (project_share_wizard_id) REFERENCES public.project_share_wizard(id) ON DELETE CASCADE;


--
-- Name: project_share_wizard_res_partner_rel project_share_wizard_res_partner_rel_res_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_share_wizard_res_partner_rel
    ADD CONSTRAINT project_share_wizard_res_partner_rel_res_partner_id_fkey FOREIGN KEY (res_partner_id) REFERENCES public.res_partner(id) ON DELETE CASCADE;


--
-- Name: project_share_wizard project_share_wizard_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_share_wizard
    ADD CONSTRAINT project_share_wizard_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_tags project_tags_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_tags
    ADD CONSTRAINT project_tags_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_tags_project_task_rel project_tags_project_task_rel_project_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_tags_project_task_rel
    ADD CONSTRAINT project_tags_project_task_rel_project_tags_id_fkey FOREIGN KEY (project_tags_id) REFERENCES public.project_tags(id) ON DELETE CASCADE;


--
-- Name: project_tags_project_task_rel project_tags_project_task_rel_project_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_tags_project_task_rel
    ADD CONSTRAINT project_tags_project_task_rel_project_task_id_fkey FOREIGN KEY (project_task_id) REFERENCES public.project_task(id) ON DELETE CASCADE;


--
-- Name: project_tags project_tags_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_tags
    ADD CONSTRAINT project_tags_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_displayed_image_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_displayed_image_id_fkey FOREIGN KEY (displayed_image_id) REFERENCES public.ir_attachment(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_milestone_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_milestone_id_fkey FOREIGN KEY (milestone_id) REFERENCES public.project_milestone(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES public.project_task(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE SET NULL;


--
-- Name: project_task_recurrence project_task_recurrence_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_recurrence
    ADD CONSTRAINT project_task_recurrence_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_recurrence_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_recurrence_id_fkey FOREIGN KEY (recurrence_id) REFERENCES public.project_task_recurrence(id) ON DELETE SET NULL;


--
-- Name: project_task_recurrence project_task_recurrence_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_recurrence
    ADD CONSTRAINT project_task_recurrence_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_sale_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_sale_line_id_fkey FOREIGN KEY (sale_line_id) REFERENCES public.sale_order_line(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_sale_order_id_fkey FOREIGN KEY (sale_order_id) REFERENCES public.sale_order(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_stage_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_stage_id_fkey FOREIGN KEY (stage_id) REFERENCES public.project_task_type(id) ON DELETE RESTRICT;


--
-- Name: project_task_type project_task_type_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type
    ADD CONSTRAINT project_task_type_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task_type_delete_wizard project_task_type_delete_wizard_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type_delete_wizard
    ADD CONSTRAINT project_task_type_delete_wizard_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task_type_delete_wizard project_task_type_delete_wizard_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type_delete_wizard
    ADD CONSTRAINT project_task_type_delete_wizard_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task_type project_task_type_mail_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type
    ADD CONSTRAINT project_task_type_mail_template_id_fkey FOREIGN KEY (mail_template_id) REFERENCES public.mail_template(id) ON DELETE SET NULL;


--
-- Name: project_task_type_project_task_type_delete_wizard_rel project_task_type_project_tas_project_task_type_delete_wiz_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type_project_task_type_delete_wizard_rel
    ADD CONSTRAINT project_task_type_project_tas_project_task_type_delete_wiz_fkey FOREIGN KEY (project_task_type_delete_wizard_id) REFERENCES public.project_task_type_delete_wizard(id) ON DELETE CASCADE;


--
-- Name: project_task_type_project_task_type_delete_wizard_rel project_task_type_project_task_type_d_project_task_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type_project_task_type_delete_wizard_rel
    ADD CONSTRAINT project_task_type_project_task_type_d_project_task_type_id_fkey FOREIGN KEY (project_task_type_id) REFERENCES public.project_task_type(id) ON DELETE CASCADE;


--
-- Name: project_task_type project_task_type_rating_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type
    ADD CONSTRAINT project_task_type_rating_template_id_fkey FOREIGN KEY (rating_template_id) REFERENCES public.mail_template(id) ON DELETE SET NULL;


--
-- Name: project_task_type_rel project_task_type_rel_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type_rel
    ADD CONSTRAINT project_task_type_rel_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE CASCADE;


--
-- Name: project_task_type_rel project_task_type_rel_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type_rel
    ADD CONSTRAINT project_task_type_rel_type_id_fkey FOREIGN KEY (type_id) REFERENCES public.project_task_type(id) ON DELETE CASCADE;


--
-- Name: project_task_type project_task_type_sms_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type
    ADD CONSTRAINT project_task_type_sms_template_id_fkey FOREIGN KEY (sms_template_id) REFERENCES public.sms_template(id) ON DELETE SET NULL;


--
-- Name: project_task_type project_task_type_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type
    ADD CONSTRAINT project_task_type_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task_type project_task_type_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_type
    ADD CONSTRAINT project_task_type_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task_user_rel project_task_user_rel_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_user_rel
    ADD CONSTRAINT project_task_user_rel_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task_user_rel project_task_user_rel_stage_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_user_rel
    ADD CONSTRAINT project_task_user_rel_stage_id_fkey FOREIGN KEY (stage_id) REFERENCES public.project_task_type(id) ON DELETE RESTRICT;


--
-- Name: project_task_user_rel project_task_user_rel_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_user_rel
    ADD CONSTRAINT project_task_user_rel_task_id_fkey FOREIGN KEY (task_id) REFERENCES public.project_task(id) ON DELETE CASCADE;


--
-- Name: project_task_user_rel project_task_user_rel_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_user_rel
    ADD CONSTRAINT project_task_user_rel_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE CASCADE;


--
-- Name: project_task_user_rel project_task_user_rel_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task_user_rel
    ADD CONSTRAINT project_task_user_rel_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_task project_task_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_task
    ADD CONSTRAINT project_task_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_update project_update_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_update
    ADD CONSTRAINT project_update_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: project_update project_update_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_update
    ADD CONSTRAINT project_update_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE RESTRICT;


--
-- Name: project_update project_update_uom_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_update
    ADD CONSTRAINT project_update_uom_id_fkey FOREIGN KEY (uom_id) REFERENCES public.uom_uom(id) ON DELETE SET NULL;


--
-- Name: project_update project_update_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_update
    ADD CONSTRAINT project_update_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE RESTRICT;


--
-- Name: project_update project_update_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.project_update
    ADD CONSTRAINT project_update_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: purchase_order purchase_order_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: purchase_order purchase_order_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: purchase_order purchase_order_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE RESTRICT;


--
-- Name: purchase_order purchase_order_dest_address_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_dest_address_id_fkey FOREIGN KEY (dest_address_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: purchase_order purchase_order_fiscal_position_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_fiscal_position_id_fkey FOREIGN KEY (fiscal_position_id) REFERENCES public.account_fiscal_position(id) ON DELETE SET NULL;


--
-- Name: purchase_order purchase_order_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.procurement_group(id) ON DELETE SET NULL;


--
-- Name: purchase_order purchase_order_incoterm_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_incoterm_id_fkey FOREIGN KEY (incoterm_id) REFERENCES public.account_incoterms(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.procurement_group(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_location_final_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_location_final_id_fkey FOREIGN KEY (location_final_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_order_id_fkey FOREIGN KEY (order_id) REFERENCES public.purchase_order(id) ON DELETE CASCADE;


--
-- Name: purchase_order_line purchase_order_line_orderpoint_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_orderpoint_id_fkey FOREIGN KEY (orderpoint_id) REFERENCES public.stock_warehouse_orderpoint(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE RESTRICT;


--
-- Name: purchase_order_line purchase_order_line_product_packaging_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_product_packaging_id_fkey FOREIGN KEY (product_packaging_id) REFERENCES public.product_packaging(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_product_uom_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_product_uom_fkey FOREIGN KEY (product_uom) REFERENCES public.uom_uom(id) ON DELETE RESTRICT;


--
-- Name: purchase_order_line purchase_order_line_sale_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_sale_line_id_fkey FOREIGN KEY (sale_line_id) REFERENCES public.sale_order_line(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_sale_order_id_fkey FOREIGN KEY (sale_order_id) REFERENCES public.sale_order(id) ON DELETE SET NULL;


--
-- Name: purchase_order_line purchase_order_line_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_line
    ADD CONSTRAINT purchase_order_line_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: purchase_order purchase_order_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE RESTRICT;


--
-- Name: purchase_order purchase_order_payment_term_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_payment_term_id_fkey FOREIGN KEY (payment_term_id) REFERENCES public.account_payment_term(id) ON DELETE SET NULL;


--
-- Name: purchase_order purchase_order_picking_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_picking_type_id_fkey FOREIGN KEY (picking_type_id) REFERENCES public.stock_picking_type(id) ON DELETE RESTRICT;


--
-- Name: purchase_order purchase_order_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE SET NULL;


--
-- Name: purchase_order_stock_picking_rel purchase_order_stock_picking_rel_purchase_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_stock_picking_rel
    ADD CONSTRAINT purchase_order_stock_picking_rel_purchase_order_id_fkey FOREIGN KEY (purchase_order_id) REFERENCES public.purchase_order(id) ON DELETE CASCADE;


--
-- Name: purchase_order_stock_picking_rel purchase_order_stock_picking_rel_stock_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order_stock_picking_rel
    ADD CONSTRAINT purchase_order_stock_picking_rel_stock_picking_id_fkey FOREIGN KEY (stock_picking_id) REFERENCES public.stock_picking(id) ON DELETE CASCADE;


--
-- Name: purchase_order purchase_order_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: purchase_order purchase_order_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.purchase_order
    ADD CONSTRAINT purchase_order_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: quotation_document quotation_document_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.quotation_document
    ADD CONSTRAINT quotation_document_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: quotation_document quotation_document_ir_attachment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.quotation_document
    ADD CONSTRAINT quotation_document_ir_attachment_id_fkey FOREIGN KEY (ir_attachment_id) REFERENCES public.ir_attachment(id) ON DELETE CASCADE;


--
-- Name: quotation_document_sale_order_rel quotation_document_sale_order_rel_quotation_document_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.quotation_document_sale_order_rel
    ADD CONSTRAINT quotation_document_sale_order_rel_quotation_document_id_fkey FOREIGN KEY (quotation_document_id) REFERENCES public.quotation_document(id) ON DELETE CASCADE;


--
-- Name: quotation_document_sale_order_rel quotation_document_sale_order_rel_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.quotation_document_sale_order_rel
    ADD CONSTRAINT quotation_document_sale_order_rel_sale_order_id_fkey FOREIGN KEY (sale_order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: quotation_document_sale_pdf_form_field_rel quotation_document_sale_pdf_form_fi_sale_pdf_form_field_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.quotation_document_sale_pdf_form_field_rel
    ADD CONSTRAINT quotation_document_sale_pdf_form_fi_sale_pdf_form_field_id_fkey FOREIGN KEY (sale_pdf_form_field_id) REFERENCES public.sale_pdf_form_field(id) ON DELETE CASCADE;


--
-- Name: quotation_document_sale_pdf_form_field_rel quotation_document_sale_pdf_form_fie_quotation_document_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.quotation_document_sale_pdf_form_field_rel
    ADD CONSTRAINT quotation_document_sale_pdf_form_fie_quotation_document_id_fkey FOREIGN KEY (quotation_document_id) REFERENCES public.quotation_document(id) ON DELETE CASCADE;


--
-- Name: quotation_document quotation_document_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.quotation_document
    ADD CONSTRAINT quotation_document_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: rating_rating rating_rating_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rating_rating
    ADD CONSTRAINT rating_rating_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: rating_rating rating_rating_message_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rating_rating
    ADD CONSTRAINT rating_rating_message_id_fkey FOREIGN KEY (message_id) REFERENCES public.mail_message(id) ON DELETE CASCADE;


--
-- Name: rating_rating rating_rating_parent_res_model_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rating_rating
    ADD CONSTRAINT rating_rating_parent_res_model_id_fkey FOREIGN KEY (parent_res_model_id) REFERENCES public.ir_model(id) ON DELETE CASCADE;


--
-- Name: rating_rating rating_rating_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rating_rating
    ADD CONSTRAINT rating_rating_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: rating_rating rating_rating_publisher_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rating_rating
    ADD CONSTRAINT rating_rating_publisher_id_fkey FOREIGN KEY (publisher_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: rating_rating rating_rating_rated_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rating_rating
    ADD CONSTRAINT rating_rating_rated_partner_id_fkey FOREIGN KEY (rated_partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: rating_rating rating_rating_res_model_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rating_rating
    ADD CONSTRAINT rating_rating_res_model_id_fkey FOREIGN KEY (res_model_id) REFERENCES public.ir_model(id) ON DELETE CASCADE;


--
-- Name: rating_rating rating_rating_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rating_rating
    ADD CONSTRAINT rating_rating_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: rel_badge_auth_users rel_badge_auth_users_gamification_badge_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rel_badge_auth_users
    ADD CONSTRAINT rel_badge_auth_users_gamification_badge_id_fkey FOREIGN KEY (gamification_badge_id) REFERENCES public.gamification_badge(id) ON DELETE CASCADE;


--
-- Name: rel_badge_auth_users rel_badge_auth_users_res_users_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rel_badge_auth_users
    ADD CONSTRAINT rel_badge_auth_users_res_users_id_fkey FOREIGN KEY (res_users_id) REFERENCES public.res_users(id) ON DELETE CASCADE;


--
-- Name: rel_modules_langexport rel_modules_langexport_module_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rel_modules_langexport
    ADD CONSTRAINT rel_modules_langexport_module_id_fkey FOREIGN KEY (module_id) REFERENCES public.ir_module_module(id) ON DELETE CASCADE;


--
-- Name: rel_modules_langexport rel_modules_langexport_wiz_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rel_modules_langexport
    ADD CONSTRAINT rel_modules_langexport_wiz_id_fkey FOREIGN KEY (wiz_id) REFERENCES public.base_language_export(id) ON DELETE CASCADE;


--
-- Name: rel_server_actions rel_server_actions_action_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rel_server_actions
    ADD CONSTRAINT rel_server_actions_action_id_fkey FOREIGN KEY (action_id) REFERENCES public.ir_act_server(id) ON DELETE CASCADE;


--
-- Name: rel_server_actions rel_server_actions_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rel_server_actions
    ADD CONSTRAINT rel_server_actions_server_id_fkey FOREIGN KEY (server_id) REFERENCES public.ir_act_server(id) ON DELETE CASCADE;


--
-- Name: relsum_machine relsum_machine_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_machine
    ADD CONSTRAINT relsum_machine_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: relsum_machine relsum_machine_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_machine
    ADD CONSTRAINT relsum_machine_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: relsum_machine relsum_machine_planta_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_machine
    ADD CONSTRAINT relsum_machine_planta_id_fkey FOREIGN KEY (planta_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: relsum_machine relsum_machine_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_machine
    ADD CONSTRAINT relsum_machine_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: relsum_petty_cash_ref relsum_petty_cash_ref_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_petty_cash_ref
    ADD CONSTRAINT relsum_petty_cash_ref_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: relsum_petty_cash_ref relsum_petty_cash_ref_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_petty_cash_ref
    ADD CONSTRAINT relsum_petty_cash_ref_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE SET NULL;


--
-- Name: relsum_petty_cash_ref relsum_petty_cash_ref_repair_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_petty_cash_ref
    ADD CONSTRAINT relsum_petty_cash_ref_repair_order_id_fkey FOREIGN KEY (repair_order_id) REFERENCES public.repair_order(id) ON DELETE CASCADE;


--
-- Name: relsum_petty_cash_ref relsum_petty_cash_ref_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_petty_cash_ref
    ADD CONSTRAINT relsum_petty_cash_ref_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: relsum_technical_report relsum_technical_report_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_technical_report
    ADD CONSTRAINT relsum_technical_report_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: relsum_technical_report relsum_technical_report_machine_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_technical_report
    ADD CONSTRAINT relsum_technical_report_machine_id_fkey FOREIGN KEY (machine_id) REFERENCES public.relsum_machine(id) ON DELETE SET NULL;


--
-- Name: relsum_technical_report relsum_technical_report_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_technical_report
    ADD CONSTRAINT relsum_technical_report_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: relsum_technical_report relsum_technical_report_repair_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_technical_report
    ADD CONSTRAINT relsum_technical_report_repair_order_id_fkey FOREIGN KEY (repair_order_id) REFERENCES public.repair_order(id) ON DELETE SET NULL;


--
-- Name: relsum_technical_report relsum_technical_report_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.relsum_technical_report
    ADD CONSTRAINT relsum_technical_report_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_analytic_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_analytic_account_id_fkey FOREIGN KEY (analytic_account_id) REFERENCES public.account_analytic_account(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: repair_order repair_order_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_location_dest_id_fkey FOREIGN KEY (location_dest_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: repair_order repair_order_lot_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_lot_id_fkey FOREIGN KEY (lot_id) REFERENCES public.stock_lot(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_move_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_move_id_fkey FOREIGN KEY (move_id) REFERENCES public.stock_move(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_parts_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_parts_location_id_fkey FOREIGN KEY (parts_location_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_picking_id_fkey FOREIGN KEY (picking_id) REFERENCES public.stock_picking(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_picking_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_picking_type_id_fkey FOREIGN KEY (picking_type_id) REFERENCES public.stock_picking_type(id) ON DELETE RESTRICT;


--
-- Name: repair_order repair_order_procurement_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_procurement_group_id_fkey FOREIGN KEY (procurement_group_id) REFERENCES public.procurement_group(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_product_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_product_location_dest_id_fkey FOREIGN KEY (product_location_dest_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: repair_order repair_order_product_location_src_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_product_location_src_id_fkey FOREIGN KEY (product_location_src_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: repair_order repair_order_product_uom_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_product_uom_fkey FOREIGN KEY (product_uom) REFERENCES public.uom_uom(id) ON DELETE SET NULL;


--
-- Name: repair_order_purchase_order_rel repair_order_purchase_order_rel_purchase_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order_purchase_order_rel
    ADD CONSTRAINT repair_order_purchase_order_rel_purchase_order_id_fkey FOREIGN KEY (purchase_order_id) REFERENCES public.purchase_order(id) ON DELETE CASCADE;


--
-- Name: repair_order_purchase_order_rel repair_order_purchase_order_rel_repair_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order_purchase_order_rel
    ADD CONSTRAINT repair_order_purchase_order_rel_repair_order_id_fkey FOREIGN KEY (repair_order_id) REFERENCES public.repair_order(id) ON DELETE CASCADE;


--
-- Name: repair_order repair_order_recycle_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_recycle_location_id_fkey FOREIGN KEY (recycle_location_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: repair_order repair_order_relsum_machine_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_relsum_machine_id_fkey FOREIGN KEY (relsum_machine_id) REFERENCES public.relsum_machine(id) ON DELETE RESTRICT;


--
-- Name: repair_order_repair_tags_rel repair_order_repair_tags_rel_repair_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order_repair_tags_rel
    ADD CONSTRAINT repair_order_repair_tags_rel_repair_order_id_fkey FOREIGN KEY (repair_order_id) REFERENCES public.repair_order(id) ON DELETE CASCADE;


--
-- Name: repair_order_repair_tags_rel repair_order_repair_tags_rel_repair_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order_repair_tags_rel
    ADD CONSTRAINT repair_order_repair_tags_rel_repair_tags_id_fkey FOREIGN KEY (repair_tags_id) REFERENCES public.repair_tags(id) ON DELETE CASCADE;


--
-- Name: repair_order repair_order_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_sale_order_id_fkey FOREIGN KEY (sale_order_id) REFERENCES public.sale_order(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_sale_order_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_sale_order_line_id_fkey FOREIGN KEY (sale_order_line_id) REFERENCES public.sale_order_line(id) ON DELETE SET NULL;


--
-- Name: repair_order_sale_order_rel repair_order_sale_order_rel_repair_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order_sale_order_rel
    ADD CONSTRAINT repair_order_sale_order_rel_repair_order_id_fkey FOREIGN KEY (repair_order_id) REFERENCES public.repair_order(id) ON DELETE CASCADE;


--
-- Name: repair_order_sale_order_rel repair_order_sale_order_rel_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order_sale_order_rel
    ADD CONSTRAINT repair_order_sale_order_rel_sale_order_id_fkey FOREIGN KEY (sale_order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: repair_order repair_order_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: repair_order repair_order_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_order
    ADD CONSTRAINT repair_order_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: repair_purchase_rel repair_purchase_rel_purchase_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_purchase_rel
    ADD CONSTRAINT repair_purchase_rel_purchase_id_fkey FOREIGN KEY (purchase_id) REFERENCES public.purchase_order(id) ON DELETE CASCADE;


--
-- Name: repair_purchase_rel repair_purchase_rel_repair_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_purchase_rel
    ADD CONSTRAINT repair_purchase_rel_repair_id_fkey FOREIGN KEY (repair_id) REFERENCES public.repair_order(id) ON DELETE CASCADE;


--
-- Name: repair_sale_rel repair_sale_rel_repair_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_sale_rel
    ADD CONSTRAINT repair_sale_rel_repair_id_fkey FOREIGN KEY (repair_id) REFERENCES public.repair_order(id) ON DELETE CASCADE;


--
-- Name: repair_sale_rel repair_sale_rel_sale_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_sale_rel
    ADD CONSTRAINT repair_sale_rel_sale_id_fkey FOREIGN KEY (sale_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: repair_tags repair_tags_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_tags
    ADD CONSTRAINT repair_tags_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: repair_tags repair_tags_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.repair_tags
    ADD CONSTRAINT repair_tags_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: report_layout report_layout_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.report_layout
    ADD CONSTRAINT report_layout_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: report_layout report_layout_view_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.report_layout
    ADD CONSTRAINT report_layout_view_id_fkey FOREIGN KEY (view_id) REFERENCES public.ir_ui_view(id) ON DELETE RESTRICT;


--
-- Name: report_layout report_layout_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.report_layout
    ADD CONSTRAINT report_layout_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: report_paperformat report_paperformat_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.report_paperformat
    ADD CONSTRAINT report_paperformat_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: report_paperformat report_paperformat_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.report_paperformat
    ADD CONSTRAINT report_paperformat_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_bank res_bank_country_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_bank
    ADD CONSTRAINT res_bank_country_fkey FOREIGN KEY (country) REFERENCES public.res_country(id) ON DELETE SET NULL;


--
-- Name: res_bank res_bank_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_bank
    ADD CONSTRAINT res_bank_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_bank res_bank_state_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_bank
    ADD CONSTRAINT res_bank_state_fkey FOREIGN KEY (state) REFERENCES public.res_country_state(id) ON DELETE SET NULL;


--
-- Name: res_bank res_bank_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_bank
    ADD CONSTRAINT res_bank_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_cash_basis_base_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_cash_basis_base_account_id_fkey FOREIGN KEY (account_cash_basis_base_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_default_pos_receivable_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_default_pos_receivable_account_id_fkey FOREIGN KEY (account_default_pos_receivable_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_discount_expense_allocation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_discount_expense_allocation_id_fkey FOREIGN KEY (account_discount_expense_allocation_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_discount_income_allocation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_discount_income_allocation_id_fkey FOREIGN KEY (account_discount_income_allocation_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_fiscal_country_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_fiscal_country_id_fkey FOREIGN KEY (account_fiscal_country_id) REFERENCES public.res_country(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_journal_early_pay_discount_gain_accoun_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_journal_early_pay_discount_gain_accoun_fkey FOREIGN KEY (account_journal_early_pay_discount_gain_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_journal_early_pay_discount_loss_accoun_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_journal_early_pay_discount_loss_accoun_fkey FOREIGN KEY (account_journal_early_pay_discount_loss_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_journal_suspense_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_journal_suspense_account_id_fkey FOREIGN KEY (account_journal_suspense_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_opening_move_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_opening_move_id_fkey FOREIGN KEY (account_opening_move_id) REFERENCES public.account_move(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_production_wip_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_production_wip_account_id_fkey FOREIGN KEY (account_production_wip_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_production_wip_overhead_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_production_wip_overhead_account_id_fkey FOREIGN KEY (account_production_wip_overhead_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_purchase_tax_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_purchase_tax_id_fkey FOREIGN KEY (account_purchase_tax_id) REFERENCES public.account_tax(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_account_sale_tax_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_account_sale_tax_id_fkey FOREIGN KEY (account_sale_tax_id) REFERENCES public.account_tax(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_alias_domain_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_alias_domain_id_fkey FOREIGN KEY (alias_domain_id) REFERENCES public.mail_alias_domain(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_automatic_entry_default_journal_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_automatic_entry_default_journal_id_fkey FOREIGN KEY (automatic_entry_default_journal_id) REFERENCES public.account_journal(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_batch_payment_sequence_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_batch_payment_sequence_id_fkey FOREIGN KEY (batch_payment_sequence_id) REFERENCES public.ir_sequence(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_currency_exchange_journal_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_currency_exchange_journal_id_fkey FOREIGN KEY (currency_exchange_journal_id) REFERENCES public.account_journal(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE RESTRICT;


--
-- Name: res_company res_company_default_cash_difference_expense_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_default_cash_difference_expense_account_id_fkey FOREIGN KEY (default_cash_difference_expense_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_default_cash_difference_income_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_default_cash_difference_income_account_id_fkey FOREIGN KEY (default_cash_difference_income_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_expense_accrual_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_expense_accrual_account_id_fkey FOREIGN KEY (expense_accrual_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_expense_currency_exchange_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_expense_currency_exchange_account_id_fkey FOREIGN KEY (expense_currency_exchange_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_external_report_layout_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_external_report_layout_id_fkey FOREIGN KEY (external_report_layout_id) REFERENCES public.ir_ui_view(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_income_currency_exchange_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_income_currency_exchange_account_id_fkey FOREIGN KEY (income_currency_exchange_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_incoterm_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_incoterm_id_fkey FOREIGN KEY (incoterm_id) REFERENCES public.account_incoterms(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_internal_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_internal_project_id_fkey FOREIGN KEY (internal_project_id) REFERENCES public.project_project(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_internal_transit_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_internal_transit_location_id_fkey FOREIGN KEY (internal_transit_location_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: res_company res_company_nomenclature_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_nomenclature_id_fkey FOREIGN KEY (nomenclature_id) REFERENCES public.barcode_nomenclature(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_paperformat_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_paperformat_id_fkey FOREIGN KEY (paperformat_id) REFERENCES public.report_paperformat(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: res_company res_company_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE RESTRICT;


--
-- Name: res_company res_company_peppol_purchase_journal_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_peppol_purchase_journal_id_fkey FOREIGN KEY (peppol_purchase_journal_id) REFERENCES public.account_journal(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_project_time_mode_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_project_time_mode_id_fkey FOREIGN KEY (project_time_mode_id) REFERENCES public.uom_uom(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_resource_calendar_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_resource_calendar_id_fkey FOREIGN KEY (resource_calendar_id) REFERENCES public.resource_calendar(id) ON DELETE RESTRICT;


--
-- Name: res_company res_company_revenue_accrual_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_revenue_accrual_account_id_fkey FOREIGN KEY (revenue_accrual_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_sale_discount_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_sale_discount_product_id_fkey FOREIGN KEY (sale_discount_product_id) REFERENCES public.product_product(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_sale_order_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_sale_order_template_id_fkey FOREIGN KEY (sale_order_template_id) REFERENCES public.sale_order_template(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_stock_mail_confirmation_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_stock_mail_confirmation_template_id_fkey FOREIGN KEY (stock_mail_confirmation_template_id) REFERENCES public.mail_template(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_stock_sms_confirmation_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_stock_sms_confirmation_template_id_fkey FOREIGN KEY (stock_sms_confirmation_template_id) REFERENCES public.sms_template(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_tax_cash_basis_journal_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_tax_cash_basis_journal_id_fkey FOREIGN KEY (tax_cash_basis_journal_id) REFERENCES public.account_journal(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_timesheet_encode_uom_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_timesheet_encode_uom_id_fkey FOREIGN KEY (timesheet_encode_uom_id) REFERENCES public.uom_uom(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_transfer_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_transfer_account_id_fkey FOREIGN KEY (transfer_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: res_company_users_rel res_company_users_rel_cid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company_users_rel
    ADD CONSTRAINT res_company_users_rel_cid_fkey FOREIGN KEY (cid) REFERENCES public.res_company(id) ON DELETE CASCADE;


--
-- Name: res_company_users_rel res_company_users_rel_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company_users_rel
    ADD CONSTRAINT res_company_users_rel_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE CASCADE;


--
-- Name: res_company res_company_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE SET NULL;


--
-- Name: res_company res_company_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_company
    ADD CONSTRAINT res_company_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_config res_config_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_config
    ADD CONSTRAINT res_config_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_config_settings res_config_settings_auth_signup_template_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_config_settings
    ADD CONSTRAINT res_config_settings_auth_signup_template_user_id_fkey FOREIGN KEY (auth_signup_template_user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_config_settings res_config_settings_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_config_settings
    ADD CONSTRAINT res_config_settings_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE CASCADE;


--
-- Name: res_config_settings res_config_settings_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_config_settings
    ADD CONSTRAINT res_config_settings_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_config_settings res_config_settings_digest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_config_settings
    ADD CONSTRAINT res_config_settings_digest_id_fkey FOREIGN KEY (digest_id) REFERENCES public.digest_digest(id) ON DELETE SET NULL;


--
-- Name: res_config_settings res_config_settings_invoice_mail_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_config_settings
    ADD CONSTRAINT res_config_settings_invoice_mail_template_id_fkey FOREIGN KEY (invoice_mail_template_id) REFERENCES public.mail_template(id) ON DELETE SET NULL;


--
-- Name: res_config_settings res_config_settings_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_config_settings
    ADD CONSTRAINT res_config_settings_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE CASCADE;


--
-- Name: res_config_settings res_config_settings_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_config_settings
    ADD CONSTRAINT res_config_settings_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_config res_config_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_config
    ADD CONSTRAINT res_config_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_country res_country_address_view_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country
    ADD CONSTRAINT res_country_address_view_id_fkey FOREIGN KEY (address_view_id) REFERENCES public.ir_ui_view(id) ON DELETE SET NULL;


--
-- Name: res_country res_country_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country
    ADD CONSTRAINT res_country_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_country res_country_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country
    ADD CONSTRAINT res_country_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE SET NULL;


--
-- Name: res_country_group res_country_group_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country_group
    ADD CONSTRAINT res_country_group_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_country_group_pricelist_rel res_country_group_pricelist_rel_pricelist_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country_group_pricelist_rel
    ADD CONSTRAINT res_country_group_pricelist_rel_pricelist_id_fkey FOREIGN KEY (pricelist_id) REFERENCES public.product_pricelist(id) ON DELETE CASCADE;


--
-- Name: res_country_group_pricelist_rel res_country_group_pricelist_rel_res_country_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country_group_pricelist_rel
    ADD CONSTRAINT res_country_group_pricelist_rel_res_country_group_id_fkey FOREIGN KEY (res_country_group_id) REFERENCES public.res_country_group(id) ON DELETE CASCADE;


--
-- Name: res_country_group res_country_group_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country_group
    ADD CONSTRAINT res_country_group_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_country_res_country_group_rel res_country_res_country_group_rel_res_country_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country_res_country_group_rel
    ADD CONSTRAINT res_country_res_country_group_rel_res_country_group_id_fkey FOREIGN KEY (res_country_group_id) REFERENCES public.res_country_group(id) ON DELETE CASCADE;


--
-- Name: res_country_res_country_group_rel res_country_res_country_group_rel_res_country_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country_res_country_group_rel
    ADD CONSTRAINT res_country_res_country_group_rel_res_country_id_fkey FOREIGN KEY (res_country_id) REFERENCES public.res_country(id) ON DELETE CASCADE;


--
-- Name: res_country_state res_country_state_country_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country_state
    ADD CONSTRAINT res_country_state_country_id_fkey FOREIGN KEY (country_id) REFERENCES public.res_country(id) ON DELETE RESTRICT;


--
-- Name: res_country_state res_country_state_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country_state
    ADD CONSTRAINT res_country_state_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_country_state res_country_state_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country_state
    ADD CONSTRAINT res_country_state_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_country res_country_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_country
    ADD CONSTRAINT res_country_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_currency res_currency_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_currency
    ADD CONSTRAINT res_currency_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_currency_rate res_currency_rate_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_currency_rate
    ADD CONSTRAINT res_currency_rate_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: res_currency_rate res_currency_rate_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_currency_rate
    ADD CONSTRAINT res_currency_rate_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_currency_rate res_currency_rate_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_currency_rate
    ADD CONSTRAINT res_currency_rate_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE CASCADE;


--
-- Name: res_currency_rate res_currency_rate_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_currency_rate
    ADD CONSTRAINT res_currency_rate_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_currency res_currency_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_currency
    ADD CONSTRAINT res_currency_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_device_log res_device_log_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_device_log
    ADD CONSTRAINT res_device_log_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_device_log res_device_log_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_device_log
    ADD CONSTRAINT res_device_log_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_device_log res_device_log_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_device_log
    ADD CONSTRAINT res_device_log_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_groups res_groups_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups
    ADD CONSTRAINT res_groups_category_id_fkey FOREIGN KEY (category_id) REFERENCES public.ir_module_category(id) ON DELETE SET NULL;


--
-- Name: res_groups res_groups_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups
    ADD CONSTRAINT res_groups_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_groups_implied_rel res_groups_implied_rel_gid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups_implied_rel
    ADD CONSTRAINT res_groups_implied_rel_gid_fkey FOREIGN KEY (gid) REFERENCES public.res_groups(id) ON DELETE CASCADE;


--
-- Name: res_groups_implied_rel res_groups_implied_rel_hid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups_implied_rel
    ADD CONSTRAINT res_groups_implied_rel_hid_fkey FOREIGN KEY (hid) REFERENCES public.res_groups(id) ON DELETE CASCADE;


--
-- Name: res_groups_report_rel res_groups_report_rel_gid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups_report_rel
    ADD CONSTRAINT res_groups_report_rel_gid_fkey FOREIGN KEY (gid) REFERENCES public.res_groups(id) ON DELETE CASCADE;


--
-- Name: res_groups_report_rel res_groups_report_rel_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups_report_rel
    ADD CONSTRAINT res_groups_report_rel_uid_fkey FOREIGN KEY (uid) REFERENCES public.ir_act_report_xml(id) ON DELETE CASCADE;


--
-- Name: res_groups_spreadsheet_dashboard_rel res_groups_spreadsheet_dashboard__spreadsheet_dashboard_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups_spreadsheet_dashboard_rel
    ADD CONSTRAINT res_groups_spreadsheet_dashboard__spreadsheet_dashboard_id_fkey FOREIGN KEY (spreadsheet_dashboard_id) REFERENCES public.spreadsheet_dashboard(id) ON DELETE CASCADE;


--
-- Name: res_groups_spreadsheet_dashboard_rel res_groups_spreadsheet_dashboard_rel_res_groups_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups_spreadsheet_dashboard_rel
    ADD CONSTRAINT res_groups_spreadsheet_dashboard_rel_res_groups_id_fkey FOREIGN KEY (res_groups_id) REFERENCES public.res_groups(id) ON DELETE CASCADE;


--
-- Name: res_groups_users_rel res_groups_users_rel_gid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups_users_rel
    ADD CONSTRAINT res_groups_users_rel_gid_fkey FOREIGN KEY (gid) REFERENCES public.res_groups(id) ON DELETE CASCADE;


--
-- Name: res_groups_users_rel res_groups_users_rel_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups_users_rel
    ADD CONSTRAINT res_groups_users_rel_uid_fkey FOREIGN KEY (uid) REFERENCES public.res_users(id) ON DELETE CASCADE;


--
-- Name: res_groups_website_menu_rel res_groups_website_menu_rel_res_groups_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups_website_menu_rel
    ADD CONSTRAINT res_groups_website_menu_rel_res_groups_id_fkey FOREIGN KEY (res_groups_id) REFERENCES public.res_groups(id) ON DELETE CASCADE;


--
-- Name: res_groups_website_menu_rel res_groups_website_menu_rel_website_menu_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups_website_menu_rel
    ADD CONSTRAINT res_groups_website_menu_rel_website_menu_id_fkey FOREIGN KEY (website_menu_id) REFERENCES public.website_menu(id) ON DELETE CASCADE;


--
-- Name: res_groups res_groups_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_groups
    ADD CONSTRAINT res_groups_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_lang res_lang_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_lang
    ADD CONSTRAINT res_lang_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_lang_install_rel res_lang_install_rel_lang_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_lang_install_rel
    ADD CONSTRAINT res_lang_install_rel_lang_id_fkey FOREIGN KEY (lang_id) REFERENCES public.res_lang(id) ON DELETE CASCADE;


--
-- Name: res_lang_install_rel res_lang_install_rel_language_wizard_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_lang_install_rel
    ADD CONSTRAINT res_lang_install_rel_language_wizard_id_fkey FOREIGN KEY (language_wizard_id) REFERENCES public.base_language_install(id) ON DELETE CASCADE;


--
-- Name: res_lang res_lang_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_lang
    ADD CONSTRAINT res_lang_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner_autocomplete_sync res_partner_autocomplete_sync_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_autocomplete_sync
    ADD CONSTRAINT res_partner_autocomplete_sync_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner_autocomplete_sync res_partner_autocomplete_sync_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_autocomplete_sync
    ADD CONSTRAINT res_partner_autocomplete_sync_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE CASCADE;


--
-- Name: res_partner_autocomplete_sync res_partner_autocomplete_sync_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_autocomplete_sync
    ADD CONSTRAINT res_partner_autocomplete_sync_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner_bank res_partner_bank_bank_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_bank
    ADD CONSTRAINT res_partner_bank_bank_id_fkey FOREIGN KEY (bank_id) REFERENCES public.res_bank(id) ON DELETE SET NULL;


--
-- Name: res_partner_bank res_partner_bank_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_bank
    ADD CONSTRAINT res_partner_bank_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: res_partner_bank res_partner_bank_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_bank
    ADD CONSTRAINT res_partner_bank_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner_bank res_partner_bank_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_bank
    ADD CONSTRAINT res_partner_bank_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE SET NULL;


--
-- Name: res_partner_bank res_partner_bank_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_bank
    ADD CONSTRAINT res_partner_bank_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE CASCADE;


--
-- Name: res_partner_bank res_partner_bank_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_bank
    ADD CONSTRAINT res_partner_bank_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner res_partner_buyer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_buyer_id_fkey FOREIGN KEY (buyer_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner_category res_partner_category_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_category
    ADD CONSTRAINT res_partner_category_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner_category res_partner_category_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_category
    ADD CONSTRAINT res_partner_category_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES public.res_partner_category(id) ON DELETE CASCADE;


--
-- Name: res_partner_category res_partner_category_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_category
    ADD CONSTRAINT res_partner_category_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner res_partner_commercial_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_commercial_partner_id_fkey FOREIGN KEY (commercial_partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: res_partner res_partner_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: res_partner res_partner_country_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_country_id_fkey FOREIGN KEY (country_id) REFERENCES public.res_country(id) ON DELETE RESTRICT;


--
-- Name: res_partner res_partner_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner_industry res_partner_industry_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_industry
    ADD CONSTRAINT res_partner_industry_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner res_partner_industry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_industry_id_fkey FOREIGN KEY (industry_id) REFERENCES public.res_partner_industry(id) ON DELETE SET NULL;


--
-- Name: res_partner_industry res_partner_industry_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_industry
    ADD CONSTRAINT res_partner_industry_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner res_partner_invoice_template_pdf_report_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_invoice_template_pdf_report_id_fkey FOREIGN KEY (invoice_template_pdf_report_id) REFERENCES public.ir_act_report_xml(id) ON DELETE SET NULL;


--
-- Name: res_partner res_partner_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: res_partner_res_partner_category_rel res_partner_res_partner_category_rel_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_res_partner_category_rel
    ADD CONSTRAINT res_partner_res_partner_category_rel_category_id_fkey FOREIGN KEY (category_id) REFERENCES public.res_partner_category(id) ON DELETE CASCADE;


--
-- Name: res_partner_res_partner_category_rel res_partner_res_partner_category_rel_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_res_partner_category_rel
    ADD CONSTRAINT res_partner_res_partner_category_rel_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE CASCADE;


--
-- Name: res_partner res_partner_state_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_state_id_fkey FOREIGN KEY (state_id) REFERENCES public.res_country_state(id) ON DELETE RESTRICT;


--
-- Name: res_partner_title res_partner_title_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_title
    ADD CONSTRAINT res_partner_title_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner res_partner_title_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_title_fkey FOREIGN KEY (title) REFERENCES public.res_partner_title(id) ON DELETE SET NULL;


--
-- Name: res_partner_title res_partner_title_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner_title
    ADD CONSTRAINT res_partner_title_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner res_partner_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_partner res_partner_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE RESTRICT;


--
-- Name: res_partner res_partner_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_partner
    ADD CONSTRAINT res_partner_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_apikeys_description res_users_apikeys_description_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_apikeys_description
    ADD CONSTRAINT res_users_apikeys_description_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_apikeys_description res_users_apikeys_description_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_apikeys_description
    ADD CONSTRAINT res_users_apikeys_description_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_apikeys res_users_apikeys_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_apikeys
    ADD CONSTRAINT res_users_apikeys_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE CASCADE;


--
-- Name: res_users res_users_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users
    ADD CONSTRAINT res_users_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: res_users res_users_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users
    ADD CONSTRAINT res_users_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_deletion res_users_deletion_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_deletion
    ADD CONSTRAINT res_users_deletion_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_deletion res_users_deletion_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_deletion
    ADD CONSTRAINT res_users_deletion_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_deletion res_users_deletion_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_deletion
    ADD CONSTRAINT res_users_deletion_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_identitycheck res_users_identitycheck_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_identitycheck
    ADD CONSTRAINT res_users_identitycheck_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_identitycheck res_users_identitycheck_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_identitycheck
    ADD CONSTRAINT res_users_identitycheck_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_log res_users_log_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_log
    ADD CONSTRAINT res_users_log_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_log res_users_log_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_log
    ADD CONSTRAINT res_users_log_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users res_users_next_rank_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users
    ADD CONSTRAINT res_users_next_rank_id_fkey FOREIGN KEY (next_rank_id) REFERENCES public.gamification_karma_rank(id) ON DELETE SET NULL;


--
-- Name: res_users res_users_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users
    ADD CONSTRAINT res_users_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE RESTRICT;


--
-- Name: res_users res_users_rank_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users
    ADD CONSTRAINT res_users_rank_id_fkey FOREIGN KEY (rank_id) REFERENCES public.gamification_karma_rank(id) ON DELETE SET NULL;


--
-- Name: res_users res_users_sale_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users
    ADD CONSTRAINT res_users_sale_team_id_fkey FOREIGN KEY (sale_team_id) REFERENCES public.crm_team(id) ON DELETE SET NULL;


--
-- Name: res_users_settings res_users_settings_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_settings
    ADD CONSTRAINT res_users_settings_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_settings res_users_settings_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_settings
    ADD CONSTRAINT res_users_settings_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE CASCADE;


--
-- Name: res_users_settings_volumes res_users_settings_volumes_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_settings_volumes
    ADD CONSTRAINT res_users_settings_volumes_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_settings_volumes res_users_settings_volumes_guest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_settings_volumes
    ADD CONSTRAINT res_users_settings_volumes_guest_id_fkey FOREIGN KEY (guest_id) REFERENCES public.res_partner(id) ON DELETE CASCADE;


--
-- Name: res_users_settings_volumes res_users_settings_volumes_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_settings_volumes
    ADD CONSTRAINT res_users_settings_volumes_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE CASCADE;


--
-- Name: res_users_settings_volumes res_users_settings_volumes_user_setting_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_settings_volumes
    ADD CONSTRAINT res_users_settings_volumes_user_setting_id_fkey FOREIGN KEY (user_setting_id) REFERENCES public.res_users_settings(id) ON DELETE CASCADE;


--
-- Name: res_users_settings_volumes res_users_settings_volumes_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_settings_volumes
    ADD CONSTRAINT res_users_settings_volumes_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_settings res_users_settings_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_settings
    ADD CONSTRAINT res_users_settings_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: res_users_web_tour_tour_rel res_users_web_tour_tour_rel_res_users_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_web_tour_tour_rel
    ADD CONSTRAINT res_users_web_tour_tour_rel_res_users_id_fkey FOREIGN KEY (res_users_id) REFERENCES public.res_users(id) ON DELETE CASCADE;


--
-- Name: res_users_web_tour_tour_rel res_users_web_tour_tour_rel_web_tour_tour_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users_web_tour_tour_rel
    ADD CONSTRAINT res_users_web_tour_tour_rel_web_tour_tour_id_fkey FOREIGN KEY (web_tour_tour_id) REFERENCES public.web_tour_tour(id) ON DELETE CASCADE;


--
-- Name: res_users res_users_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users
    ADD CONSTRAINT res_users_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE SET NULL;


--
-- Name: res_users res_users_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.res_users
    ADD CONSTRAINT res_users_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: reset_view_arch_wizard reset_view_arch_wizard_compare_view_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.reset_view_arch_wizard
    ADD CONSTRAINT reset_view_arch_wizard_compare_view_id_fkey FOREIGN KEY (compare_view_id) REFERENCES public.ir_ui_view(id) ON DELETE SET NULL;


--
-- Name: reset_view_arch_wizard reset_view_arch_wizard_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.reset_view_arch_wizard
    ADD CONSTRAINT reset_view_arch_wizard_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: reset_view_arch_wizard reset_view_arch_wizard_view_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.reset_view_arch_wizard
    ADD CONSTRAINT reset_view_arch_wizard_view_id_fkey FOREIGN KEY (view_id) REFERENCES public.ir_ui_view(id) ON DELETE SET NULL;


--
-- Name: reset_view_arch_wizard reset_view_arch_wizard_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.reset_view_arch_wizard
    ADD CONSTRAINT reset_view_arch_wizard_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: resource_calendar_attendance resource_calendar_attendance_calendar_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar_attendance
    ADD CONSTRAINT resource_calendar_attendance_calendar_id_fkey FOREIGN KEY (calendar_id) REFERENCES public.resource_calendar(id) ON DELETE CASCADE;


--
-- Name: resource_calendar_attendance resource_calendar_attendance_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar_attendance
    ADD CONSTRAINT resource_calendar_attendance_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: resource_calendar_attendance resource_calendar_attendance_resource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar_attendance
    ADD CONSTRAINT resource_calendar_attendance_resource_id_fkey FOREIGN KEY (resource_id) REFERENCES public.resource_resource(id) ON DELETE SET NULL;


--
-- Name: resource_calendar_attendance resource_calendar_attendance_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar_attendance
    ADD CONSTRAINT resource_calendar_attendance_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: resource_calendar resource_calendar_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar
    ADD CONSTRAINT resource_calendar_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: resource_calendar resource_calendar_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar
    ADD CONSTRAINT resource_calendar_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: resource_calendar_leaves resource_calendar_leaves_calendar_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar_leaves
    ADD CONSTRAINT resource_calendar_leaves_calendar_id_fkey FOREIGN KEY (calendar_id) REFERENCES public.resource_calendar(id) ON DELETE SET NULL;


--
-- Name: resource_calendar_leaves resource_calendar_leaves_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar_leaves
    ADD CONSTRAINT resource_calendar_leaves_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: resource_calendar_leaves resource_calendar_leaves_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar_leaves
    ADD CONSTRAINT resource_calendar_leaves_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: resource_calendar_leaves resource_calendar_leaves_resource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar_leaves
    ADD CONSTRAINT resource_calendar_leaves_resource_id_fkey FOREIGN KEY (resource_id) REFERENCES public.resource_resource(id) ON DELETE SET NULL;


--
-- Name: resource_calendar_leaves resource_calendar_leaves_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar_leaves
    ADD CONSTRAINT resource_calendar_leaves_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: resource_calendar resource_calendar_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_calendar
    ADD CONSTRAINT resource_calendar_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: resource_resource resource_resource_calendar_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_resource
    ADD CONSTRAINT resource_resource_calendar_id_fkey FOREIGN KEY (calendar_id) REFERENCES public.resource_calendar(id) ON DELETE SET NULL;


--
-- Name: resource_resource resource_resource_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_resource
    ADD CONSTRAINT resource_resource_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: resource_resource resource_resource_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_resource
    ADD CONSTRAINT resource_resource_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: resource_resource resource_resource_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_resource
    ADD CONSTRAINT resource_resource_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: resource_resource resource_resource_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.resource_resource
    ADD CONSTRAINT resource_resource_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: rule_group_rel rule_group_rel_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rule_group_rel
    ADD CONSTRAINT rule_group_rel_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.res_groups(id) ON DELETE RESTRICT;


--
-- Name: rule_group_rel rule_group_rel_rule_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.rule_group_rel
    ADD CONSTRAINT rule_group_rel_rule_group_id_fkey FOREIGN KEY (rule_group_id) REFERENCES public.ir_rule(id) ON DELETE CASCADE;


--
-- Name: sale_advance_payment_inv sale_advance_payment_inv_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_advance_payment_inv
    ADD CONSTRAINT sale_advance_payment_inv_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: sale_advance_payment_inv sale_advance_payment_inv_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_advance_payment_inv
    ADD CONSTRAINT sale_advance_payment_inv_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_advance_payment_inv sale_advance_payment_inv_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_advance_payment_inv
    ADD CONSTRAINT sale_advance_payment_inv_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE SET NULL;


--
-- Name: sale_advance_payment_inv_sale_order_rel sale_advance_payment_inv_sale__sale_advance_payment_inv_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_advance_payment_inv_sale_order_rel
    ADD CONSTRAINT sale_advance_payment_inv_sale__sale_advance_payment_inv_id_fkey FOREIGN KEY (sale_advance_payment_inv_id) REFERENCES public.sale_advance_payment_inv(id) ON DELETE CASCADE;


--
-- Name: sale_advance_payment_inv_sale_order_rel sale_advance_payment_inv_sale_order_rel_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_advance_payment_inv_sale_order_rel
    ADD CONSTRAINT sale_advance_payment_inv_sale_order_rel_sale_order_id_fkey FOREIGN KEY (sale_order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: sale_advance_payment_inv sale_advance_payment_inv_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_advance_payment_inv
    ADD CONSTRAINT sale_advance_payment_inv_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_mass_cancel_orders sale_mass_cancel_orders_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_mass_cancel_orders
    ADD CONSTRAINT sale_mass_cancel_orders_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_mass_cancel_orders sale_mass_cancel_orders_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_mass_cancel_orders
    ADD CONSTRAINT sale_mass_cancel_orders_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_campaign_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_campaign_id_fkey FOREIGN KEY (campaign_id) REFERENCES public.utm_campaign(id) ON DELETE SET NULL;


--
-- Name: sale_order_cancel sale_order_cancel_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_cancel
    ADD CONSTRAINT sale_order_cancel_author_id_fkey FOREIGN KEY (author_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: sale_order_cancel sale_order_cancel_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_cancel
    ADD CONSTRAINT sale_order_cancel_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_cancel sale_order_cancel_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_cancel
    ADD CONSTRAINT sale_order_cancel_order_id_fkey FOREIGN KEY (order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: sale_order_cancel sale_order_cancel_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_cancel
    ADD CONSTRAINT sale_order_cancel_template_id_fkey FOREIGN KEY (template_id) REFERENCES public.mail_template(id) ON DELETE SET NULL;


--
-- Name: sale_order_cancel sale_order_cancel_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_cancel
    ADD CONSTRAINT sale_order_cancel_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: sale_order sale_order_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE RESTRICT;


--
-- Name: sale_order_discount sale_order_discount_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_discount
    ADD CONSTRAINT sale_order_discount_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_discount sale_order_discount_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_discount
    ADD CONSTRAINT sale_order_discount_sale_order_id_fkey FOREIGN KEY (sale_order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: sale_order_discount sale_order_discount_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_discount
    ADD CONSTRAINT sale_order_discount_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_fiscal_position_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_fiscal_position_id_fkey FOREIGN KEY (fiscal_position_id) REFERENCES public.account_fiscal_position(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_incoterm_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_incoterm_fkey FOREIGN KEY (incoterm) REFERENCES public.account_incoterms(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_journal_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_journal_id_fkey FOREIGN KEY (journal_id) REFERENCES public.account_journal(id) ON DELETE SET NULL;


--
-- Name: sale_order_line sale_order_line_combo_item_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_combo_item_id_fkey FOREIGN KEY (combo_item_id) REFERENCES public.product_combo_item(id) ON DELETE SET NULL;


--
-- Name: sale_order_line sale_order_line_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: sale_order_line sale_order_line_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_line sale_order_line_currency_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_currency_id_fkey FOREIGN KEY (currency_id) REFERENCES public.res_currency(id) ON DELETE SET NULL;


--
-- Name: sale_order_line_invoice_rel sale_order_line_invoice_rel_invoice_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line_invoice_rel
    ADD CONSTRAINT sale_order_line_invoice_rel_invoice_line_id_fkey FOREIGN KEY (invoice_line_id) REFERENCES public.account_move_line(id) ON DELETE CASCADE;


--
-- Name: sale_order_line_invoice_rel sale_order_line_invoice_rel_order_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line_invoice_rel
    ADD CONSTRAINT sale_order_line_invoice_rel_order_line_id_fkey FOREIGN KEY (order_line_id) REFERENCES public.sale_order_line(id) ON DELETE CASCADE;


--
-- Name: sale_order_line sale_order_line_linked_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_linked_line_id_fkey FOREIGN KEY (linked_line_id) REFERENCES public.sale_order_line(id) ON DELETE CASCADE;


--
-- Name: sale_order_line sale_order_line_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_order_id_fkey FOREIGN KEY (order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: sale_order_line sale_order_line_order_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_order_partner_id_fkey FOREIGN KEY (order_partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: sale_order_line_product_document_rel sale_order_line_product_document_rel_product_document_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line_product_document_rel
    ADD CONSTRAINT sale_order_line_product_document_rel_product_document_id_fkey FOREIGN KEY (product_document_id) REFERENCES public.product_document(id) ON DELETE CASCADE;


--
-- Name: sale_order_line_product_document_rel sale_order_line_product_document_rel_sale_order_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line_product_document_rel
    ADD CONSTRAINT sale_order_line_product_document_rel_sale_order_line_id_fkey FOREIGN KEY (sale_order_line_id) REFERENCES public.sale_order_line(id) ON DELETE CASCADE;


--
-- Name: sale_order_line sale_order_line_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE RESTRICT;


--
-- Name: sale_order_line sale_order_line_product_packaging_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_product_packaging_id_fkey FOREIGN KEY (product_packaging_id) REFERENCES public.product_packaging(id) ON DELETE SET NULL;


--
-- Name: sale_order_line sale_order_line_product_uom_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_product_uom_fkey FOREIGN KEY (product_uom) REFERENCES public.uom_uom(id) ON DELETE RESTRICT;


--
-- Name: sale_order_line sale_order_line_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE SET NULL;


--
-- Name: sale_order_line sale_order_line_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_route_id_fkey FOREIGN KEY (route_id) REFERENCES public.stock_route(id) ON DELETE RESTRICT;


--
-- Name: sale_order_line sale_order_line_salesman_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_salesman_id_fkey FOREIGN KEY (salesman_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_line sale_order_line_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_task_id_fkey FOREIGN KEY (task_id) REFERENCES public.project_task(id) ON DELETE SET NULL;


--
-- Name: sale_order_line sale_order_line_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.stock_warehouse(id) ON DELETE SET NULL;


--
-- Name: sale_order_line sale_order_line_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_line
    ADD CONSTRAINT sale_order_line_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_mass_cancel_wizard_rel sale_order_mass_cancel_wizard_r_sale_mass_cancel_orders_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_mass_cancel_wizard_rel
    ADD CONSTRAINT sale_order_mass_cancel_wizard_r_sale_mass_cancel_orders_id_fkey FOREIGN KEY (sale_mass_cancel_orders_id) REFERENCES public.sale_mass_cancel_orders(id) ON DELETE CASCADE;


--
-- Name: sale_order_mass_cancel_wizard_rel sale_order_mass_cancel_wizard_rel_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_mass_cancel_wizard_rel
    ADD CONSTRAINT sale_order_mass_cancel_wizard_rel_sale_order_id_fkey FOREIGN KEY (sale_order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: sale_order sale_order_medium_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_medium_id_fkey FOREIGN KEY (medium_id) REFERENCES public.utm_medium(id) ON DELETE SET NULL;


--
-- Name: sale_order_option sale_order_option_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_option
    ADD CONSTRAINT sale_order_option_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_option sale_order_option_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_option
    ADD CONSTRAINT sale_order_option_line_id_fkey FOREIGN KEY (line_id) REFERENCES public.sale_order_line(id) ON DELETE SET NULL;


--
-- Name: sale_order_option sale_order_option_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_option
    ADD CONSTRAINT sale_order_option_order_id_fkey FOREIGN KEY (order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: sale_order_option sale_order_option_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_option
    ADD CONSTRAINT sale_order_option_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE RESTRICT;


--
-- Name: sale_order_option sale_order_option_uom_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_option
    ADD CONSTRAINT sale_order_option_uom_id_fkey FOREIGN KEY (uom_id) REFERENCES public.uom_uom(id) ON DELETE RESTRICT;


--
-- Name: sale_order_option sale_order_option_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_option
    ADD CONSTRAINT sale_order_option_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE RESTRICT;


--
-- Name: sale_order sale_order_partner_invoice_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_partner_invoice_id_fkey FOREIGN KEY (partner_invoice_id) REFERENCES public.res_partner(id) ON DELETE RESTRICT;


--
-- Name: sale_order sale_order_partner_shipping_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_partner_shipping_id_fkey FOREIGN KEY (partner_shipping_id) REFERENCES public.res_partner(id) ON DELETE RESTRICT;


--
-- Name: sale_order sale_order_payment_term_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_payment_term_id_fkey FOREIGN KEY (payment_term_id) REFERENCES public.account_payment_term(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_pending_email_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_pending_email_template_id_fkey FOREIGN KEY (pending_email_template_id) REFERENCES public.mail_template(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_pricelist_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_pricelist_id_fkey FOREIGN KEY (pricelist_id) REFERENCES public.product_pricelist(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_procurement_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_procurement_group_id_fkey FOREIGN KEY (procurement_group_id) REFERENCES public.procurement_group(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_repair_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_repair_order_id_fkey FOREIGN KEY (repair_order_id) REFERENCES public.repair_order(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_sale_order_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_sale_order_template_id_fkey FOREIGN KEY (sale_order_template_id) REFERENCES public.sale_order_template(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_source_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_source_id_fkey FOREIGN KEY (source_id) REFERENCES public.utm_source(id) ON DELETE SET NULL;


--
-- Name: sale_order_tag_rel sale_order_tag_rel_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_tag_rel
    ADD CONSTRAINT sale_order_tag_rel_order_id_fkey FOREIGN KEY (order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: sale_order_tag_rel sale_order_tag_rel_tag_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_tag_rel
    ADD CONSTRAINT sale_order_tag_rel_tag_id_fkey FOREIGN KEY (tag_id) REFERENCES public.crm_tag(id) ON DELETE CASCADE;


--
-- Name: sale_order sale_order_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_team_id_fkey FOREIGN KEY (team_id) REFERENCES public.crm_team(id) ON DELETE SET NULL;


--
-- Name: sale_order_template sale_order_template_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template
    ADD CONSTRAINT sale_order_template_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: sale_order_template sale_order_template_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template
    ADD CONSTRAINT sale_order_template_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_template_line sale_order_template_line_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_line
    ADD CONSTRAINT sale_order_template_line_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: sale_order_template_line sale_order_template_line_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_line
    ADD CONSTRAINT sale_order_template_line_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_template_line sale_order_template_line_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_line
    ADD CONSTRAINT sale_order_template_line_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE SET NULL;


--
-- Name: sale_order_template_line sale_order_template_line_product_uom_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_line
    ADD CONSTRAINT sale_order_template_line_product_uom_id_fkey FOREIGN KEY (product_uom_id) REFERENCES public.uom_uom(id) ON DELETE SET NULL;


--
-- Name: sale_order_template_line sale_order_template_line_sale_order_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_line
    ADD CONSTRAINT sale_order_template_line_sale_order_template_id_fkey FOREIGN KEY (sale_order_template_id) REFERENCES public.sale_order_template(id) ON DELETE CASCADE;


--
-- Name: sale_order_template_line sale_order_template_line_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_line
    ADD CONSTRAINT sale_order_template_line_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_template sale_order_template_mail_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template
    ADD CONSTRAINT sale_order_template_mail_template_id_fkey FOREIGN KEY (mail_template_id) REFERENCES public.mail_template(id) ON DELETE SET NULL;


--
-- Name: sale_order_template_option sale_order_template_option_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_option
    ADD CONSTRAINT sale_order_template_option_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: sale_order_template_option sale_order_template_option_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_option
    ADD CONSTRAINT sale_order_template_option_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_template_option sale_order_template_option_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_option
    ADD CONSTRAINT sale_order_template_option_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE RESTRICT;


--
-- Name: sale_order_template_option sale_order_template_option_sale_order_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_option
    ADD CONSTRAINT sale_order_template_option_sale_order_template_id_fkey FOREIGN KEY (sale_order_template_id) REFERENCES public.sale_order_template(id) ON DELETE CASCADE;


--
-- Name: sale_order_template_option sale_order_template_option_uom_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_option
    ADD CONSTRAINT sale_order_template_option_uom_id_fkey FOREIGN KEY (uom_id) REFERENCES public.uom_uom(id) ON DELETE RESTRICT;


--
-- Name: sale_order_template_option sale_order_template_option_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template_option
    ADD CONSTRAINT sale_order_template_option_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_template sale_order_template_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_template
    ADD CONSTRAINT sale_order_template_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order_transaction_rel sale_order_transaction_rel_sale_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_transaction_rel
    ADD CONSTRAINT sale_order_transaction_rel_sale_order_id_fkey FOREIGN KEY (sale_order_id) REFERENCES public.sale_order(id) ON DELETE CASCADE;


--
-- Name: sale_order_transaction_rel sale_order_transaction_rel_transaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order_transaction_rel
    ADD CONSTRAINT sale_order_transaction_rel_transaction_id_fkey FOREIGN KEY (transaction_id) REFERENCES public.payment_transaction(id) ON DELETE CASCADE;


--
-- Name: sale_order sale_order_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.stock_warehouse(id) ON DELETE SET NULL;


--
-- Name: sale_order sale_order_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_order
    ADD CONSTRAINT sale_order_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_payment_provider_onboarding_wizard sale_payment_provider_onboarding_wizard_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_payment_provider_onboarding_wizard
    ADD CONSTRAINT sale_payment_provider_onboarding_wizard_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_payment_provider_onboarding_wizard sale_payment_provider_onboarding_wizard_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_payment_provider_onboarding_wizard
    ADD CONSTRAINT sale_payment_provider_onboarding_wizard_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_pdf_form_field sale_pdf_form_field_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_pdf_form_field
    ADD CONSTRAINT sale_pdf_form_field_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sale_pdf_form_field sale_pdf_form_field_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sale_pdf_form_field
    ADD CONSTRAINT sale_pdf_form_field_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: scheduled_message_attachment_rel scheduled_message_attachment_rel_attachment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.scheduled_message_attachment_rel
    ADD CONSTRAINT scheduled_message_attachment_rel_attachment_id_fkey FOREIGN KEY (attachment_id) REFERENCES public.ir_attachment(id) ON DELETE CASCADE;


--
-- Name: scheduled_message_attachment_rel scheduled_message_attachment_rel_scheduled_message_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.scheduled_message_attachment_rel
    ADD CONSTRAINT scheduled_message_attachment_rel_scheduled_message_id_fkey FOREIGN KEY (scheduled_message_id) REFERENCES public.mail_scheduled_message(id) ON DELETE CASCADE;


--
-- Name: sms_account_code sms_account_code_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_account_code
    ADD CONSTRAINT sms_account_code_account_id_fkey FOREIGN KEY (account_id) REFERENCES public.iap_account(id) ON DELETE CASCADE;


--
-- Name: sms_account_code sms_account_code_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_account_code
    ADD CONSTRAINT sms_account_code_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_account_code sms_account_code_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_account_code
    ADD CONSTRAINT sms_account_code_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_account_phone sms_account_phone_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_account_phone
    ADD CONSTRAINT sms_account_phone_account_id_fkey FOREIGN KEY (account_id) REFERENCES public.iap_account(id) ON DELETE CASCADE;


--
-- Name: sms_account_phone sms_account_phone_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_account_phone
    ADD CONSTRAINT sms_account_phone_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_account_phone sms_account_phone_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_account_phone
    ADD CONSTRAINT sms_account_phone_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_account_sender sms_account_sender_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_account_sender
    ADD CONSTRAINT sms_account_sender_account_id_fkey FOREIGN KEY (account_id) REFERENCES public.iap_account(id) ON DELETE CASCADE;


--
-- Name: sms_account_sender sms_account_sender_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_account_sender
    ADD CONSTRAINT sms_account_sender_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_account_sender sms_account_sender_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_account_sender
    ADD CONSTRAINT sms_account_sender_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_composer sms_composer_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_composer
    ADD CONSTRAINT sms_composer_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_composer sms_composer_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_composer
    ADD CONSTRAINT sms_composer_template_id_fkey FOREIGN KEY (template_id) REFERENCES public.sms_template(id) ON DELETE SET NULL;


--
-- Name: sms_composer sms_composer_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_composer
    ADD CONSTRAINT sms_composer_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_resend sms_resend_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_resend
    ADD CONSTRAINT sms_resend_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_resend sms_resend_mail_message_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_resend
    ADD CONSTRAINT sms_resend_mail_message_id_fkey FOREIGN KEY (mail_message_id) REFERENCES public.mail_message(id) ON DELETE CASCADE;


--
-- Name: sms_resend_recipient sms_resend_recipient_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_resend_recipient
    ADD CONSTRAINT sms_resend_recipient_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_resend_recipient sms_resend_recipient_notification_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_resend_recipient
    ADD CONSTRAINT sms_resend_recipient_notification_id_fkey FOREIGN KEY (notification_id) REFERENCES public.mail_notification(id) ON DELETE CASCADE;


--
-- Name: sms_resend_recipient sms_resend_recipient_sms_resend_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_resend_recipient
    ADD CONSTRAINT sms_resend_recipient_sms_resend_id_fkey FOREIGN KEY (sms_resend_id) REFERENCES public.sms_resend(id) ON DELETE RESTRICT;


--
-- Name: sms_resend_recipient sms_resend_recipient_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_resend_recipient
    ADD CONSTRAINT sms_resend_recipient_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_resend sms_resend_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_resend
    ADD CONSTRAINT sms_resend_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_sms sms_sms_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_sms
    ADD CONSTRAINT sms_sms_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_sms sms_sms_mail_message_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_sms
    ADD CONSTRAINT sms_sms_mail_message_id_fkey FOREIGN KEY (mail_message_id) REFERENCES public.mail_message(id) ON DELETE SET NULL;


--
-- Name: sms_sms sms_sms_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_sms
    ADD CONSTRAINT sms_sms_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: sms_sms sms_sms_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_sms
    ADD CONSTRAINT sms_sms_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_template sms_template_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template
    ADD CONSTRAINT sms_template_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_template sms_template_model_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template
    ADD CONSTRAINT sms_template_model_id_fkey FOREIGN KEY (model_id) REFERENCES public.ir_model(id) ON DELETE CASCADE;


--
-- Name: sms_template_preview sms_template_preview_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template_preview
    ADD CONSTRAINT sms_template_preview_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_template_preview sms_template_preview_sms_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template_preview
    ADD CONSTRAINT sms_template_preview_sms_template_id_fkey FOREIGN KEY (sms_template_id) REFERENCES public.sms_template(id) ON DELETE CASCADE;


--
-- Name: sms_template_preview sms_template_preview_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template_preview
    ADD CONSTRAINT sms_template_preview_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_template_reset sms_template_reset_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template_reset
    ADD CONSTRAINT sms_template_reset_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_template_reset sms_template_reset_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template_reset
    ADD CONSTRAINT sms_template_reset_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_template sms_template_sidebar_action_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template
    ADD CONSTRAINT sms_template_sidebar_action_id_fkey FOREIGN KEY (sidebar_action_id) REFERENCES public.ir_act_window(id) ON DELETE SET NULL;


--
-- Name: sms_template_sms_template_reset_rel sms_template_sms_template_reset_rel_sms_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template_sms_template_reset_rel
    ADD CONSTRAINT sms_template_sms_template_reset_rel_sms_template_id_fkey FOREIGN KEY (sms_template_id) REFERENCES public.sms_template(id) ON DELETE CASCADE;


--
-- Name: sms_template_sms_template_reset_rel sms_template_sms_template_reset_rel_sms_template_reset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template_sms_template_reset_rel
    ADD CONSTRAINT sms_template_sms_template_reset_rel_sms_template_reset_id_fkey FOREIGN KEY (sms_template_reset_id) REFERENCES public.sms_template_reset(id) ON DELETE CASCADE;


--
-- Name: sms_template sms_template_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_template
    ADD CONSTRAINT sms_template_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_tracker sms_tracker_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_tracker
    ADD CONSTRAINT sms_tracker_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: sms_tracker sms_tracker_mail_notification_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_tracker
    ADD CONSTRAINT sms_tracker_mail_notification_id_fkey FOREIGN KEY (mail_notification_id) REFERENCES public.mail_notification(id) ON DELETE CASCADE;


--
-- Name: sms_tracker sms_tracker_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.sms_tracker
    ADD CONSTRAINT sms_tracker_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter snailmail_letter_attachment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter
    ADD CONSTRAINT snailmail_letter_attachment_id_fkey FOREIGN KEY (attachment_id) REFERENCES public.ir_attachment(id) ON DELETE CASCADE;


--
-- Name: snailmail_letter snailmail_letter_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter
    ADD CONSTRAINT snailmail_letter_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: snailmail_letter snailmail_letter_country_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter
    ADD CONSTRAINT snailmail_letter_country_id_fkey FOREIGN KEY (country_id) REFERENCES public.res_country(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter snailmail_letter_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter
    ADD CONSTRAINT snailmail_letter_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter_format_error snailmail_letter_format_error_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter_format_error
    ADD CONSTRAINT snailmail_letter_format_error_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter_format_error snailmail_letter_format_error_message_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter_format_error
    ADD CONSTRAINT snailmail_letter_format_error_message_id_fkey FOREIGN KEY (message_id) REFERENCES public.mail_message(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter_format_error snailmail_letter_format_error_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter_format_error
    ADD CONSTRAINT snailmail_letter_format_error_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter snailmail_letter_message_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter
    ADD CONSTRAINT snailmail_letter_message_id_fkey FOREIGN KEY (message_id) REFERENCES public.mail_message(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter_missing_required_fields snailmail_letter_missing_required_fields_country_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter_missing_required_fields
    ADD CONSTRAINT snailmail_letter_missing_required_fields_country_id_fkey FOREIGN KEY (country_id) REFERENCES public.res_country(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter_missing_required_fields snailmail_letter_missing_required_fields_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter_missing_required_fields
    ADD CONSTRAINT snailmail_letter_missing_required_fields_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter_missing_required_fields snailmail_letter_missing_required_fields_letter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter_missing_required_fields
    ADD CONSTRAINT snailmail_letter_missing_required_fields_letter_id_fkey FOREIGN KEY (letter_id) REFERENCES public.snailmail_letter(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter_missing_required_fields snailmail_letter_missing_required_fields_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter_missing_required_fields
    ADD CONSTRAINT snailmail_letter_missing_required_fields_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter_missing_required_fields snailmail_letter_missing_required_fields_state_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter_missing_required_fields
    ADD CONSTRAINT snailmail_letter_missing_required_fields_state_id_fkey FOREIGN KEY (state_id) REFERENCES public.res_country_state(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter_missing_required_fields snailmail_letter_missing_required_fields_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter_missing_required_fields
    ADD CONSTRAINT snailmail_letter_missing_required_fields_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter snailmail_letter_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter
    ADD CONSTRAINT snailmail_letter_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE RESTRICT;


--
-- Name: snailmail_letter snailmail_letter_report_template_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter
    ADD CONSTRAINT snailmail_letter_report_template_fkey FOREIGN KEY (report_template) REFERENCES public.ir_act_report_xml(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter snailmail_letter_state_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter
    ADD CONSTRAINT snailmail_letter_state_id_fkey FOREIGN KEY (state_id) REFERENCES public.res_country_state(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter snailmail_letter_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter
    ADD CONSTRAINT snailmail_letter_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: snailmail_letter snailmail_letter_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.snailmail_letter
    ADD CONSTRAINT snailmail_letter_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: spreadsheet_dashboard spreadsheet_dashboard_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.spreadsheet_dashboard
    ADD CONSTRAINT spreadsheet_dashboard_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: spreadsheet_dashboard spreadsheet_dashboard_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.spreadsheet_dashboard
    ADD CONSTRAINT spreadsheet_dashboard_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: spreadsheet_dashboard spreadsheet_dashboard_dashboard_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.spreadsheet_dashboard
    ADD CONSTRAINT spreadsheet_dashboard_dashboard_group_id_fkey FOREIGN KEY (dashboard_group_id) REFERENCES public.spreadsheet_dashboard_group(id) ON DELETE RESTRICT;


--
-- Name: spreadsheet_dashboard_group spreadsheet_dashboard_group_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.spreadsheet_dashboard_group
    ADD CONSTRAINT spreadsheet_dashboard_group_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: spreadsheet_dashboard_group spreadsheet_dashboard_group_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.spreadsheet_dashboard_group
    ADD CONSTRAINT spreadsheet_dashboard_group_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: spreadsheet_dashboard_share spreadsheet_dashboard_share_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.spreadsheet_dashboard_share
    ADD CONSTRAINT spreadsheet_dashboard_share_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: spreadsheet_dashboard_share spreadsheet_dashboard_share_dashboard_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.spreadsheet_dashboard_share
    ADD CONSTRAINT spreadsheet_dashboard_share_dashboard_id_fkey FOREIGN KEY (dashboard_id) REFERENCES public.spreadsheet_dashboard(id) ON DELETE CASCADE;


--
-- Name: spreadsheet_dashboard_share spreadsheet_dashboard_share_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.spreadsheet_dashboard_share
    ADD CONSTRAINT spreadsheet_dashboard_share_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: spreadsheet_dashboard spreadsheet_dashboard_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.spreadsheet_dashboard
    ADD CONSTRAINT spreadsheet_dashboard_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_backorder_confirmation stock_backorder_confirmation_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_backorder_confirmation
    ADD CONSTRAINT stock_backorder_confirmation_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_backorder_confirmation_line stock_backorder_confirmation_lin_backorder_confirmation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_backorder_confirmation_line
    ADD CONSTRAINT stock_backorder_confirmation_lin_backorder_confirmation_id_fkey FOREIGN KEY (backorder_confirmation_id) REFERENCES public.stock_backorder_confirmation(id) ON DELETE SET NULL;


--
-- Name: stock_backorder_confirmation_line stock_backorder_confirmation_line_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_backorder_confirmation_line
    ADD CONSTRAINT stock_backorder_confirmation_line_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_backorder_confirmation_line stock_backorder_confirmation_line_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_backorder_confirmation_line
    ADD CONSTRAINT stock_backorder_confirmation_line_picking_id_fkey FOREIGN KEY (picking_id) REFERENCES public.stock_picking(id) ON DELETE SET NULL;


--
-- Name: stock_backorder_confirmation_line stock_backorder_confirmation_line_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_backorder_confirmation_line
    ADD CONSTRAINT stock_backorder_confirmation_line_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_backorder_confirmation stock_backorder_confirmation_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_backorder_confirmation
    ADD CONSTRAINT stock_backorder_confirmation_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_change_product_qty stock_change_product_qty_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_change_product_qty
    ADD CONSTRAINT stock_change_product_qty_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_change_product_qty stock_change_product_qty_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_change_product_qty
    ADD CONSTRAINT stock_change_product_qty_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: stock_change_product_qty stock_change_product_qty_product_tmpl_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_change_product_qty
    ADD CONSTRAINT stock_change_product_qty_product_tmpl_id_fkey FOREIGN KEY (product_tmpl_id) REFERENCES public.product_template(id) ON DELETE CASCADE;


--
-- Name: stock_change_product_qty stock_change_product_qty_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_change_product_qty
    ADD CONSTRAINT stock_change_product_qty_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_conflict_quant_rel stock_conflict_quant_rel_stock_inventory_conflict_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_conflict_quant_rel
    ADD CONSTRAINT stock_conflict_quant_rel_stock_inventory_conflict_id_fkey FOREIGN KEY (stock_inventory_conflict_id) REFERENCES public.stock_inventory_conflict(id) ON DELETE CASCADE;


--
-- Name: stock_conflict_quant_rel stock_conflict_quant_rel_stock_quant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_conflict_quant_rel
    ADD CONSTRAINT stock_conflict_quant_rel_stock_quant_id_fkey FOREIGN KEY (stock_quant_id) REFERENCES public.stock_quant(id) ON DELETE CASCADE;


--
-- Name: stock_inventory_adjustment_name_stock_quant_rel stock_inventory_adjustment_na_stock_inventory_adjustment_n_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_adjustment_name_stock_quant_rel
    ADD CONSTRAINT stock_inventory_adjustment_na_stock_inventory_adjustment_n_fkey FOREIGN KEY (stock_inventory_adjustment_name_id) REFERENCES public.stock_inventory_adjustment_name(id) ON DELETE CASCADE;


--
-- Name: stock_inventory_adjustment_name stock_inventory_adjustment_name_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_adjustment_name
    ADD CONSTRAINT stock_inventory_adjustment_name_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_inventory_adjustment_name_stock_quant_rel stock_inventory_adjustment_name_stock_quant_stock_quant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_adjustment_name_stock_quant_rel
    ADD CONSTRAINT stock_inventory_adjustment_name_stock_quant_stock_quant_id_fkey FOREIGN KEY (stock_quant_id) REFERENCES public.stock_quant(id) ON DELETE CASCADE;


--
-- Name: stock_inventory_adjustment_name stock_inventory_adjustment_name_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_adjustment_name
    ADD CONSTRAINT stock_inventory_adjustment_name_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_inventory_conflict stock_inventory_conflict_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_conflict
    ADD CONSTRAINT stock_inventory_conflict_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_inventory_conflict_stock_quant_rel stock_inventory_conflict_stock_quant_rel_stock_quant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_conflict_stock_quant_rel
    ADD CONSTRAINT stock_inventory_conflict_stock_quant_rel_stock_quant_id_fkey FOREIGN KEY (stock_quant_id) REFERENCES public.stock_quant(id) ON DELETE CASCADE;


--
-- Name: stock_inventory_conflict_stock_quant_rel stock_inventory_conflict_stock_stock_inventory_conflict_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_conflict_stock_quant_rel
    ADD CONSTRAINT stock_inventory_conflict_stock_stock_inventory_conflict_id_fkey FOREIGN KEY (stock_inventory_conflict_id) REFERENCES public.stock_inventory_conflict(id) ON DELETE CASCADE;


--
-- Name: stock_inventory_conflict stock_inventory_conflict_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_conflict
    ADD CONSTRAINT stock_inventory_conflict_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_inventory_warning stock_inventory_warning_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_warning
    ADD CONSTRAINT stock_inventory_warning_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_inventory_warning_stock_quant_rel stock_inventory_warning_stock_q_stock_inventory_warning_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_warning_stock_quant_rel
    ADD CONSTRAINT stock_inventory_warning_stock_q_stock_inventory_warning_id_fkey FOREIGN KEY (stock_inventory_warning_id) REFERENCES public.stock_inventory_warning(id) ON DELETE CASCADE;


--
-- Name: stock_inventory_warning_stock_quant_rel stock_inventory_warning_stock_quant_rel_stock_quant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_warning_stock_quant_rel
    ADD CONSTRAINT stock_inventory_warning_stock_quant_rel_stock_quant_id_fkey FOREIGN KEY (stock_quant_id) REFERENCES public.stock_quant(id) ON DELETE CASCADE;


--
-- Name: stock_inventory_warning stock_inventory_warning_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_inventory_warning
    ADD CONSTRAINT stock_inventory_warning_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_location stock_location_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_location
    ADD CONSTRAINT stock_location_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: stock_location stock_location_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_location
    ADD CONSTRAINT stock_location_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_location stock_location_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_location
    ADD CONSTRAINT stock_location_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_location stock_location_removal_strategy_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_location
    ADD CONSTRAINT stock_location_removal_strategy_id_fkey FOREIGN KEY (removal_strategy_id) REFERENCES public.product_removal(id) ON DELETE SET NULL;


--
-- Name: stock_location stock_location_storage_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_location
    ADD CONSTRAINT stock_location_storage_category_id_fkey FOREIGN KEY (storage_category_id) REFERENCES public.stock_storage_category(id) ON DELETE SET NULL;


--
-- Name: stock_location stock_location_valuation_in_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_location
    ADD CONSTRAINT stock_location_valuation_in_account_id_fkey FOREIGN KEY (valuation_in_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: stock_location stock_location_valuation_out_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_location
    ADD CONSTRAINT stock_location_valuation_out_account_id_fkey FOREIGN KEY (valuation_out_account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: stock_location stock_location_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_location
    ADD CONSTRAINT stock_location_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.stock_warehouse(id) ON DELETE SET NULL;


--
-- Name: stock_location stock_location_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_location
    ADD CONSTRAINT stock_location_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_lot stock_lot_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_lot
    ADD CONSTRAINT stock_lot_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: stock_lot stock_lot_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_lot
    ADD CONSTRAINT stock_lot_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_lot stock_lot_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_lot
    ADD CONSTRAINT stock_lot_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_lot stock_lot_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_lot
    ADD CONSTRAINT stock_lot_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE RESTRICT;


--
-- Name: stock_lot stock_lot_product_uom_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_lot
    ADD CONSTRAINT stock_lot_product_uom_id_fkey FOREIGN KEY (product_uom_id) REFERENCES public.uom_uom(id) ON DELETE SET NULL;


--
-- Name: stock_lot stock_lot_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_lot
    ADD CONSTRAINT stock_lot_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: stock_move stock_move_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_move_created_purchase_line_rel stock_move_created_purchase_line__created_purchase_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_created_purchase_line_rel
    ADD CONSTRAINT stock_move_created_purchase_line__created_purchase_line_id_fkey FOREIGN KEY (created_purchase_line_id) REFERENCES public.purchase_order_line(id) ON DELETE CASCADE;


--
-- Name: stock_move_created_purchase_line_rel stock_move_created_purchase_line_rel_move_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_created_purchase_line_rel
    ADD CONSTRAINT stock_move_created_purchase_line_rel_move_id_fkey FOREIGN KEY (move_id) REFERENCES public.stock_move(id) ON DELETE CASCADE;


--
-- Name: stock_move stock_move_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.procurement_group(id) ON DELETE SET NULL;


--
-- Name: stock_move_line stock_move_line_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: stock_move_line_consume_rel stock_move_line_consume_rel_consume_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line_consume_rel
    ADD CONSTRAINT stock_move_line_consume_rel_consume_line_id_fkey FOREIGN KEY (consume_line_id) REFERENCES public.stock_move_line(id) ON DELETE CASCADE;


--
-- Name: stock_move_line_consume_rel stock_move_line_consume_rel_produce_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line_consume_rel
    ADD CONSTRAINT stock_move_line_consume_rel_produce_line_id_fkey FOREIGN KEY (produce_line_id) REFERENCES public.stock_move_line(id) ON DELETE CASCADE;


--
-- Name: stock_move_line stock_move_line_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_move_line stock_move_line_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_location_dest_id_fkey FOREIGN KEY (location_dest_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_move_line stock_move_line_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_move_line stock_move_line_lot_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_lot_id_fkey FOREIGN KEY (lot_id) REFERENCES public.stock_lot(id) ON DELETE SET NULL;


--
-- Name: stock_move_line stock_move_line_move_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_move_id_fkey FOREIGN KEY (move_id) REFERENCES public.stock_move(id) ON DELETE SET NULL;


--
-- Name: stock_move_line stock_move_line_owner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_owner_id_fkey FOREIGN KEY (owner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_move_line stock_move_line_package_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_package_id_fkey FOREIGN KEY (package_id) REFERENCES public.stock_quant_package(id) ON DELETE RESTRICT;


--
-- Name: stock_move_line stock_move_line_package_level_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_package_level_id_fkey FOREIGN KEY (package_level_id) REFERENCES public.stock_package_level(id) ON DELETE SET NULL;


--
-- Name: stock_move_line stock_move_line_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_picking_id_fkey FOREIGN KEY (picking_id) REFERENCES public.stock_picking(id) ON DELETE SET NULL;


--
-- Name: stock_move_line stock_move_line_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: stock_move_line stock_move_line_product_uom_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_product_uom_id_fkey FOREIGN KEY (product_uom_id) REFERENCES public.uom_uom(id) ON DELETE RESTRICT;


--
-- Name: stock_move_line stock_move_line_result_package_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_result_package_id_fkey FOREIGN KEY (result_package_id) REFERENCES public.stock_quant_package(id) ON DELETE RESTRICT;


--
-- Name: stock_move_line stock_move_line_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_line
    ADD CONSTRAINT stock_move_line_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_location_dest_id_fkey FOREIGN KEY (location_dest_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_move stock_move_location_final_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_location_final_id_fkey FOREIGN KEY (location_final_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_move_move_rel stock_move_move_rel_move_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_move_rel
    ADD CONSTRAINT stock_move_move_rel_move_dest_id_fkey FOREIGN KEY (move_dest_id) REFERENCES public.stock_move(id) ON DELETE CASCADE;


--
-- Name: stock_move_move_rel stock_move_move_rel_move_orig_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move_move_rel
    ADD CONSTRAINT stock_move_move_rel_move_orig_id_fkey FOREIGN KEY (move_orig_id) REFERENCES public.stock_move(id) ON DELETE CASCADE;


--
-- Name: stock_move stock_move_orderpoint_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_orderpoint_id_fkey FOREIGN KEY (orderpoint_id) REFERENCES public.stock_warehouse_orderpoint(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_origin_returned_move_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_origin_returned_move_id_fkey FOREIGN KEY (origin_returned_move_id) REFERENCES public.stock_move(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_package_level_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_package_level_id_fkey FOREIGN KEY (package_level_id) REFERENCES public.stock_package_level(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_picking_id_fkey FOREIGN KEY (picking_id) REFERENCES public.stock_picking(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_picking_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_picking_type_id_fkey FOREIGN KEY (picking_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE RESTRICT;


--
-- Name: stock_move stock_move_product_packaging_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_product_packaging_id_fkey FOREIGN KEY (product_packaging_id) REFERENCES public.product_packaging(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_product_uom_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_product_uom_fkey FOREIGN KEY (product_uom) REFERENCES public.uom_uom(id) ON DELETE RESTRICT;


--
-- Name: stock_move stock_move_purchase_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_purchase_line_id_fkey FOREIGN KEY (purchase_line_id) REFERENCES public.purchase_order_line(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_repair_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_repair_id_fkey FOREIGN KEY (repair_id) REFERENCES public.repair_order(id) ON DELETE CASCADE;


--
-- Name: stock_move stock_move_restrict_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_restrict_partner_id_fkey FOREIGN KEY (restrict_partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_rule_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_rule_id_fkey FOREIGN KEY (rule_id) REFERENCES public.stock_rule(id) ON DELETE RESTRICT;


--
-- Name: stock_move stock_move_sale_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_sale_line_id_fkey FOREIGN KEY (sale_line_id) REFERENCES public.sale_order_line(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_scrap_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_scrap_id_fkey FOREIGN KEY (scrap_id) REFERENCES public.stock_scrap(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.stock_warehouse(id) ON DELETE SET NULL;


--
-- Name: stock_move stock_move_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_move
    ADD CONSTRAINT stock_move_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_orderpoint_snooze stock_orderpoint_snooze_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_orderpoint_snooze
    ADD CONSTRAINT stock_orderpoint_snooze_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_orderpoint_snooze_stock_warehouse_orderpoint_rel stock_orderpoint_snooze_stock_stock_warehouse_orderpoint_i_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_orderpoint_snooze_stock_warehouse_orderpoint_rel
    ADD CONSTRAINT stock_orderpoint_snooze_stock_stock_warehouse_orderpoint_i_fkey FOREIGN KEY (stock_warehouse_orderpoint_id) REFERENCES public.stock_warehouse_orderpoint(id) ON DELETE CASCADE;


--
-- Name: stock_orderpoint_snooze_stock_warehouse_orderpoint_rel stock_orderpoint_snooze_stock_w_stock_orderpoint_snooze_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_orderpoint_snooze_stock_warehouse_orderpoint_rel
    ADD CONSTRAINT stock_orderpoint_snooze_stock_w_stock_orderpoint_snooze_id_fkey FOREIGN KEY (stock_orderpoint_snooze_id) REFERENCES public.stock_orderpoint_snooze(id) ON DELETE CASCADE;


--
-- Name: stock_orderpoint_snooze stock_orderpoint_snooze_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_orderpoint_snooze
    ADD CONSTRAINT stock_orderpoint_snooze_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_package_destination stock_package_destination_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_destination
    ADD CONSTRAINT stock_package_destination_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_package_destination stock_package_destination_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_destination
    ADD CONSTRAINT stock_package_destination_location_dest_id_fkey FOREIGN KEY (location_dest_id) REFERENCES public.stock_location(id) ON DELETE CASCADE;


--
-- Name: stock_package_destination stock_package_destination_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_destination
    ADD CONSTRAINT stock_package_destination_picking_id_fkey FOREIGN KEY (picking_id) REFERENCES public.stock_picking(id) ON DELETE CASCADE;


--
-- Name: stock_package_destination stock_package_destination_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_destination
    ADD CONSTRAINT stock_package_destination_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_package_level stock_package_level_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_level
    ADD CONSTRAINT stock_package_level_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: stock_package_level stock_package_level_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_level
    ADD CONSTRAINT stock_package_level_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_package_level stock_package_level_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_level
    ADD CONSTRAINT stock_package_level_location_dest_id_fkey FOREIGN KEY (location_dest_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_package_level stock_package_level_package_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_level
    ADD CONSTRAINT stock_package_level_package_id_fkey FOREIGN KEY (package_id) REFERENCES public.stock_quant_package(id) ON DELETE RESTRICT;


--
-- Name: stock_package_level stock_package_level_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_level
    ADD CONSTRAINT stock_package_level_picking_id_fkey FOREIGN KEY (picking_id) REFERENCES public.stock_picking(id) ON DELETE SET NULL;


--
-- Name: stock_package_level stock_package_level_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_level
    ADD CONSTRAINT stock_package_level_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_package_type stock_package_type_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_type
    ADD CONSTRAINT stock_package_type_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: stock_package_type stock_package_type_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_type
    ADD CONSTRAINT stock_package_type_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_package_type_stock_putaway_rule_rel stock_package_type_stock_putaway_rul_stock_package_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_type_stock_putaway_rule_rel
    ADD CONSTRAINT stock_package_type_stock_putaway_rul_stock_package_type_id_fkey FOREIGN KEY (stock_package_type_id) REFERENCES public.stock_package_type(id) ON DELETE CASCADE;


--
-- Name: stock_package_type_stock_putaway_rule_rel stock_package_type_stock_putaway_rul_stock_putaway_rule_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_type_stock_putaway_rule_rel
    ADD CONSTRAINT stock_package_type_stock_putaway_rul_stock_putaway_rule_id_fkey FOREIGN KEY (stock_putaway_rule_id) REFERENCES public.stock_putaway_rule(id) ON DELETE CASCADE;


--
-- Name: stock_package_type stock_package_type_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_package_type
    ADD CONSTRAINT stock_package_type_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_backorder_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_backorder_id_fkey FOREIGN KEY (backorder_id) REFERENCES public.stock_picking(id) ON DELETE SET NULL;


--
-- Name: stock_picking_backorder_rel stock_picking_backorder_rel_stock_backorder_confirmation_i_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_backorder_rel
    ADD CONSTRAINT stock_picking_backorder_rel_stock_backorder_confirmation_i_fkey FOREIGN KEY (stock_backorder_confirmation_id) REFERENCES public.stock_backorder_confirmation(id) ON DELETE CASCADE;


--
-- Name: stock_picking_backorder_rel stock_picking_backorder_rel_stock_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_backorder_rel
    ADD CONSTRAINT stock_picking_backorder_rel_stock_picking_id_fkey FOREIGN KEY (stock_picking_id) REFERENCES public.stock_picking(id) ON DELETE CASCADE;


--
-- Name: stock_picking stock_picking_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.procurement_group(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_location_dest_id_fkey FOREIGN KEY (location_dest_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_picking stock_picking_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_picking stock_picking_owner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_owner_id_fkey FOREIGN KEY (owner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_picking_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_picking_type_id_fkey FOREIGN KEY (picking_type_id) REFERENCES public.stock_picking_type(id) ON DELETE RESTRICT;


--
-- Name: stock_picking stock_picking_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.project_project(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_repair_order_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_repair_order_id_fkey FOREIGN KEY (repair_order_id) REFERENCES public.repair_order(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_return_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_return_id_fkey FOREIGN KEY (return_id) REFERENCES public.stock_picking(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_sale_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_sale_id_fkey FOREIGN KEY (sale_id) REFERENCES public.sale_order(id) ON DELETE SET NULL;


--
-- Name: stock_picking_sms_rel stock_picking_sms_rel_confirm_stock_sms_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_sms_rel
    ADD CONSTRAINT stock_picking_sms_rel_confirm_stock_sms_id_fkey FOREIGN KEY (confirm_stock_sms_id) REFERENCES public.confirm_stock_sms(id) ON DELETE CASCADE;


--
-- Name: stock_picking_sms_rel stock_picking_sms_rel_stock_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_sms_rel
    ADD CONSTRAINT stock_picking_sms_rel_stock_picking_id_fkey FOREIGN KEY (stock_picking_id) REFERENCES public.stock_picking(id) ON DELETE CASCADE;


--
-- Name: stock_picking_type stock_picking_type_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: stock_picking_type stock_picking_type_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_picking_type stock_picking_type_default_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_default_location_dest_id_fkey FOREIGN KEY (default_location_dest_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_picking_type stock_picking_type_default_location_src_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_default_location_src_id_fkey FOREIGN KEY (default_location_src_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_picking_type stock_picking_type_default_product_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_default_product_location_dest_id_fkey FOREIGN KEY (default_product_location_dest_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_picking_type stock_picking_type_default_product_location_src_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_default_product_location_src_id_fkey FOREIGN KEY (default_product_location_src_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_picking_type stock_picking_type_default_recycle_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_default_recycle_location_dest_id_fkey FOREIGN KEY (default_recycle_location_dest_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_picking_type stock_picking_type_default_remove_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_default_remove_location_dest_id_fkey FOREIGN KEY (default_remove_location_dest_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_picking_type stock_picking_type_return_picking_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_return_picking_type_id_fkey FOREIGN KEY (return_picking_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_picking_type stock_picking_type_sequence_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_sequence_id_fkey FOREIGN KEY (sequence_id) REFERENCES public.ir_sequence(id) ON DELETE SET NULL;


--
-- Name: stock_picking_type stock_picking_type_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.stock_warehouse(id) ON DELETE CASCADE;


--
-- Name: stock_picking_type stock_picking_type_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking_type
    ADD CONSTRAINT stock_picking_type_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_picking stock_picking_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_picking
    ADD CONSTRAINT stock_picking_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_putaway_rule stock_putaway_rule_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_putaway_rule
    ADD CONSTRAINT stock_putaway_rule_category_id_fkey FOREIGN KEY (category_id) REFERENCES public.product_category(id) ON DELETE CASCADE;


--
-- Name: stock_putaway_rule stock_putaway_rule_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_putaway_rule
    ADD CONSTRAINT stock_putaway_rule_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: stock_putaway_rule stock_putaway_rule_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_putaway_rule
    ADD CONSTRAINT stock_putaway_rule_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_putaway_rule stock_putaway_rule_location_in_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_putaway_rule
    ADD CONSTRAINT stock_putaway_rule_location_in_id_fkey FOREIGN KEY (location_in_id) REFERENCES public.stock_location(id) ON DELETE CASCADE;


--
-- Name: stock_putaway_rule stock_putaway_rule_location_out_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_putaway_rule
    ADD CONSTRAINT stock_putaway_rule_location_out_id_fkey FOREIGN KEY (location_out_id) REFERENCES public.stock_location(id) ON DELETE CASCADE;


--
-- Name: stock_putaway_rule stock_putaway_rule_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_putaway_rule
    ADD CONSTRAINT stock_putaway_rule_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: stock_putaway_rule stock_putaway_rule_storage_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_putaway_rule
    ADD CONSTRAINT stock_putaway_rule_storage_category_id_fkey FOREIGN KEY (storage_category_id) REFERENCES public.stock_storage_category(id) ON DELETE CASCADE;


--
-- Name: stock_putaway_rule stock_putaway_rule_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_putaway_rule
    ADD CONSTRAINT stock_putaway_rule_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_quant stock_quant_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant
    ADD CONSTRAINT stock_quant_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: stock_quant stock_quant_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant
    ADD CONSTRAINT stock_quant_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_quant stock_quant_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant
    ADD CONSTRAINT stock_quant_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_quant stock_quant_lot_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant
    ADD CONSTRAINT stock_quant_lot_id_fkey FOREIGN KEY (lot_id) REFERENCES public.stock_lot(id) ON DELETE RESTRICT;


--
-- Name: stock_quant stock_quant_owner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant
    ADD CONSTRAINT stock_quant_owner_id_fkey FOREIGN KEY (owner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_quant_package stock_quant_package_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_package
    ADD CONSTRAINT stock_quant_package_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: stock_quant_package stock_quant_package_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_package
    ADD CONSTRAINT stock_quant_package_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_quant stock_quant_package_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant
    ADD CONSTRAINT stock_quant_package_id_fkey FOREIGN KEY (package_id) REFERENCES public.stock_quant_package(id) ON DELETE RESTRICT;


--
-- Name: stock_quant_package stock_quant_package_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_package
    ADD CONSTRAINT stock_quant_package_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_quant_package stock_quant_package_package_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_package
    ADD CONSTRAINT stock_quant_package_package_type_id_fkey FOREIGN KEY (package_type_id) REFERENCES public.stock_package_type(id) ON DELETE SET NULL;


--
-- Name: stock_quant_package stock_quant_package_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_package
    ADD CONSTRAINT stock_quant_package_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_quant stock_quant_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant
    ADD CONSTRAINT stock_quant_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE RESTRICT;


--
-- Name: stock_quant_relocate stock_quant_relocate_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_relocate
    ADD CONSTRAINT stock_quant_relocate_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_quant_relocate stock_quant_relocate_dest_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_relocate
    ADD CONSTRAINT stock_quant_relocate_dest_location_id_fkey FOREIGN KEY (dest_location_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_quant_relocate stock_quant_relocate_dest_package_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_relocate
    ADD CONSTRAINT stock_quant_relocate_dest_package_id_fkey FOREIGN KEY (dest_package_id) REFERENCES public.stock_quant_package(id) ON DELETE SET NULL;


--
-- Name: stock_quant_relocate stock_quant_relocate_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_relocate
    ADD CONSTRAINT stock_quant_relocate_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_quant_stock_quant_relocate_rel stock_quant_stock_quant_relocate_r_stock_quant_relocate_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_stock_quant_relocate_rel
    ADD CONSTRAINT stock_quant_stock_quant_relocate_r_stock_quant_relocate_id_fkey FOREIGN KEY (stock_quant_relocate_id) REFERENCES public.stock_quant_relocate(id) ON DELETE CASCADE;


--
-- Name: stock_quant_stock_quant_relocate_rel stock_quant_stock_quant_relocate_rel_stock_quant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_stock_quant_relocate_rel
    ADD CONSTRAINT stock_quant_stock_quant_relocate_rel_stock_quant_id_fkey FOREIGN KEY (stock_quant_id) REFERENCES public.stock_quant(id) ON DELETE CASCADE;


--
-- Name: stock_quant_stock_request_count_rel stock_quant_stock_request_count_rel_stock_quant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_stock_request_count_rel
    ADD CONSTRAINT stock_quant_stock_request_count_rel_stock_quant_id_fkey FOREIGN KEY (stock_quant_id) REFERENCES public.stock_quant(id) ON DELETE CASCADE;


--
-- Name: stock_quant_stock_request_count_rel stock_quant_stock_request_count_rel_stock_request_count_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_stock_request_count_rel
    ADD CONSTRAINT stock_quant_stock_request_count_rel_stock_request_count_id_fkey FOREIGN KEY (stock_request_count_id) REFERENCES public.stock_request_count(id) ON DELETE CASCADE;


--
-- Name: stock_quant_stock_track_confirmation_rel stock_quant_stock_track_confir_stock_track_confirmation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_stock_track_confirmation_rel
    ADD CONSTRAINT stock_quant_stock_track_confir_stock_track_confirmation_id_fkey FOREIGN KEY (stock_track_confirmation_id) REFERENCES public.stock_track_confirmation(id) ON DELETE CASCADE;


--
-- Name: stock_quant_stock_track_confirmation_rel stock_quant_stock_track_confirmation_rel_stock_quant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant_stock_track_confirmation_rel
    ADD CONSTRAINT stock_quant_stock_track_confirmation_rel_stock_quant_id_fkey FOREIGN KEY (stock_quant_id) REFERENCES public.stock_quant(id) ON DELETE CASCADE;


--
-- Name: stock_quant stock_quant_storage_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant
    ADD CONSTRAINT stock_quant_storage_category_id_fkey FOREIGN KEY (storage_category_id) REFERENCES public.stock_storage_category(id) ON DELETE SET NULL;


--
-- Name: stock_quant stock_quant_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant
    ADD CONSTRAINT stock_quant_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_quant stock_quant_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quant
    ADD CONSTRAINT stock_quant_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_quantity_history stock_quantity_history_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quantity_history
    ADD CONSTRAINT stock_quantity_history_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_quantity_history stock_quantity_history_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_quantity_history
    ADD CONSTRAINT stock_quantity_history_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_replenishment_info stock_replenishment_info_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_replenishment_info
    ADD CONSTRAINT stock_replenishment_info_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_replenishment_info stock_replenishment_info_orderpoint_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_replenishment_info
    ADD CONSTRAINT stock_replenishment_info_orderpoint_id_fkey FOREIGN KEY (orderpoint_id) REFERENCES public.stock_warehouse_orderpoint(id) ON DELETE SET NULL;


--
-- Name: stock_replenishment_info stock_replenishment_info_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_replenishment_info
    ADD CONSTRAINT stock_replenishment_info_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_replenishment_option stock_replenishment_option_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_replenishment_option
    ADD CONSTRAINT stock_replenishment_option_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_replenishment_option stock_replenishment_option_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_replenishment_option
    ADD CONSTRAINT stock_replenishment_option_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE SET NULL;


--
-- Name: stock_replenishment_option stock_replenishment_option_replenishment_info_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_replenishment_option
    ADD CONSTRAINT stock_replenishment_option_replenishment_info_id_fkey FOREIGN KEY (replenishment_info_id) REFERENCES public.stock_replenishment_info(id) ON DELETE SET NULL;


--
-- Name: stock_replenishment_option stock_replenishment_option_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_replenishment_option
    ADD CONSTRAINT stock_replenishment_option_route_id_fkey FOREIGN KEY (route_id) REFERENCES public.stock_route(id) ON DELETE SET NULL;


--
-- Name: stock_replenishment_option stock_replenishment_option_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_replenishment_option
    ADD CONSTRAINT stock_replenishment_option_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_request_count stock_request_count_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_request_count
    ADD CONSTRAINT stock_request_count_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_request_count stock_request_count_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_request_count
    ADD CONSTRAINT stock_request_count_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_request_count stock_request_count_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_request_count
    ADD CONSTRAINT stock_request_count_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_return_picking stock_return_picking_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_return_picking
    ADD CONSTRAINT stock_return_picking_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_return_picking_line stock_return_picking_line_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_return_picking_line
    ADD CONSTRAINT stock_return_picking_line_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_return_picking_line stock_return_picking_line_move_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_return_picking_line
    ADD CONSTRAINT stock_return_picking_line_move_id_fkey FOREIGN KEY (move_id) REFERENCES public.stock_move(id) ON DELETE SET NULL;


--
-- Name: stock_return_picking_line stock_return_picking_line_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_return_picking_line
    ADD CONSTRAINT stock_return_picking_line_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: stock_return_picking_line stock_return_picking_line_wizard_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_return_picking_line
    ADD CONSTRAINT stock_return_picking_line_wizard_id_fkey FOREIGN KEY (wizard_id) REFERENCES public.stock_return_picking(id) ON DELETE SET NULL;


--
-- Name: stock_return_picking_line stock_return_picking_line_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_return_picking_line
    ADD CONSTRAINT stock_return_picking_line_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_return_picking stock_return_picking_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_return_picking
    ADD CONSTRAINT stock_return_picking_picking_id_fkey FOREIGN KEY (picking_id) REFERENCES public.stock_picking(id) ON DELETE SET NULL;


--
-- Name: stock_return_picking stock_return_picking_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_return_picking
    ADD CONSTRAINT stock_return_picking_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_route_categ stock_route_categ_categ_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_categ
    ADD CONSTRAINT stock_route_categ_categ_id_fkey FOREIGN KEY (categ_id) REFERENCES public.product_category(id) ON DELETE CASCADE;


--
-- Name: stock_route_categ stock_route_categ_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_categ
    ADD CONSTRAINT stock_route_categ_route_id_fkey FOREIGN KEY (route_id) REFERENCES public.stock_route(id) ON DELETE CASCADE;


--
-- Name: stock_route stock_route_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route
    ADD CONSTRAINT stock_route_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: stock_route stock_route_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route
    ADD CONSTRAINT stock_route_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_route_move stock_route_move_move_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_move
    ADD CONSTRAINT stock_route_move_move_id_fkey FOREIGN KEY (move_id) REFERENCES public.stock_move(id) ON DELETE CASCADE;


--
-- Name: stock_route_move stock_route_move_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_move
    ADD CONSTRAINT stock_route_move_route_id_fkey FOREIGN KEY (route_id) REFERENCES public.stock_route(id) ON DELETE CASCADE;


--
-- Name: stock_route_packaging stock_route_packaging_packaging_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_packaging
    ADD CONSTRAINT stock_route_packaging_packaging_id_fkey FOREIGN KEY (packaging_id) REFERENCES public.product_packaging(id) ON DELETE CASCADE;


--
-- Name: stock_route_packaging stock_route_packaging_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_packaging
    ADD CONSTRAINT stock_route_packaging_route_id_fkey FOREIGN KEY (route_id) REFERENCES public.stock_route(id) ON DELETE CASCADE;


--
-- Name: stock_route_product stock_route_product_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_product
    ADD CONSTRAINT stock_route_product_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_template(id) ON DELETE CASCADE;


--
-- Name: stock_route_product stock_route_product_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_product
    ADD CONSTRAINT stock_route_product_route_id_fkey FOREIGN KEY (route_id) REFERENCES public.stock_route(id) ON DELETE CASCADE;


--
-- Name: stock_route_stock_rules_report_rel stock_route_stock_rules_report_rel_stock_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_stock_rules_report_rel
    ADD CONSTRAINT stock_route_stock_rules_report_rel_stock_route_id_fkey FOREIGN KEY (stock_route_id) REFERENCES public.stock_route(id) ON DELETE CASCADE;


--
-- Name: stock_route_stock_rules_report_rel stock_route_stock_rules_report_rel_stock_rules_report_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_stock_rules_report_rel
    ADD CONSTRAINT stock_route_stock_rules_report_rel_stock_rules_report_id_fkey FOREIGN KEY (stock_rules_report_id) REFERENCES public.stock_rules_report(id) ON DELETE CASCADE;


--
-- Name: stock_route stock_route_supplied_wh_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route
    ADD CONSTRAINT stock_route_supplied_wh_id_fkey FOREIGN KEY (supplied_wh_id) REFERENCES public.stock_warehouse(id) ON DELETE SET NULL;


--
-- Name: stock_route stock_route_supplier_wh_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route
    ADD CONSTRAINT stock_route_supplier_wh_id_fkey FOREIGN KEY (supplier_wh_id) REFERENCES public.stock_warehouse(id) ON DELETE SET NULL;


--
-- Name: stock_route_warehouse stock_route_warehouse_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_warehouse
    ADD CONSTRAINT stock_route_warehouse_route_id_fkey FOREIGN KEY (route_id) REFERENCES public.stock_route(id) ON DELETE CASCADE;


--
-- Name: stock_route_warehouse stock_route_warehouse_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route_warehouse
    ADD CONSTRAINT stock_route_warehouse_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.stock_warehouse(id) ON DELETE CASCADE;


--
-- Name: stock_route stock_route_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_route
    ADD CONSTRAINT stock_route_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_rule stock_rule_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: stock_rule stock_rule_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_rule stock_rule_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.procurement_group(id) ON DELETE SET NULL;


--
-- Name: stock_rule stock_rule_location_dest_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_location_dest_id_fkey FOREIGN KEY (location_dest_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_rule stock_rule_location_src_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_location_src_id_fkey FOREIGN KEY (location_src_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_rule stock_rule_partner_address_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_partner_address_id_fkey FOREIGN KEY (partner_address_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_rule stock_rule_picking_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_picking_type_id_fkey FOREIGN KEY (picking_type_id) REFERENCES public.stock_picking_type(id) ON DELETE RESTRICT;


--
-- Name: stock_rule stock_rule_propagate_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_propagate_warehouse_id_fkey FOREIGN KEY (propagate_warehouse_id) REFERENCES public.stock_warehouse(id) ON DELETE SET NULL;


--
-- Name: stock_rule stock_rule_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_route_id_fkey FOREIGN KEY (route_id) REFERENCES public.stock_route(id) ON DELETE CASCADE;


--
-- Name: stock_rule stock_rule_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.stock_warehouse(id) ON DELETE SET NULL;


--
-- Name: stock_rule stock_rule_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rule
    ADD CONSTRAINT stock_rule_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_rules_report stock_rules_report_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rules_report
    ADD CONSTRAINT stock_rules_report_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_rules_report stock_rules_report_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rules_report
    ADD CONSTRAINT stock_rules_report_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: stock_rules_report stock_rules_report_product_tmpl_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rules_report
    ADD CONSTRAINT stock_rules_report_product_tmpl_id_fkey FOREIGN KEY (product_tmpl_id) REFERENCES public.product_template(id) ON DELETE CASCADE;


--
-- Name: stock_rules_report_stock_warehouse_rel stock_rules_report_stock_warehouse_r_stock_rules_report_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rules_report_stock_warehouse_rel
    ADD CONSTRAINT stock_rules_report_stock_warehouse_r_stock_rules_report_id_fkey FOREIGN KEY (stock_rules_report_id) REFERENCES public.stock_rules_report(id) ON DELETE CASCADE;


--
-- Name: stock_rules_report_stock_warehouse_rel stock_rules_report_stock_warehouse_rel_stock_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rules_report_stock_warehouse_rel
    ADD CONSTRAINT stock_rules_report_stock_warehouse_rel_stock_warehouse_id_fkey FOREIGN KEY (stock_warehouse_id) REFERENCES public.stock_warehouse(id) ON DELETE CASCADE;


--
-- Name: stock_rules_report stock_rules_report_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_rules_report
    ADD CONSTRAINT stock_rules_report_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_scrap stock_scrap_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: stock_scrap stock_scrap_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_scrap stock_scrap_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_scrap stock_scrap_lot_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_lot_id_fkey FOREIGN KEY (lot_id) REFERENCES public.stock_lot(id) ON DELETE SET NULL;


--
-- Name: stock_scrap stock_scrap_owner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_owner_id_fkey FOREIGN KEY (owner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_scrap stock_scrap_package_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_package_id_fkey FOREIGN KEY (package_id) REFERENCES public.stock_quant_package(id) ON DELETE SET NULL;


--
-- Name: stock_scrap stock_scrap_picking_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_picking_id_fkey FOREIGN KEY (picking_id) REFERENCES public.stock_picking(id) ON DELETE SET NULL;


--
-- Name: stock_scrap stock_scrap_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE RESTRICT;


--
-- Name: stock_scrap stock_scrap_product_uom_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_product_uom_id_fkey FOREIGN KEY (product_uom_id) REFERENCES public.uom_uom(id) ON DELETE RESTRICT;


--
-- Name: stock_scrap_reason_tag stock_scrap_reason_tag_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap_reason_tag
    ADD CONSTRAINT stock_scrap_reason_tag_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_scrap_reason_tag stock_scrap_reason_tag_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap_reason_tag
    ADD CONSTRAINT stock_scrap_reason_tag_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_scrap stock_scrap_scrap_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_scrap_location_id_fkey FOREIGN KEY (scrap_location_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_scrap_stock_scrap_reason_tag_rel stock_scrap_stock_scrap_reason_t_stock_scrap_reason_tag_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap_stock_scrap_reason_tag_rel
    ADD CONSTRAINT stock_scrap_stock_scrap_reason_t_stock_scrap_reason_tag_id_fkey FOREIGN KEY (stock_scrap_reason_tag_id) REFERENCES public.stock_scrap_reason_tag(id) ON DELETE CASCADE;


--
-- Name: stock_scrap_stock_scrap_reason_tag_rel stock_scrap_stock_scrap_reason_tag_rel_stock_scrap_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap_stock_scrap_reason_tag_rel
    ADD CONSTRAINT stock_scrap_stock_scrap_reason_tag_rel_stock_scrap_id_fkey FOREIGN KEY (stock_scrap_id) REFERENCES public.stock_scrap(id) ON DELETE CASCADE;


--
-- Name: stock_scrap stock_scrap_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_scrap
    ADD CONSTRAINT stock_scrap_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_storage_category_capacity stock_storage_category_capacity_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_storage_category_capacity
    ADD CONSTRAINT stock_storage_category_capacity_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_storage_category_capacity stock_storage_category_capacity_package_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_storage_category_capacity
    ADD CONSTRAINT stock_storage_category_capacity_package_type_id_fkey FOREIGN KEY (package_type_id) REFERENCES public.stock_package_type(id) ON DELETE CASCADE;


--
-- Name: stock_storage_category_capacity stock_storage_category_capacity_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_storage_category_capacity
    ADD CONSTRAINT stock_storage_category_capacity_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: stock_storage_category_capacity stock_storage_category_capacity_storage_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_storage_category_capacity
    ADD CONSTRAINT stock_storage_category_capacity_storage_category_id_fkey FOREIGN KEY (storage_category_id) REFERENCES public.stock_storage_category(id) ON DELETE CASCADE;


--
-- Name: stock_storage_category_capacity stock_storage_category_capacity_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_storage_category_capacity
    ADD CONSTRAINT stock_storage_category_capacity_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_storage_category stock_storage_category_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_storage_category
    ADD CONSTRAINT stock_storage_category_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: stock_storage_category stock_storage_category_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_storage_category
    ADD CONSTRAINT stock_storage_category_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_storage_category stock_storage_category_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_storage_category
    ADD CONSTRAINT stock_storage_category_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_traceability_report stock_traceability_report_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_traceability_report
    ADD CONSTRAINT stock_traceability_report_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_traceability_report stock_traceability_report_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_traceability_report
    ADD CONSTRAINT stock_traceability_report_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_track_confirmation stock_track_confirmation_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_track_confirmation
    ADD CONSTRAINT stock_track_confirmation_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_track_confirmation stock_track_confirmation_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_track_confirmation
    ADD CONSTRAINT stock_track_confirmation_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_track_line stock_track_line_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_track_line
    ADD CONSTRAINT stock_track_line_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_track_line stock_track_line_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_track_line
    ADD CONSTRAINT stock_track_line_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE SET NULL;


--
-- Name: stock_track_line stock_track_line_wizard_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_track_line
    ADD CONSTRAINT stock_track_line_wizard_id_fkey FOREIGN KEY (wizard_id) REFERENCES public.stock_track_confirmation(id) ON DELETE SET NULL;


--
-- Name: stock_track_line stock_track_line_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_track_line
    ADD CONSTRAINT stock_track_line_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer stock_valuation_layer_account_move_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer
    ADD CONSTRAINT stock_valuation_layer_account_move_id_fkey FOREIGN KEY (account_move_id) REFERENCES public.account_move(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer stock_valuation_layer_account_move_line_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer
    ADD CONSTRAINT stock_valuation_layer_account_move_line_id_fkey FOREIGN KEY (account_move_line_id) REFERENCES public.account_move_line(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer stock_valuation_layer_categ_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer
    ADD CONSTRAINT stock_valuation_layer_categ_id_fkey FOREIGN KEY (categ_id) REFERENCES public.product_category(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer stock_valuation_layer_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer
    ADD CONSTRAINT stock_valuation_layer_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: stock_valuation_layer stock_valuation_layer_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer
    ADD CONSTRAINT stock_valuation_layer_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer stock_valuation_layer_lot_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer
    ADD CONSTRAINT stock_valuation_layer_lot_id_fkey FOREIGN KEY (lot_id) REFERENCES public.stock_lot(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer stock_valuation_layer_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer
    ADD CONSTRAINT stock_valuation_layer_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE RESTRICT;


--
-- Name: stock_valuation_layer_revaluation stock_valuation_layer_revaluation_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer_revaluation
    ADD CONSTRAINT stock_valuation_layer_revaluation_account_id_fkey FOREIGN KEY (account_id) REFERENCES public.account_account(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer_revaluation stock_valuation_layer_revaluation_account_journal_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer_revaluation
    ADD CONSTRAINT stock_valuation_layer_revaluation_account_journal_id_fkey FOREIGN KEY (account_journal_id) REFERENCES public.account_journal(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer_revaluation stock_valuation_layer_revaluation_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer_revaluation
    ADD CONSTRAINT stock_valuation_layer_revaluation_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE CASCADE;


--
-- Name: stock_valuation_layer_revaluation stock_valuation_layer_revaluation_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer_revaluation
    ADD CONSTRAINT stock_valuation_layer_revaluation_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer_revaluation stock_valuation_layer_revaluation_lot_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer_revaluation
    ADD CONSTRAINT stock_valuation_layer_revaluation_lot_id_fkey FOREIGN KEY (lot_id) REFERENCES public.stock_lot(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer_revaluation stock_valuation_layer_revaluation_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer_revaluation
    ADD CONSTRAINT stock_valuation_layer_revaluation_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: stock_valuation_layer_revaluation stock_valuation_layer_revaluation_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer_revaluation
    ADD CONSTRAINT stock_valuation_layer_revaluation_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer stock_valuation_layer_stock_move_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer
    ADD CONSTRAINT stock_valuation_layer_stock_move_id_fkey FOREIGN KEY (stock_move_id) REFERENCES public.stock_move(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer_stock_valuation_layer_revaluation_rel stock_valuation_layer_stock_v_stock_valuation_layer_revalu_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer_stock_valuation_layer_revaluation_rel
    ADD CONSTRAINT stock_valuation_layer_stock_v_stock_valuation_layer_revalu_fkey FOREIGN KEY (stock_valuation_layer_revaluation_id) REFERENCES public.stock_valuation_layer_revaluation(id) ON DELETE CASCADE;


--
-- Name: stock_valuation_layer_stock_valuation_layer_revaluation_rel stock_valuation_layer_stock_valua_stock_valuation_layer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer_stock_valuation_layer_revaluation_rel
    ADD CONSTRAINT stock_valuation_layer_stock_valua_stock_valuation_layer_id_fkey FOREIGN KEY (stock_valuation_layer_id) REFERENCES public.stock_valuation_layer(id) ON DELETE CASCADE;


--
-- Name: stock_valuation_layer stock_valuation_layer_stock_valuation_layer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer
    ADD CONSTRAINT stock_valuation_layer_stock_valuation_layer_id_fkey FOREIGN KEY (stock_valuation_layer_id) REFERENCES public.stock_valuation_layer(id) ON DELETE SET NULL;


--
-- Name: stock_valuation_layer stock_valuation_layer_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_valuation_layer
    ADD CONSTRAINT stock_valuation_layer_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_buy_pull_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_buy_pull_id_fkey FOREIGN KEY (buy_pull_id) REFERENCES public.stock_rule(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: stock_warehouse stock_warehouse_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_crossdock_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_crossdock_route_id_fkey FOREIGN KEY (crossdock_route_id) REFERENCES public.stock_route(id) ON DELETE RESTRICT;


--
-- Name: stock_warehouse stock_warehouse_delivery_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_delivery_route_id_fkey FOREIGN KEY (delivery_route_id) REFERENCES public.stock_route(id) ON DELETE RESTRICT;


--
-- Name: stock_warehouse stock_warehouse_in_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_in_type_id_fkey FOREIGN KEY (in_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_int_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_int_type_id_fkey FOREIGN KEY (int_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_lot_stock_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_lot_stock_id_fkey FOREIGN KEY (lot_stock_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_warehouse stock_warehouse_mto_pull_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_mto_pull_id_fkey FOREIGN KEY (mto_pull_id) REFERENCES public.stock_rule(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_group_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_group_id_fkey FOREIGN KEY (group_id) REFERENCES public.procurement_group(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE CASCADE;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_product_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_product_category_id_fkey FOREIGN KEY (product_category_id) REFERENCES public.product_category(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_product_supplier_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_product_supplier_id_fkey FOREIGN KEY (product_supplier_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_route_id_fkey FOREIGN KEY (route_id) REFERENCES public.stock_route(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_supplier_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_supplier_id_fkey FOREIGN KEY (supplier_id) REFERENCES public.product_supplierinfo(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_vendor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_vendor_id_fkey FOREIGN KEY (vendor_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_warehouse_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_warehouse_id_fkey FOREIGN KEY (warehouse_id) REFERENCES public.stock_warehouse(id) ON DELETE CASCADE;


--
-- Name: stock_warehouse_orderpoint stock_warehouse_orderpoint_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse_orderpoint
    ADD CONSTRAINT stock_warehouse_orderpoint_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_out_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_out_type_id_fkey FOREIGN KEY (out_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_pack_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_pack_type_id_fkey FOREIGN KEY (pack_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_pick_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_pick_type_id_fkey FOREIGN KEY (pick_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_qc_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_qc_type_id_fkey FOREIGN KEY (qc_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_reception_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_reception_route_id_fkey FOREIGN KEY (reception_route_id) REFERENCES public.stock_route(id) ON DELETE RESTRICT;


--
-- Name: stock_warehouse stock_warehouse_repair_mto_pull_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_repair_mto_pull_id_fkey FOREIGN KEY (repair_mto_pull_id) REFERENCES public.stock_rule(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_repair_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_repair_type_id_fkey FOREIGN KEY (repair_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_store_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_store_type_id_fkey FOREIGN KEY (store_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_view_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_view_location_id_fkey FOREIGN KEY (view_location_id) REFERENCES public.stock_location(id) ON DELETE RESTRICT;


--
-- Name: stock_warehouse stock_warehouse_wh_input_stock_loc_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_wh_input_stock_loc_id_fkey FOREIGN KEY (wh_input_stock_loc_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_wh_output_stock_loc_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_wh_output_stock_loc_id_fkey FOREIGN KEY (wh_output_stock_loc_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_wh_pack_stock_loc_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_wh_pack_stock_loc_id_fkey FOREIGN KEY (wh_pack_stock_loc_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_wh_qc_stock_loc_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_wh_qc_stock_loc_id_fkey FOREIGN KEY (wh_qc_stock_loc_id) REFERENCES public.stock_location(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_warehouse stock_warehouse_xdock_type_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warehouse
    ADD CONSTRAINT stock_warehouse_xdock_type_id_fkey FOREIGN KEY (xdock_type_id) REFERENCES public.stock_picking_type(id) ON DELETE SET NULL;


--
-- Name: stock_warn_insufficient_qty_repair stock_warn_insufficient_qty_repair_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warn_insufficient_qty_repair
    ADD CONSTRAINT stock_warn_insufficient_qty_repair_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_warn_insufficient_qty_repair stock_warn_insufficient_qty_repair_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warn_insufficient_qty_repair
    ADD CONSTRAINT stock_warn_insufficient_qty_repair_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE CASCADE;


--
-- Name: stock_warn_insufficient_qty_repair stock_warn_insufficient_qty_repair_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warn_insufficient_qty_repair
    ADD CONSTRAINT stock_warn_insufficient_qty_repair_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: stock_warn_insufficient_qty_repair stock_warn_insufficient_qty_repair_repair_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warn_insufficient_qty_repair
    ADD CONSTRAINT stock_warn_insufficient_qty_repair_repair_id_fkey FOREIGN KEY (repair_id) REFERENCES public.repair_order(id) ON DELETE SET NULL;


--
-- Name: stock_warn_insufficient_qty_repair stock_warn_insufficient_qty_repair_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warn_insufficient_qty_repair
    ADD CONSTRAINT stock_warn_insufficient_qty_repair_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_warn_insufficient_qty_scrap stock_warn_insufficient_qty_scrap_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warn_insufficient_qty_scrap
    ADD CONSTRAINT stock_warn_insufficient_qty_scrap_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_warn_insufficient_qty_scrap stock_warn_insufficient_qty_scrap_location_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warn_insufficient_qty_scrap
    ADD CONSTRAINT stock_warn_insufficient_qty_scrap_location_id_fkey FOREIGN KEY (location_id) REFERENCES public.stock_location(id) ON DELETE CASCADE;


--
-- Name: stock_warn_insufficient_qty_scrap stock_warn_insufficient_qty_scrap_product_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warn_insufficient_qty_scrap
    ADD CONSTRAINT stock_warn_insufficient_qty_scrap_product_id_fkey FOREIGN KEY (product_id) REFERENCES public.product_product(id) ON DELETE CASCADE;


--
-- Name: stock_warn_insufficient_qty_scrap stock_warn_insufficient_qty_scrap_scrap_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warn_insufficient_qty_scrap
    ADD CONSTRAINT stock_warn_insufficient_qty_scrap_scrap_id_fkey FOREIGN KEY (scrap_id) REFERENCES public.stock_scrap(id) ON DELETE SET NULL;


--
-- Name: stock_warn_insufficient_qty_scrap stock_warn_insufficient_qty_scrap_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_warn_insufficient_qty_scrap
    ADD CONSTRAINT stock_warn_insufficient_qty_scrap_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: stock_wh_resupply_table stock_wh_resupply_table_supplied_wh_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_wh_resupply_table
    ADD CONSTRAINT stock_wh_resupply_table_supplied_wh_id_fkey FOREIGN KEY (supplied_wh_id) REFERENCES public.stock_warehouse(id) ON DELETE CASCADE;


--
-- Name: stock_wh_resupply_table stock_wh_resupply_table_supplier_wh_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.stock_wh_resupply_table
    ADD CONSTRAINT stock_wh_resupply_table_supplier_wh_id_fkey FOREIGN KEY (supplier_wh_id) REFERENCES public.stock_warehouse(id) ON DELETE CASCADE;


--
-- Name: task_dependencies_rel task_dependencies_rel_depends_on_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.task_dependencies_rel
    ADD CONSTRAINT task_dependencies_rel_depends_on_id_fkey FOREIGN KEY (depends_on_id) REFERENCES public.project_task(id) ON DELETE CASCADE;


--
-- Name: task_dependencies_rel task_dependencies_rel_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.task_dependencies_rel
    ADD CONSTRAINT task_dependencies_rel_task_id_fkey FOREIGN KEY (task_id) REFERENCES public.project_task(id) ON DELETE CASCADE;


--
-- Name: team_favorite_user_rel team_favorite_user_rel_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.team_favorite_user_rel
    ADD CONSTRAINT team_favorite_user_rel_team_id_fkey FOREIGN KEY (team_id) REFERENCES public.crm_team(id) ON DELETE CASCADE;


--
-- Name: team_favorite_user_rel team_favorite_user_rel_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.team_favorite_user_rel
    ADD CONSTRAINT team_favorite_user_rel_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE CASCADE;


--
-- Name: template_attribute_value_stock_move_rel template_attribute_value_stock_move_rel_move_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.template_attribute_value_stock_move_rel
    ADD CONSTRAINT template_attribute_value_stock_move_rel_move_id_fkey FOREIGN KEY (move_id) REFERENCES public.stock_move(id) ON DELETE CASCADE;


--
-- Name: template_attribute_value_stock_move_rel template_attribute_value_stock_template_attribute_value_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.template_attribute_value_stock_move_rel
    ADD CONSTRAINT template_attribute_value_stock_template_attribute_value_id_fkey FOREIGN KEY (template_attribute_value_id) REFERENCES public.product_template_attribute_value(id) ON DELETE CASCADE;


--
-- Name: theme_ir_asset theme_ir_asset_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_ir_asset
    ADD CONSTRAINT theme_ir_asset_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: theme_ir_asset theme_ir_asset_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_ir_asset
    ADD CONSTRAINT theme_ir_asset_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: theme_ir_attachment theme_ir_attachment_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_ir_attachment
    ADD CONSTRAINT theme_ir_attachment_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: theme_ir_attachment theme_ir_attachment_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_ir_attachment
    ADD CONSTRAINT theme_ir_attachment_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: theme_ir_ui_view theme_ir_ui_view_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_ir_ui_view
    ADD CONSTRAINT theme_ir_ui_view_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: theme_ir_ui_view theme_ir_ui_view_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_ir_ui_view
    ADD CONSTRAINT theme_ir_ui_view_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: theme_website_menu theme_website_menu_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_website_menu
    ADD CONSTRAINT theme_website_menu_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: theme_website_menu theme_website_menu_page_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_website_menu
    ADD CONSTRAINT theme_website_menu_page_id_fkey FOREIGN KEY (page_id) REFERENCES public.theme_website_page(id) ON DELETE CASCADE;


--
-- Name: theme_website_menu theme_website_menu_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_website_menu
    ADD CONSTRAINT theme_website_menu_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES public.theme_website_menu(id) ON DELETE CASCADE;


--
-- Name: theme_website_menu theme_website_menu_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_website_menu
    ADD CONSTRAINT theme_website_menu_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: theme_website_page theme_website_page_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_website_page
    ADD CONSTRAINT theme_website_page_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: theme_website_page theme_website_page_view_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_website_page
    ADD CONSTRAINT theme_website_page_view_id_fkey FOREIGN KEY (view_id) REFERENCES public.theme_ir_ui_view(id) ON DELETE CASCADE;


--
-- Name: theme_website_page theme_website_page_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.theme_website_page
    ADD CONSTRAINT theme_website_page_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: uom_category uom_category_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.uom_category
    ADD CONSTRAINT uom_category_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: uom_category uom_category_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.uom_category
    ADD CONSTRAINT uom_category_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: uom_uom uom_uom_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.uom_uom
    ADD CONSTRAINT uom_uom_category_id_fkey FOREIGN KEY (category_id) REFERENCES public.uom_category(id) ON DELETE RESTRICT;


--
-- Name: uom_uom uom_uom_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.uom_uom
    ADD CONSTRAINT uom_uom_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: uom_uom uom_uom_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.uom_uom
    ADD CONSTRAINT uom_uom_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: update_product_attribute_value update_product_attribute_value_attribute_value_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.update_product_attribute_value
    ADD CONSTRAINT update_product_attribute_value_attribute_value_id_fkey FOREIGN KEY (attribute_value_id) REFERENCES public.product_attribute_value(id) ON DELETE CASCADE;


--
-- Name: update_product_attribute_value update_product_attribute_value_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.update_product_attribute_value
    ADD CONSTRAINT update_product_attribute_value_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: update_product_attribute_value update_product_attribute_value_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.update_product_attribute_value
    ADD CONSTRAINT update_product_attribute_value_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: utm_campaign utm_campaign_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_campaign
    ADD CONSTRAINT utm_campaign_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE SET NULL;


--
-- Name: utm_campaign utm_campaign_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_campaign
    ADD CONSTRAINT utm_campaign_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: utm_campaign utm_campaign_stage_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_campaign
    ADD CONSTRAINT utm_campaign_stage_id_fkey FOREIGN KEY (stage_id) REFERENCES public.utm_stage(id) ON DELETE RESTRICT;


--
-- Name: utm_campaign utm_campaign_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_campaign
    ADD CONSTRAINT utm_campaign_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE RESTRICT;


--
-- Name: utm_campaign utm_campaign_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_campaign
    ADD CONSTRAINT utm_campaign_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: utm_medium utm_medium_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_medium
    ADD CONSTRAINT utm_medium_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: utm_medium utm_medium_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_medium
    ADD CONSTRAINT utm_medium_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: utm_source utm_source_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_source
    ADD CONSTRAINT utm_source_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: utm_source utm_source_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_source
    ADD CONSTRAINT utm_source_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: utm_stage utm_stage_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_stage
    ADD CONSTRAINT utm_stage_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: utm_stage utm_stage_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_stage
    ADD CONSTRAINT utm_stage_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: utm_tag utm_tag_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_tag
    ADD CONSTRAINT utm_tag_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: utm_tag_rel utm_tag_rel_campaign_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_tag_rel
    ADD CONSTRAINT utm_tag_rel_campaign_id_fkey FOREIGN KEY (campaign_id) REFERENCES public.utm_tag(id) ON DELETE CASCADE;


--
-- Name: utm_tag_rel utm_tag_rel_tag_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_tag_rel
    ADD CONSTRAINT utm_tag_rel_tag_id_fkey FOREIGN KEY (tag_id) REFERENCES public.utm_campaign(id) ON DELETE CASCADE;


--
-- Name: utm_tag utm_tag_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.utm_tag
    ADD CONSTRAINT utm_tag_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: validate_account_move validate_account_move_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.validate_account_move
    ADD CONSTRAINT validate_account_move_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: validate_account_move validate_account_move_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.validate_account_move
    ADD CONSTRAINT validate_account_move_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: web_editor_converter_test web_editor_converter_test_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.web_editor_converter_test
    ADD CONSTRAINT web_editor_converter_test_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: web_editor_converter_test web_editor_converter_test_many2one_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.web_editor_converter_test
    ADD CONSTRAINT web_editor_converter_test_many2one_fkey FOREIGN KEY (many2one) REFERENCES public.web_editor_converter_test_sub(id) ON DELETE SET NULL;


--
-- Name: web_editor_converter_test_sub web_editor_converter_test_sub_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.web_editor_converter_test_sub
    ADD CONSTRAINT web_editor_converter_test_sub_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: web_editor_converter_test_sub web_editor_converter_test_sub_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.web_editor_converter_test_sub
    ADD CONSTRAINT web_editor_converter_test_sub_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: web_editor_converter_test web_editor_converter_test_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.web_editor_converter_test
    ADD CONSTRAINT web_editor_converter_test_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: web_tour_tour web_tour_tour_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.web_tour_tour
    ADD CONSTRAINT web_tour_tour_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: web_tour_tour_step web_tour_tour_step_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.web_tour_tour_step
    ADD CONSTRAINT web_tour_tour_step_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: web_tour_tour_step web_tour_tour_step_tour_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.web_tour_tour_step
    ADD CONSTRAINT web_tour_tour_step_tour_id_fkey FOREIGN KEY (tour_id) REFERENCES public.web_tour_tour(id) ON DELETE CASCADE;


--
-- Name: web_tour_tour_step web_tour_tour_step_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.web_tour_tour_step
    ADD CONSTRAINT web_tour_tour_step_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: web_tour_tour web_tour_tour_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.web_tour_tour
    ADD CONSTRAINT web_tour_tour_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website website_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website
    ADD CONSTRAINT website_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.res_company(id) ON DELETE RESTRICT;


--
-- Name: website_configurator_feature website_configurator_feature_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_configurator_feature
    ADD CONSTRAINT website_configurator_feature_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_configurator_feature website_configurator_feature_module_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_configurator_feature
    ADD CONSTRAINT website_configurator_feature_module_id_fkey FOREIGN KEY (module_id) REFERENCES public.ir_module_module(id) ON DELETE CASCADE;


--
-- Name: website_configurator_feature website_configurator_feature_page_view_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_configurator_feature
    ADD CONSTRAINT website_configurator_feature_page_view_id_fkey FOREIGN KEY (page_view_id) REFERENCES public.ir_ui_view(id) ON DELETE CASCADE;


--
-- Name: website_configurator_feature website_configurator_feature_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_configurator_feature
    ADD CONSTRAINT website_configurator_feature_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_controller_page website_controller_page_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_controller_page
    ADD CONSTRAINT website_controller_page_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_controller_page website_controller_page_record_view_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_controller_page
    ADD CONSTRAINT website_controller_page_record_view_id_fkey FOREIGN KEY (record_view_id) REFERENCES public.ir_ui_view(id) ON DELETE CASCADE;


--
-- Name: website_controller_page website_controller_page_view_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_controller_page
    ADD CONSTRAINT website_controller_page_view_id_fkey FOREIGN KEY (view_id) REFERENCES public.ir_ui_view(id) ON DELETE CASCADE;


--
-- Name: website_controller_page website_controller_page_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_controller_page
    ADD CONSTRAINT website_controller_page_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE CASCADE;


--
-- Name: website_controller_page website_controller_page_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_controller_page
    ADD CONSTRAINT website_controller_page_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website website_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website
    ADD CONSTRAINT website_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_custom_blocked_third_party_domains website_custom_blocked_third_party_domains_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_custom_blocked_third_party_domains
    ADD CONSTRAINT website_custom_blocked_third_party_domains_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_custom_blocked_third_party_domains website_custom_blocked_third_party_domains_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_custom_blocked_third_party_domains
    ADD CONSTRAINT website_custom_blocked_third_party_domains_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website website_default_lang_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website
    ADD CONSTRAINT website_default_lang_id_fkey FOREIGN KEY (default_lang_id) REFERENCES public.res_lang(id) ON DELETE RESTRICT;


--
-- Name: website_lang_rel website_lang_rel_lang_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_lang_rel
    ADD CONSTRAINT website_lang_rel_lang_id_fkey FOREIGN KEY (lang_id) REFERENCES public.res_lang(id) ON DELETE CASCADE;


--
-- Name: website_lang_rel website_lang_rel_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_lang_rel
    ADD CONSTRAINT website_lang_rel_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE CASCADE;


--
-- Name: website_menu website_menu_controller_page_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_menu
    ADD CONSTRAINT website_menu_controller_page_id_fkey FOREIGN KEY (controller_page_id) REFERENCES public.website_controller_page(id) ON DELETE CASCADE;


--
-- Name: website_menu website_menu_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_menu
    ADD CONSTRAINT website_menu_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_menu website_menu_page_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_menu
    ADD CONSTRAINT website_menu_page_id_fkey FOREIGN KEY (page_id) REFERENCES public.website_page(id) ON DELETE CASCADE;


--
-- Name: website_menu website_menu_parent_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_menu
    ADD CONSTRAINT website_menu_parent_id_fkey FOREIGN KEY (parent_id) REFERENCES public.website_menu(id) ON DELETE CASCADE;


--
-- Name: website_menu website_menu_theme_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_menu
    ADD CONSTRAINT website_menu_theme_template_id_fkey FOREIGN KEY (theme_template_id) REFERENCES public.theme_website_menu(id) ON DELETE SET NULL;


--
-- Name: website_menu website_menu_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_menu
    ADD CONSTRAINT website_menu_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE CASCADE;


--
-- Name: website_menu website_menu_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_menu
    ADD CONSTRAINT website_menu_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_page website_page_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page
    ADD CONSTRAINT website_page_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_page_properties_base website_page_properties_base_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page_properties_base
    ADD CONSTRAINT website_page_properties_base_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_page_properties_base website_page_properties_base_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page_properties_base
    ADD CONSTRAINT website_page_properties_base_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE CASCADE;


--
-- Name: website_page_properties_base website_page_properties_base_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page_properties_base
    ADD CONSTRAINT website_page_properties_base_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_page_properties website_page_properties_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page_properties
    ADD CONSTRAINT website_page_properties_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_page_properties website_page_properties_target_model_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page_properties
    ADD CONSTRAINT website_page_properties_target_model_id_fkey FOREIGN KEY (target_model_id) REFERENCES public.website_page(id) ON DELETE SET NULL;


--
-- Name: website_page_properties website_page_properties_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page_properties
    ADD CONSTRAINT website_page_properties_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE CASCADE;


--
-- Name: website_page_properties website_page_properties_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page_properties
    ADD CONSTRAINT website_page_properties_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_page website_page_theme_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page
    ADD CONSTRAINT website_page_theme_template_id_fkey FOREIGN KEY (theme_template_id) REFERENCES public.theme_website_page(id) ON DELETE SET NULL;


--
-- Name: website_page website_page_view_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page
    ADD CONSTRAINT website_page_view_id_fkey FOREIGN KEY (view_id) REFERENCES public.ir_ui_view(id) ON DELETE CASCADE;


--
-- Name: website_page website_page_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page
    ADD CONSTRAINT website_page_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE CASCADE;


--
-- Name: website_page website_page_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_page
    ADD CONSTRAINT website_page_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_rewrite website_rewrite_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_rewrite
    ADD CONSTRAINT website_rewrite_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_rewrite website_rewrite_route_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_rewrite
    ADD CONSTRAINT website_rewrite_route_id_fkey FOREIGN KEY (route_id) REFERENCES public.website_route(id) ON DELETE SET NULL;


--
-- Name: website_rewrite website_rewrite_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_rewrite
    ADD CONSTRAINT website_rewrite_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE CASCADE;


--
-- Name: website_rewrite website_rewrite_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_rewrite
    ADD CONSTRAINT website_rewrite_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_robots website_robots_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_robots
    ADD CONSTRAINT website_robots_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_robots website_robots_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_robots
    ADD CONSTRAINT website_robots_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_route website_route_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_route
    ADD CONSTRAINT website_route_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_route website_route_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_route
    ADD CONSTRAINT website_route_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_snippet_filter website_snippet_filter_action_server_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_snippet_filter
    ADD CONSTRAINT website_snippet_filter_action_server_id_fkey FOREIGN KEY (action_server_id) REFERENCES public.ir_act_server(id) ON DELETE CASCADE;


--
-- Name: website_snippet_filter website_snippet_filter_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_snippet_filter
    ADD CONSTRAINT website_snippet_filter_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_snippet_filter website_snippet_filter_filter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_snippet_filter
    ADD CONSTRAINT website_snippet_filter_filter_id_fkey FOREIGN KEY (filter_id) REFERENCES public.ir_filters(id) ON DELETE CASCADE;


--
-- Name: website_snippet_filter website_snippet_filter_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_snippet_filter
    ADD CONSTRAINT website_snippet_filter_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE CASCADE;


--
-- Name: website_snippet_filter website_snippet_filter_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_snippet_filter
    ADD CONSTRAINT website_snippet_filter_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website website_theme_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website
    ADD CONSTRAINT website_theme_id_fkey FOREIGN KEY (theme_id) REFERENCES public.ir_module_module(id) ON DELETE SET NULL;


--
-- Name: website_track website_track_page_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_track
    ADD CONSTRAINT website_track_page_id_fkey FOREIGN KEY (page_id) REFERENCES public.website_page(id) ON DELETE CASCADE;


--
-- Name: website_track website_track_visitor_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_track
    ADD CONSTRAINT website_track_visitor_id_fkey FOREIGN KEY (visitor_id) REFERENCES public.website_visitor(id) ON DELETE CASCADE;


--
-- Name: website website_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website
    ADD CONSTRAINT website_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.res_users(id) ON DELETE RESTRICT;


--
-- Name: website_visitor website_visitor_country_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_visitor
    ADD CONSTRAINT website_visitor_country_id_fkey FOREIGN KEY (country_id) REFERENCES public.res_country(id) ON DELETE SET NULL;


--
-- Name: website_visitor website_visitor_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_visitor
    ADD CONSTRAINT website_visitor_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website_visitor website_visitor_lang_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_visitor
    ADD CONSTRAINT website_visitor_lang_id_fkey FOREIGN KEY (lang_id) REFERENCES public.res_lang(id) ON DELETE SET NULL;


--
-- Name: website_visitor website_visitor_partner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_visitor
    ADD CONSTRAINT website_visitor_partner_id_fkey FOREIGN KEY (partner_id) REFERENCES public.res_partner(id) ON DELETE SET NULL;


--
-- Name: website_visitor website_visitor_website_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_visitor
    ADD CONSTRAINT website_visitor_website_id_fkey FOREIGN KEY (website_id) REFERENCES public.website(id) ON DELETE SET NULL;


--
-- Name: website_visitor website_visitor_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website_visitor
    ADD CONSTRAINT website_visitor_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: website website_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.website
    ADD CONSTRAINT website_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: wizard_ir_model_menu_create wizard_ir_model_menu_create_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.wizard_ir_model_menu_create
    ADD CONSTRAINT wizard_ir_model_menu_create_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: wizard_ir_model_menu_create wizard_ir_model_menu_create_menu_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.wizard_ir_model_menu_create
    ADD CONSTRAINT wizard_ir_model_menu_create_menu_id_fkey FOREIGN KEY (menu_id) REFERENCES public.ir_ui_menu(id) ON DELETE CASCADE;


--
-- Name: wizard_ir_model_menu_create wizard_ir_model_menu_create_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: odoo
--

ALTER TABLE ONLY public.wizard_ir_model_menu_create
    ADD CONSTRAINT wizard_ir_model_menu_create_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES public.res_users(id) ON DELETE SET NULL;


--
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: pg_database_owner
--

REVOKE USAGE ON SCHEMA public FROM PUBLIC;
GRANT ALL ON SCHEMA public TO PUBLIC;
GRANT USAGE ON SCHEMA public TO agente;


--
-- Name: TABLE account_account; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_account TO agente;


--
-- Name: TABLE account_account_account_journal_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_account_account_journal_rel TO agente;


--
-- Name: TABLE account_account_account_merge_wizard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_account_account_merge_wizard_rel TO agente;


--
-- Name: TABLE account_account_account_tag; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_account_account_tag TO agente;


--
-- Name: TABLE account_account_res_company_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_account_res_company_rel TO agente;


--
-- Name: TABLE account_account_tag; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_account_tag TO agente;


--
-- Name: TABLE account_account_tag_account_move_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_account_tag_account_move_line_rel TO agente;


--
-- Name: TABLE account_account_tag_account_tax_repartition_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_account_tag_account_tax_repartition_line_rel TO agente;


--
-- Name: TABLE account_account_tag_product_template_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_account_tag_product_template_rel TO agente;


--
-- Name: TABLE account_account_tax_default_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_account_tax_default_rel TO agente;


--
-- Name: TABLE account_accrued_orders_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_accrued_orders_wizard TO agente;


--
-- Name: TABLE account_analytic_account; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_analytic_account TO agente;


--
-- Name: TABLE account_analytic_applicability; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_analytic_applicability TO agente;


--
-- Name: TABLE account_analytic_distribution_model; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_analytic_distribution_model TO agente;


--
-- Name: TABLE account_analytic_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_analytic_line TO agente;


--
-- Name: TABLE account_analytic_line_stock_move_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_analytic_line_stock_move_rel TO agente;


--
-- Name: TABLE account_analytic_plan; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_analytic_plan TO agente;


--
-- Name: TABLE account_automatic_entry_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_automatic_entry_wizard TO agente;


--
-- Name: TABLE account_automatic_entry_wizard_account_move_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_automatic_entry_wizard_account_move_line_rel TO agente;


--
-- Name: TABLE account_autopost_bills_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_autopost_bills_wizard TO agente;


--
-- Name: TABLE account_bank_statement; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_bank_statement TO agente;


--
-- Name: TABLE account_bank_statement_ir_attachment_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_bank_statement_ir_attachment_rel TO agente;


--
-- Name: TABLE account_bank_statement_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_bank_statement_line TO agente;


--
-- Name: TABLE account_cash_rounding; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_cash_rounding TO agente;


--
-- Name: TABLE account_edi_proxy_client_user; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_edi_proxy_client_user TO agente;


--
-- Name: TABLE account_financial_year_op; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_financial_year_op TO agente;


--
-- Name: TABLE account_fiscal_position; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_fiscal_position TO agente;


--
-- Name: TABLE account_fiscal_position_account; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_fiscal_position_account TO agente;


--
-- Name: TABLE account_fiscal_position_res_country_state_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_fiscal_position_res_country_state_rel TO agente;


--
-- Name: TABLE account_fiscal_position_tax; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_fiscal_position_tax TO agente;


--
-- Name: TABLE account_full_reconcile; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_full_reconcile TO agente;


--
-- Name: TABLE account_group; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_group TO agente;


--
-- Name: TABLE account_incoterms; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_incoterms TO agente;


--
-- Name: TABLE account_invoice_transaction_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_invoice_transaction_rel TO agente;


--
-- Name: TABLE account_journal; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_journal TO agente;


--
-- Name: TABLE account_journal_account_journal_group_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_journal_account_journal_group_rel TO agente;


--
-- Name: TABLE account_journal_account_reconcile_model_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_journal_account_reconcile_model_rel TO agente;


--
-- Name: TABLE account_journal_group; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_journal_group TO agente;


--
-- Name: TABLE account_lock_exception; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_lock_exception TO agente;


--
-- Name: TABLE account_merge_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_merge_wizard TO agente;


--
-- Name: TABLE account_merge_wizard_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_merge_wizard_line TO agente;


--
-- Name: TABLE account_move; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move TO agente;


--
-- Name: TABLE account_move__account_payment; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move__account_payment TO agente;


--
-- Name: TABLE account_move_account_move_send_batch_wizard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_account_move_send_batch_wizard_rel TO agente;


--
-- Name: TABLE account_move_account_peppol_rejection_wizard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_account_peppol_rejection_wizard_rel TO agente;


--
-- Name: TABLE account_move_account_resequence_wizard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_account_resequence_wizard_rel TO agente;


--
-- Name: TABLE account_move_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_line TO agente;


--
-- Name: TABLE account_move_line_account_tax_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_line_account_tax_rel TO agente;


--
-- Name: TABLE account_move_purchase_order_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_purchase_order_rel TO agente;


--
-- Name: TABLE account_move_reversal; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_reversal TO agente;


--
-- Name: TABLE account_move_reversal_move; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_reversal_move TO agente;


--
-- Name: TABLE account_move_reversal_new_move; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_reversal_new_move TO agente;


--
-- Name: TABLE account_move_send_batch_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_send_batch_wizard TO agente;


--
-- Name: TABLE account_move_send_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_send_wizard TO agente;


--
-- Name: TABLE account_move_send_wizard_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_send_wizard_res_partner_rel TO agente;


--
-- Name: TABLE account_move_validate_account_move_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_move_validate_account_move_rel TO agente;


--
-- Name: TABLE account_partial_reconcile; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_partial_reconcile TO agente;


--
-- Name: TABLE account_payment; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_payment TO agente;


--
-- Name: TABLE account_payment_account_bank_statement_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_payment_account_bank_statement_line_rel TO agente;


--
-- Name: TABLE account_payment_method; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_payment_method TO agente;


--
-- Name: TABLE account_payment_method_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_payment_method_line TO agente;


--
-- Name: TABLE account_payment_register; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_payment_register TO agente;


--
-- Name: TABLE account_payment_register_move_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_payment_register_move_line_rel TO agente;


--
-- Name: TABLE account_payment_term; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_payment_term TO agente;


--
-- Name: TABLE account_payment_term_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_payment_term_line TO agente;


--
-- Name: TABLE account_peppol_clarification; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_peppol_clarification TO agente;


--
-- Name: TABLE account_peppol_rejection_action_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_peppol_rejection_action_rel TO agente;


--
-- Name: TABLE account_peppol_rejection_reason_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_peppol_rejection_reason_rel TO agente;


--
-- Name: TABLE account_peppol_rejection_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_peppol_rejection_wizard TO agente;


--
-- Name: TABLE account_peppol_response; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_peppol_response TO agente;


--
-- Name: TABLE account_peppol_service; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_peppol_service TO agente;


--
-- Name: TABLE account_peppol_service_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_peppol_service_wizard TO agente;


--
-- Name: TABLE account_reconcile_model; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_reconcile_model TO agente;


--
-- Name: TABLE account_reconcile_model_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_reconcile_model_line TO agente;


--
-- Name: TABLE account_reconcile_model_line_account_tax_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_reconcile_model_line_account_tax_rel TO agente;


--
-- Name: TABLE account_reconcile_model_partner_mapping; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_reconcile_model_partner_mapping TO agente;


--
-- Name: TABLE account_reconcile_model_res_partner_category_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_reconcile_model_res_partner_category_rel TO agente;


--
-- Name: TABLE account_reconcile_model_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_reconcile_model_res_partner_rel TO agente;


--
-- Name: TABLE account_report; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_report TO agente;


--
-- Name: TABLE account_report_column; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_report_column TO agente;


--
-- Name: TABLE account_report_expression; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_report_expression TO agente;


--
-- Name: TABLE account_report_external_value; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_report_external_value TO agente;


--
-- Name: TABLE account_report_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_report_line TO agente;


--
-- Name: TABLE account_report_section_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_report_section_rel TO agente;


--
-- Name: TABLE account_resequence_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_resequence_wizard TO agente;


--
-- Name: TABLE account_secure_entries_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_secure_entries_wizard TO agente;


--
-- Name: TABLE account_setup_bank_manual_config; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_setup_bank_manual_config TO agente;


--
-- Name: TABLE account_tax; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_tax TO agente;


--
-- Name: TABLE account_tax_filiation_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_tax_filiation_rel TO agente;


--
-- Name: TABLE account_tax_group; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_tax_group TO agente;


--
-- Name: TABLE account_tax_purchase_order_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_tax_purchase_order_line_rel TO agente;


--
-- Name: TABLE account_tax_repartition_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_tax_repartition_line TO agente;


--
-- Name: TABLE account_tax_sale_order_discount_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_tax_sale_order_discount_rel TO agente;


--
-- Name: TABLE account_tax_sale_order_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.account_tax_sale_order_line_rel TO agente;


--
-- Name: TABLE activity_attachment_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.activity_attachment_rel TO agente;


--
-- Name: TABLE auth_totp_device; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.auth_totp_device TO agente;


--
-- Name: TABLE auth_totp_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.auth_totp_wizard TO agente;


--
-- Name: TABLE badge_unlocked_definition_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.badge_unlocked_definition_rel TO agente;


--
-- Name: TABLE barcode_nomenclature; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.barcode_nomenclature TO agente;


--
-- Name: TABLE barcode_rule; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.barcode_rule TO agente;


--
-- Name: TABLE base_document_layout; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_document_layout TO agente;


--
-- Name: TABLE base_enable_profiling_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_enable_profiling_wizard TO agente;


--
-- Name: TABLE base_import_import; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_import_import TO agente;


--
-- Name: TABLE base_import_mapping; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_import_mapping TO agente;


--
-- Name: TABLE base_import_module; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_import_module TO agente;


--
-- Name: TABLE base_language_export; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_language_export TO agente;


--
-- Name: TABLE base_language_import; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_language_import TO agente;


--
-- Name: TABLE base_language_install; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_language_install TO agente;


--
-- Name: TABLE base_module_install_request; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_module_install_request TO agente;


--
-- Name: TABLE base_module_install_review; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_module_install_review TO agente;


--
-- Name: TABLE base_module_uninstall; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_module_uninstall TO agente;


--
-- Name: TABLE base_module_update; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_module_update TO agente;


--
-- Name: TABLE base_module_upgrade; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_module_upgrade TO agente;


--
-- Name: TABLE base_partner_merge_automatic_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_partner_merge_automatic_wizard TO agente;


--
-- Name: TABLE base_partner_merge_automatic_wizard_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_partner_merge_automatic_wizard_res_partner_rel TO agente;


--
-- Name: TABLE base_partner_merge_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.base_partner_merge_line TO agente;


--
-- Name: TABLE bill_to_po_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.bill_to_po_wizard TO agente;


--
-- Name: TABLE bus_bus; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.bus_bus TO agente;


--
-- Name: TABLE bus_presence; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.bus_presence TO agente;


--
-- Name: TABLE calendar_alarm; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.calendar_alarm TO agente;


--
-- Name: TABLE calendar_alarm_calendar_event_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.calendar_alarm_calendar_event_rel TO agente;


--
-- Name: TABLE calendar_attendee; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.calendar_attendee TO agente;


--
-- Name: TABLE calendar_event; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.calendar_event TO agente;


--
-- Name: TABLE calendar_event_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.calendar_event_res_partner_rel TO agente;


--
-- Name: TABLE calendar_event_type; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.calendar_event_type TO agente;


--
-- Name: TABLE calendar_filters; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.calendar_filters TO agente;


--
-- Name: TABLE calendar_popover_delete_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.calendar_popover_delete_wizard TO agente;


--
-- Name: TABLE calendar_provider_config; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.calendar_provider_config TO agente;


--
-- Name: TABLE calendar_recurrence; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.calendar_recurrence TO agente;


--
-- Name: TABLE certificate_certificate; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.certificate_certificate TO agente;


--
-- Name: TABLE certificate_key; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.certificate_key TO agente;


--
-- Name: TABLE change_password_own; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.change_password_own TO agente;


--
-- Name: TABLE change_password_user; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.change_password_user TO agente;


--
-- Name: TABLE change_password_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.change_password_wizard TO agente;


--
-- Name: TABLE confirm_stock_sms; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.confirm_stock_sms TO agente;


--
-- Name: TABLE crm_tag; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.crm_tag TO agente;


--
-- Name: TABLE crm_team; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.crm_team TO agente;


--
-- Name: TABLE crm_team_member; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.crm_team_member TO agente;


--
-- Name: TABLE decimal_precision; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.decimal_precision TO agente;


--
-- Name: TABLE digest_digest; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.digest_digest TO agente;


--
-- Name: TABLE digest_digest_res_users_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.digest_digest_res_users_rel TO agente;


--
-- Name: TABLE digest_tip; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.digest_tip TO agente;


--
-- Name: TABLE digest_tip_res_users_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.digest_tip_res_users_rel TO agente;


--
-- Name: TABLE discuss_channel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.discuss_channel TO agente;


--
-- Name: TABLE discuss_channel_hr_department_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.discuss_channel_hr_department_rel TO agente;


--
-- Name: TABLE discuss_channel_member; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.discuss_channel_member TO agente;


--
-- Name: TABLE discuss_channel_res_groups_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.discuss_channel_res_groups_rel TO agente;


--
-- Name: TABLE discuss_channel_rtc_session; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.discuss_channel_rtc_session TO agente;


--
-- Name: TABLE discuss_gif_favorite; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.discuss_gif_favorite TO agente;


--
-- Name: TABLE discuss_voice_metadata; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.discuss_voice_metadata TO agente;


--
-- Name: TABLE email_template_attachment_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.email_template_attachment_rel TO agente;


--
-- Name: TABLE employee_category_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.employee_category_rel TO agente;


--
-- Name: TABLE fetchmail_server; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.fetchmail_server TO agente;


--
-- Name: TABLE gamification_badge; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_badge TO agente;


--
-- Name: TABLE gamification_badge_rule_badge_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_badge_rule_badge_rel TO agente;


--
-- Name: TABLE gamification_badge_user; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_badge_user TO agente;


--
-- Name: TABLE gamification_badge_user_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_badge_user_wizard TO agente;


--
-- Name: TABLE gamification_challenge; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_challenge TO agente;


--
-- Name: TABLE gamification_challenge_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_challenge_line TO agente;


--
-- Name: TABLE gamification_challenge_users_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_challenge_users_rel TO agente;


--
-- Name: TABLE gamification_goal; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_goal TO agente;


--
-- Name: TABLE gamification_goal_definition; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_goal_definition TO agente;


--
-- Name: TABLE gamification_goal_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_goal_wizard TO agente;


--
-- Name: TABLE gamification_invited_user_ids_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_invited_user_ids_rel TO agente;


--
-- Name: TABLE gamification_karma_rank; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_karma_rank TO agente;


--
-- Name: TABLE gamification_karma_tracking; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.gamification_karma_tracking TO agente;


--
-- Name: TABLE header_footer_quotation_template_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.header_footer_quotation_template_rel TO agente;


--
-- Name: TABLE hr_contract_type; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_contract_type TO agente;


--
-- Name: TABLE hr_department; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_department TO agente;


--
-- Name: TABLE hr_departure_reason; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_departure_reason TO agente;


--
-- Name: TABLE hr_departure_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_departure_wizard TO agente;


--
-- Name: TABLE hr_employee; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_employee TO agente;


--
-- Name: TABLE hr_employee_category; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_employee_category TO agente;


--
-- Name: TABLE hr_employee_cv_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_employee_cv_wizard TO agente;


--
-- Name: TABLE hr_employee_hr_employee_cv_wizard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_employee_hr_employee_cv_wizard_rel TO agente;


--
-- Name: TABLE hr_employee_hr_skill_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_employee_hr_skill_rel TO agente;


--
-- Name: TABLE hr_employee_skill; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_employee_skill TO agente;


--
-- Name: TABLE hr_employee_skill_log; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_employee_skill_log TO agente;


--
-- Name: TABLE hr_skill_level; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_skill_level TO agente;


--
-- Name: TABLE hr_skill_type; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_skill_type TO agente;


--
-- Name: TABLE hr_job; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_job TO agente;


--
-- Name: TABLE hr_resume_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_resume_line TO agente;


--
-- Name: TABLE hr_resume_line_type; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_resume_line_type TO agente;


--
-- Name: TABLE hr_skill; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_skill TO agente;


--
-- Name: TABLE hr_work_location; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.hr_work_location TO agente;


--
-- Name: TABLE iap_account; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.iap_account TO agente;


--
-- Name: TABLE iap_account_res_company_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.iap_account_res_company_rel TO agente;


--
-- Name: TABLE iap_account_res_users_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.iap_account_res_users_rel TO agente;


--
-- Name: TABLE iap_service; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.iap_service TO agente;


--
-- Name: TABLE ir_actions; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_actions TO agente;


--
-- Name: TABLE ir_act_client; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_act_client TO agente;


--
-- Name: TABLE ir_act_report_xml; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_act_report_xml TO agente;


--
-- Name: TABLE ir_act_server; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_act_server TO agente;


--
-- Name: TABLE ir_act_server_group_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_act_server_group_rel TO agente;


--
-- Name: TABLE ir_act_server_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_act_server_res_partner_rel TO agente;


--
-- Name: TABLE ir_act_server_webhook_field_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_act_server_webhook_field_rel TO agente;


--
-- Name: TABLE ir_act_url; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_act_url TO agente;


--
-- Name: TABLE ir_act_window; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_act_window TO agente;


--
-- Name: TABLE ir_act_window_group_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_act_window_group_rel TO agente;


--
-- Name: TABLE ir_act_window_view; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_act_window_view TO agente;


--
-- Name: TABLE ir_actions_todo; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_actions_todo TO agente;


--
-- Name: TABLE ir_asset; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_asset TO agente;


--
-- Name: TABLE ir_attachment; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_attachment TO agente;


--
-- Name: TABLE ir_config_parameter; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_config_parameter TO agente;


--
-- Name: TABLE ir_cron; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_cron TO agente;


--
-- Name: TABLE ir_cron_progress; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_cron_progress TO agente;


--
-- Name: TABLE ir_cron_trigger; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_cron_trigger TO agente;


--
-- Name: TABLE ir_default; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_default TO agente;


--
-- Name: TABLE ir_demo; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_demo TO agente;


--
-- Name: TABLE ir_demo_failure; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_demo_failure TO agente;


--
-- Name: TABLE ir_demo_failure_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_demo_failure_wizard TO agente;


--
-- Name: TABLE ir_embedded_actions; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_embedded_actions TO agente;


--
-- Name: TABLE ir_embedded_actions_res_groups_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_embedded_actions_res_groups_rel TO agente;


--
-- Name: TABLE ir_exports; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_exports TO agente;


--
-- Name: TABLE ir_exports_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_exports_line TO agente;


--
-- Name: TABLE ir_filters; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_filters TO agente;


--
-- Name: TABLE ir_logging; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_logging TO agente;


--
-- Name: TABLE ir_mail_server; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_mail_server TO agente;


--
-- Name: TABLE ir_model; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_model TO agente;


--
-- Name: TABLE ir_model_access; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_model_access TO agente;


--
-- Name: TABLE ir_model_constraint; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_model_constraint TO agente;


--
-- Name: TABLE ir_model_data; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_model_data TO agente;


--
-- Name: TABLE ir_model_fields; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_model_fields TO agente;


--
-- Name: TABLE ir_model_fields_group_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_model_fields_group_rel TO agente;


--
-- Name: TABLE ir_model_fields_selection; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_model_fields_selection TO agente;


--
-- Name: TABLE ir_model_inherit; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_model_inherit TO agente;


--
-- Name: TABLE ir_model_relation; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_model_relation TO agente;


--
-- Name: TABLE ir_model_spreadsheet_dashboard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_model_spreadsheet_dashboard_rel TO agente;


--
-- Name: TABLE ir_module_category; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_module_category TO agente;


--
-- Name: TABLE ir_module_module; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_module_module TO agente;


--
-- Name: TABLE ir_module_module_dependency; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_module_module_dependency TO agente;


--
-- Name: TABLE ir_module_module_exclusion; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_module_module_exclusion TO agente;


--
-- Name: TABLE ir_profile; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_profile TO agente;


--
-- Name: TABLE ir_rule; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_rule TO agente;


--
-- Name: TABLE ir_sequence; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_sequence TO agente;


--
-- Name: TABLE ir_sequence_date_range; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_sequence_date_range TO agente;


--
-- Name: TABLE ir_ui_menu; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_ui_menu TO agente;


--
-- Name: TABLE ir_ui_menu_group_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_ui_menu_group_rel TO agente;


--
-- Name: TABLE ir_ui_view; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_ui_view TO agente;


--
-- Name: TABLE ir_ui_view_custom; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_ui_view_custom TO agente;


--
-- Name: TABLE ir_ui_view_group_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.ir_ui_view_group_rel TO agente;


--
-- Name: TABLE journal_account_control_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.journal_account_control_rel TO agente;


--
-- Name: TABLE l10n_es_edi_facturae_ac_role_type; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.l10n_es_edi_facturae_ac_role_type TO agente;


--
-- Name: TABLE l10n_es_edi_facturae_ac_role_type_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.l10n_es_edi_facturae_ac_role_type_res_partner_rel TO agente;


--
-- Name: TABLE link_tracker; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.link_tracker TO agente;


--
-- Name: TABLE link_tracker_click; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.link_tracker_click TO agente;


--
-- Name: TABLE link_tracker_code; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.link_tracker_code TO agente;


--
-- Name: TABLE lot_label_layout; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.lot_label_layout TO agente;


--
-- Name: TABLE lot_label_layout_stock_move_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.lot_label_layout_stock_move_line_rel TO agente;


--
-- Name: TABLE mail_activity; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_activity TO agente;


--
-- Name: TABLE mail_activity_plan; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_activity_plan TO agente;


--
-- Name: TABLE mail_activity_plan_mail_activity_schedule_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_activity_plan_mail_activity_schedule_rel TO agente;


--
-- Name: TABLE mail_activity_plan_template; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_activity_plan_template TO agente;


--
-- Name: TABLE mail_activity_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_activity_rel TO agente;


--
-- Name: TABLE mail_activity_schedule; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_activity_schedule TO agente;


--
-- Name: TABLE mail_activity_type; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_activity_type TO agente;


--
-- Name: TABLE mail_activity_type_mail_template_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_activity_type_mail_template_rel TO agente;


--
-- Name: TABLE mail_alias; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_alias TO agente;


--
-- Name: TABLE mail_alias_domain; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_alias_domain TO agente;


--
-- Name: TABLE mail_blacklist; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_blacklist TO agente;


--
-- Name: TABLE mail_blacklist_remove; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_blacklist_remove TO agente;


--
-- Name: TABLE mail_canned_response; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_canned_response TO agente;


--
-- Name: TABLE mail_canned_response_res_groups_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_canned_response_res_groups_rel TO agente;


--
-- Name: TABLE mail_compose_message; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_compose_message TO agente;


--
-- Name: TABLE mail_compose_message_ir_attachments_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_compose_message_ir_attachments_rel TO agente;


--
-- Name: TABLE mail_compose_message_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_compose_message_res_partner_rel TO agente;


--
-- Name: TABLE mail_followers; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_followers TO agente;


--
-- Name: TABLE mail_followers_mail_message_subtype_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_followers_mail_message_subtype_rel TO agente;


--
-- Name: TABLE mail_gateway_allowed; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_gateway_allowed TO agente;


--
-- Name: TABLE mail_guest; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_guest TO agente;


--
-- Name: TABLE mail_ice_server; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_ice_server TO agente;


--
-- Name: TABLE mail_link_preview; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_link_preview TO agente;


--
-- Name: TABLE mail_mail; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_mail TO agente;


--
-- Name: TABLE mail_mail_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_mail_res_partner_rel TO agente;


--
-- Name: TABLE mail_message; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_message TO agente;


--
-- Name: TABLE mail_message_reaction; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_message_reaction TO agente;


--
-- Name: TABLE mail_message_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_message_res_partner_rel TO agente;


--
-- Name: TABLE mail_message_res_partner_starred_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_message_res_partner_starred_rel TO agente;


--
-- Name: TABLE mail_message_schedule; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_message_schedule TO agente;


--
-- Name: TABLE mail_message_subtype; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_message_subtype TO agente;


--
-- Name: TABLE mail_message_translation; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_message_translation TO agente;


--
-- Name: TABLE mail_notification; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_notification TO agente;


--
-- Name: TABLE mail_notification_mail_resend_message_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_notification_mail_resend_message_rel TO agente;


--
-- Name: TABLE mail_push; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_push TO agente;


--
-- Name: TABLE mail_push_device; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_push_device TO agente;


--
-- Name: TABLE mail_resend_message; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_resend_message TO agente;


--
-- Name: TABLE mail_resend_partner; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_resend_partner TO agente;


--
-- Name: TABLE mail_scheduled_message; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_scheduled_message TO agente;


--
-- Name: TABLE mail_scheduled_message_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_scheduled_message_res_partner_rel TO agente;


--
-- Name: TABLE mail_template; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_template TO agente;


--
-- Name: TABLE mail_template_ir_actions_report_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_template_ir_actions_report_rel TO agente;


--
-- Name: TABLE mail_template_mail_template_reset_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_template_mail_template_reset_rel TO agente;


--
-- Name: TABLE mail_template_preview; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_template_preview TO agente;


--
-- Name: TABLE mail_template_reset; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_template_reset TO agente;


--
-- Name: TABLE mail_tracking_value; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_tracking_value TO agente;


--
-- Name: TABLE mail_wizard_invite; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_wizard_invite TO agente;


--
-- Name: TABLE mail_wizard_invite_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.mail_wizard_invite_res_partner_rel TO agente;


--
-- Name: TABLE maintenance_equipment; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.maintenance_equipment TO agente;


--
-- Name: TABLE maintenance_equipment_category; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.maintenance_equipment_category TO agente;


--
-- Name: TABLE maintenance_request; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.maintenance_request TO agente;


--
-- Name: TABLE maintenance_stage; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.maintenance_stage TO agente;


--
-- Name: TABLE maintenance_team; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.maintenance_team TO agente;


--
-- Name: TABLE maintenance_team_users_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.maintenance_team_users_rel TO agente;


--
-- Name: TABLE meeting_category_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.meeting_category_rel TO agente;


--
-- Name: TABLE message_attachment_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.message_attachment_rel TO agente;


--
-- Name: TABLE module_country; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.module_country TO agente;


--
-- Name: TABLE onboarding_onboarding; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.onboarding_onboarding TO agente;


--
-- Name: TABLE onboarding_onboarding_onboarding_onboarding_step_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.onboarding_onboarding_onboarding_onboarding_step_rel TO agente;


--
-- Name: TABLE onboarding_onboarding_step; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.onboarding_onboarding_step TO agente;


--
-- Name: TABLE onboarding_progress; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.onboarding_progress TO agente;


--
-- Name: TABLE onboarding_progress_onboarding_progress_step_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.onboarding_progress_onboarding_progress_step_rel TO agente;


--
-- Name: TABLE onboarding_progress_step; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.onboarding_progress_step TO agente;


--
-- Name: TABLE payment_capture_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_capture_wizard TO agente;


--
-- Name: TABLE payment_capture_wizard_payment_transaction_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_capture_wizard_payment_transaction_rel TO agente;


--
-- Name: TABLE payment_country_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_country_rel TO agente;


--
-- Name: TABLE payment_currency_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_currency_rel TO agente;


--
-- Name: TABLE payment_link_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_link_wizard TO agente;


--
-- Name: TABLE payment_method; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_method TO agente;


--
-- Name: TABLE payment_method_payment_provider_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_method_payment_provider_rel TO agente;


--
-- Name: TABLE payment_method_res_country_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_method_res_country_rel TO agente;


--
-- Name: TABLE payment_method_res_currency_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_method_res_currency_rel TO agente;


--
-- Name: TABLE payment_provider; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_provider TO agente;


--
-- Name: TABLE payment_provider_onboarding_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_provider_onboarding_wizard TO agente;


--
-- Name: TABLE payment_refund_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_refund_wizard TO agente;


--
-- Name: TABLE payment_token; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_token TO agente;


--
-- Name: TABLE payment_transaction; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.payment_transaction TO agente;


--
-- Name: TABLE peppol_registration; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.peppol_registration TO agente;


--
-- Name: TABLE phone_blacklist; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.phone_blacklist TO agente;


--
-- Name: TABLE phone_blacklist_remove; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.phone_blacklist_remove TO agente;


--
-- Name: TABLE picking_label_type; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.picking_label_type TO agente;


--
-- Name: TABLE picking_label_type_stock_picking_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.picking_label_type_stock_picking_rel TO agente;


--
-- Name: TABLE picking_type_favorite_user_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.picking_type_favorite_user_rel TO agente;


--
-- Name: TABLE portal_share; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.portal_share TO agente;


--
-- Name: TABLE portal_share_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.portal_share_res_partner_rel TO agente;


--
-- Name: TABLE portal_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.portal_wizard TO agente;


--
-- Name: TABLE portal_wizard_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.portal_wizard_res_partner_rel TO agente;


--
-- Name: TABLE portal_wizard_user; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.portal_wizard_user TO agente;


--
-- Name: TABLE privacy_log; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.privacy_log TO agente;


--
-- Name: TABLE privacy_lookup_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.privacy_lookup_wizard TO agente;


--
-- Name: TABLE privacy_lookup_wizard_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.privacy_lookup_wizard_line TO agente;


--
-- Name: TABLE procurement_group; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.procurement_group TO agente;


--
-- Name: TABLE product_attr_exclusion_value_ids_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_attr_exclusion_value_ids_rel TO agente;


--
-- Name: TABLE product_attribute; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_attribute TO agente;


--
-- Name: TABLE product_attribute_custom_value; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_attribute_custom_value TO agente;


--
-- Name: TABLE product_attribute_product_template_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_attribute_product_template_rel TO agente;


--
-- Name: TABLE product_attribute_value; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_attribute_value TO agente;


--
-- Name: TABLE product_attribute_value_product_template_attribute_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_attribute_value_product_template_attribute_line_rel TO agente;


--
-- Name: TABLE product_category; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_category TO agente;


--
-- Name: TABLE product_combo; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_combo TO agente;


--
-- Name: TABLE product_combo_item; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_combo_item TO agente;


--
-- Name: TABLE product_combo_product_template_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_combo_product_template_rel TO agente;


--
-- Name: TABLE product_document; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_document TO agente;


--
-- Name: TABLE product_document_sale_pdf_form_field_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_document_sale_pdf_form_field_rel TO agente;


--
-- Name: TABLE product_label_layout; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_label_layout TO agente;


--
-- Name: TABLE product_label_layout_product_product_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_label_layout_product_product_rel TO agente;


--
-- Name: TABLE product_label_layout_product_template_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_label_layout_product_template_rel TO agente;


--
-- Name: TABLE product_label_layout_stock_move_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_label_layout_stock_move_rel TO agente;


--
-- Name: TABLE product_optional_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_optional_rel TO agente;


--
-- Name: TABLE product_packaging; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_packaging TO agente;


--
-- Name: TABLE product_pricelist; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_pricelist TO agente;


--
-- Name: TABLE product_pricelist_item; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_pricelist_item TO agente;


--
-- Name: TABLE product_product; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_product TO agente;


--
-- Name: TABLE product_product_stock_track_confirmation_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_product_stock_track_confirmation_rel TO agente;


--
-- Name: TABLE product_removal; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_removal TO agente;


--
-- Name: TABLE product_replenish; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_replenish TO agente;


--
-- Name: TABLE product_supplier_taxes_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_supplier_taxes_rel TO agente;


--
-- Name: TABLE product_supplierinfo; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_supplierinfo TO agente;


--
-- Name: TABLE product_supplierinfo_stock_replenishment_info_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_supplierinfo_stock_replenishment_info_rel TO agente;


--
-- Name: TABLE product_tag; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_tag TO agente;


--
-- Name: TABLE product_tag_product_product_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_tag_product_product_rel TO agente;


--
-- Name: TABLE product_tag_product_template_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_tag_product_template_rel TO agente;


--
-- Name: TABLE product_taxes_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_taxes_rel TO agente;


--
-- Name: TABLE product_template; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_template TO agente;


--
-- Name: TABLE product_template_attribute_exclusion; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_template_attribute_exclusion TO agente;


--
-- Name: TABLE product_template_attribute_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_template_attribute_line TO agente;


--
-- Name: TABLE product_template_attribute_value; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_template_attribute_value TO agente;


--
-- Name: TABLE product_template_attribute_value_purchase_order_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_template_attribute_value_purchase_order_line_rel TO agente;


--
-- Name: TABLE product_template_attribute_value_sale_order_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_template_attribute_value_sale_order_line_rel TO agente;


--
-- Name: TABLE product_variant_combination; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.product_variant_combination TO agente;


--
-- Name: TABLE project_collaborator; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_collaborator TO agente;


--
-- Name: TABLE project_favorite_user_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_favorite_user_rel TO agente;


--
-- Name: TABLE project_milestone; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_milestone TO agente;


--
-- Name: TABLE project_project; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_project TO agente;


--
-- Name: TABLE project_project_project_tags_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_project_project_tags_rel TO agente;


--
-- Name: TABLE project_project_project_task_type_delete_wizard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_project_project_task_type_delete_wizard_rel TO agente;


--
-- Name: TABLE project_project_stage; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_project_stage TO agente;


--
-- Name: TABLE project_project_stage_delete_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_project_stage_delete_wizard TO agente;


--
-- Name: TABLE project_project_stage_project_project_stage_delete_wizard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_project_stage_project_project_stage_delete_wizard_rel TO agente;


--
-- Name: TABLE project_share_collaborator_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_share_collaborator_wizard TO agente;


--
-- Name: TABLE project_share_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_share_wizard TO agente;


--
-- Name: TABLE project_share_wizard_res_partner_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_share_wizard_res_partner_rel TO agente;


--
-- Name: TABLE project_tags; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_tags TO agente;


--
-- Name: TABLE project_tags_project_task_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_tags_project_task_rel TO agente;


--
-- Name: TABLE project_task; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_task TO agente;


--
-- Name: TABLE project_task_recurrence; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_task_recurrence TO agente;


--
-- Name: TABLE project_task_type; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_task_type TO agente;


--
-- Name: TABLE project_task_type_delete_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_task_type_delete_wizard TO agente;


--
-- Name: TABLE project_task_type_project_task_type_delete_wizard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_task_type_project_task_type_delete_wizard_rel TO agente;


--
-- Name: TABLE project_task_type_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_task_type_rel TO agente;


--
-- Name: TABLE project_task_user_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_task_user_rel TO agente;


--
-- Name: TABLE project_update; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.project_update TO agente;


--
-- Name: TABLE purchase_order; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.purchase_order TO agente;


--
-- Name: TABLE purchase_order_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.purchase_order_line TO agente;


--
-- Name: TABLE purchase_order_stock_picking_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.purchase_order_stock_picking_rel TO agente;


--
-- Name: TABLE quotation_document; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.quotation_document TO agente;


--
-- Name: TABLE quotation_document_sale_order_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.quotation_document_sale_order_rel TO agente;


--
-- Name: TABLE quotation_document_sale_pdf_form_field_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.quotation_document_sale_pdf_form_field_rel TO agente;


--
-- Name: TABLE rating_rating; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.rating_rating TO agente;


--
-- Name: TABLE rel_badge_auth_users; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.rel_badge_auth_users TO agente;


--
-- Name: TABLE rel_modules_langexport; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.rel_modules_langexport TO agente;


--
-- Name: TABLE rel_server_actions; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.rel_server_actions TO agente;


--
-- Name: TABLE repair_order; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.repair_order TO agente;


--
-- Name: TABLE repair_order_repair_tags_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.repair_order_repair_tags_rel TO agente;


--
-- Name: TABLE repair_tags; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.repair_tags TO agente;


--
-- Name: TABLE report_layout; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.report_layout TO agente;


--
-- Name: TABLE report_paperformat; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.report_paperformat TO agente;


--
-- Name: TABLE stock_location; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_location TO agente;


--
-- Name: TABLE stock_move; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_move TO agente;


--
-- Name: TABLE stock_quant; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_quant TO agente;


--
-- Name: TABLE stock_warehouse; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_warehouse TO agente;


--
-- Name: TABLE res_bank; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_bank TO agente;


--
-- Name: TABLE res_company; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_company TO agente;


--
-- Name: TABLE res_company_users_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_company_users_rel TO agente;


--
-- Name: TABLE res_config; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_config TO agente;


--
-- Name: TABLE res_config_settings; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_config_settings TO agente;


--
-- Name: TABLE res_country; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_country TO agente;


--
-- Name: TABLE res_country_group; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_country_group TO agente;


--
-- Name: TABLE res_country_group_pricelist_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_country_group_pricelist_rel TO agente;


--
-- Name: TABLE res_country_res_country_group_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_country_res_country_group_rel TO agente;


--
-- Name: TABLE res_country_state; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_country_state TO agente;


--
-- Name: TABLE res_currency; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_currency TO agente;


--
-- Name: TABLE res_currency_rate; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_currency_rate TO agente;


--
-- Name: TABLE res_device_log; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_device_log TO agente;


--
-- Name: TABLE res_groups; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_groups TO agente;


--
-- Name: TABLE res_groups_implied_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_groups_implied_rel TO agente;


--
-- Name: TABLE res_groups_report_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_groups_report_rel TO agente;


--
-- Name: TABLE res_groups_spreadsheet_dashboard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_groups_spreadsheet_dashboard_rel TO agente;


--
-- Name: TABLE res_groups_users_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_groups_users_rel TO agente;


--
-- Name: TABLE res_lang; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_lang TO agente;


--
-- Name: TABLE res_lang_install_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_lang_install_rel TO agente;


--
-- Name: TABLE res_partner; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_partner TO agente;


--
-- Name: TABLE res_partner_autocomplete_sync; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_partner_autocomplete_sync TO agente;


--
-- Name: TABLE res_partner_bank; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_partner_bank TO agente;


--
-- Name: TABLE res_partner_category; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_partner_category TO agente;


--
-- Name: TABLE res_partner_industry; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_partner_industry TO agente;


--
-- Name: TABLE res_partner_res_partner_category_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_partner_res_partner_category_rel TO agente;


--
-- Name: TABLE res_partner_title; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_partner_title TO agente;


--
-- Name: TABLE res_users; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_users TO agente;


--
-- Name: TABLE res_users_apikeys; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_users_apikeys TO agente;


--
-- Name: TABLE res_users_apikeys_description; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_users_apikeys_description TO agente;


--
-- Name: TABLE res_users_deletion; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_users_deletion TO agente;


--
-- Name: TABLE res_users_identitycheck; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_users_identitycheck TO agente;


--
-- Name: TABLE res_users_log; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_users_log TO agente;


--
-- Name: TABLE res_users_settings; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_users_settings TO agente;


--
-- Name: TABLE res_users_settings_volumes; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_users_settings_volumes TO agente;


--
-- Name: TABLE res_users_web_tour_tour_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.res_users_web_tour_tour_rel TO agente;


--
-- Name: TABLE reset_view_arch_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.reset_view_arch_wizard TO agente;


--
-- Name: TABLE resource_calendar; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.resource_calendar TO agente;


--
-- Name: TABLE resource_calendar_attendance; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.resource_calendar_attendance TO agente;


--
-- Name: TABLE resource_calendar_leaves; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.resource_calendar_leaves TO agente;


--
-- Name: TABLE resource_resource; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.resource_resource TO agente;


--
-- Name: TABLE rule_group_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.rule_group_rel TO agente;


--
-- Name: TABLE sale_advance_payment_inv; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_advance_payment_inv TO agente;


--
-- Name: TABLE sale_advance_payment_inv_sale_order_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_advance_payment_inv_sale_order_rel TO agente;


--
-- Name: TABLE sale_mass_cancel_orders; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_mass_cancel_orders TO agente;


--
-- Name: TABLE sale_order; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order TO agente;


--
-- Name: TABLE sale_order_cancel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_cancel TO agente;


--
-- Name: TABLE sale_order_discount; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_discount TO agente;


--
-- Name: TABLE sale_order_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_line TO agente;


--
-- Name: TABLE sale_order_line_invoice_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_line_invoice_rel TO agente;


--
-- Name: TABLE sale_order_line_product_document_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_line_product_document_rel TO agente;


--
-- Name: TABLE sale_order_mass_cancel_wizard_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_mass_cancel_wizard_rel TO agente;


--
-- Name: TABLE sale_order_option; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_option TO agente;


--
-- Name: TABLE sale_order_tag_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_tag_rel TO agente;


--
-- Name: TABLE sale_order_template; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_template TO agente;


--
-- Name: TABLE sale_order_template_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_template_line TO agente;


--
-- Name: TABLE sale_order_template_option; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_template_option TO agente;


--
-- Name: TABLE sale_order_transaction_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_order_transaction_rel TO agente;


--
-- Name: TABLE sale_payment_provider_onboarding_wizard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_payment_provider_onboarding_wizard TO agente;


--
-- Name: TABLE sale_pdf_form_field; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sale_pdf_form_field TO agente;


--
-- Name: TABLE scheduled_message_attachment_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.scheduled_message_attachment_rel TO agente;


--
-- Name: TABLE sms_account_code; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_account_code TO agente;


--
-- Name: TABLE sms_account_phone; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_account_phone TO agente;


--
-- Name: TABLE sms_account_sender; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_account_sender TO agente;


--
-- Name: TABLE sms_composer; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_composer TO agente;


--
-- Name: TABLE sms_resend; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_resend TO agente;


--
-- Name: TABLE sms_resend_recipient; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_resend_recipient TO agente;


--
-- Name: TABLE sms_sms; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_sms TO agente;


--
-- Name: TABLE sms_template; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_template TO agente;


--
-- Name: TABLE sms_template_preview; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_template_preview TO agente;


--
-- Name: TABLE sms_template_reset; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_template_reset TO agente;


--
-- Name: TABLE sms_template_sms_template_reset_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_template_sms_template_reset_rel TO agente;


--
-- Name: TABLE sms_tracker; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.sms_tracker TO agente;


--
-- Name: TABLE snailmail_letter; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.snailmail_letter TO agente;


--
-- Name: TABLE snailmail_letter_format_error; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.snailmail_letter_format_error TO agente;


--
-- Name: TABLE snailmail_letter_missing_required_fields; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.snailmail_letter_missing_required_fields TO agente;


--
-- Name: TABLE spreadsheet_dashboard; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.spreadsheet_dashboard TO agente;


--
-- Name: TABLE spreadsheet_dashboard_group; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.spreadsheet_dashboard_group TO agente;


--
-- Name: TABLE spreadsheet_dashboard_share; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.spreadsheet_dashboard_share TO agente;


--
-- Name: TABLE stock_backorder_confirmation; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_backorder_confirmation TO agente;


--
-- Name: TABLE stock_backorder_confirmation_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_backorder_confirmation_line TO agente;


--
-- Name: TABLE stock_change_product_qty; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_change_product_qty TO agente;


--
-- Name: TABLE stock_conflict_quant_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_conflict_quant_rel TO agente;


--
-- Name: TABLE stock_inventory_adjustment_name; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_inventory_adjustment_name TO agente;


--
-- Name: TABLE stock_inventory_adjustment_name_stock_quant_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_inventory_adjustment_name_stock_quant_rel TO agente;


--
-- Name: TABLE stock_inventory_conflict; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_inventory_conflict TO agente;


--
-- Name: TABLE stock_inventory_conflict_stock_quant_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_inventory_conflict_stock_quant_rel TO agente;


--
-- Name: TABLE stock_inventory_warning; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_inventory_warning TO agente;


--
-- Name: TABLE stock_inventory_warning_stock_quant_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_inventory_warning_stock_quant_rel TO agente;


--
-- Name: TABLE stock_lot; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_lot TO agente;


--
-- Name: TABLE stock_move_created_purchase_line_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_move_created_purchase_line_rel TO agente;


--
-- Name: TABLE stock_move_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_move_line TO agente;


--
-- Name: TABLE stock_move_line_consume_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_move_line_consume_rel TO agente;


--
-- Name: TABLE stock_move_move_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_move_move_rel TO agente;


--
-- Name: TABLE stock_orderpoint_snooze; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_orderpoint_snooze TO agente;


--
-- Name: TABLE stock_orderpoint_snooze_stock_warehouse_orderpoint_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_orderpoint_snooze_stock_warehouse_orderpoint_rel TO agente;


--
-- Name: TABLE stock_package_destination; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_package_destination TO agente;


--
-- Name: TABLE stock_package_level; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_package_level TO agente;


--
-- Name: TABLE stock_package_type; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_package_type TO agente;


--
-- Name: TABLE stock_package_type_stock_putaway_rule_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_package_type_stock_putaway_rule_rel TO agente;


--
-- Name: TABLE stock_picking; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_picking TO agente;


--
-- Name: TABLE stock_picking_backorder_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_picking_backorder_rel TO agente;


--
-- Name: TABLE stock_picking_sms_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_picking_sms_rel TO agente;


--
-- Name: TABLE stock_picking_type; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_picking_type TO agente;


--
-- Name: TABLE stock_putaway_rule; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_putaway_rule TO agente;


--
-- Name: TABLE stock_quant_package; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_quant_package TO agente;


--
-- Name: TABLE stock_quant_relocate; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_quant_relocate TO agente;


--
-- Name: TABLE stock_quant_stock_quant_relocate_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_quant_stock_quant_relocate_rel TO agente;


--
-- Name: TABLE stock_quant_stock_request_count_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_quant_stock_request_count_rel TO agente;


--
-- Name: TABLE stock_quant_stock_track_confirmation_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_quant_stock_track_confirmation_rel TO agente;


--
-- Name: TABLE stock_quantity_history; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_quantity_history TO agente;


--
-- Name: TABLE stock_replenishment_info; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_replenishment_info TO agente;


--
-- Name: TABLE stock_replenishment_option; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_replenishment_option TO agente;


--
-- Name: TABLE stock_request_count; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_request_count TO agente;


--
-- Name: TABLE stock_return_picking; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_return_picking TO agente;


--
-- Name: TABLE stock_return_picking_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_return_picking_line TO agente;


--
-- Name: TABLE stock_route; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_route TO agente;


--
-- Name: TABLE stock_route_categ; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_route_categ TO agente;


--
-- Name: TABLE stock_route_move; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_route_move TO agente;


--
-- Name: TABLE stock_route_packaging; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_route_packaging TO agente;


--
-- Name: TABLE stock_route_product; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_route_product TO agente;


--
-- Name: TABLE stock_route_stock_rules_report_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_route_stock_rules_report_rel TO agente;


--
-- Name: TABLE stock_route_warehouse; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_route_warehouse TO agente;


--
-- Name: TABLE stock_rule; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_rule TO agente;


--
-- Name: TABLE stock_rules_report; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_rules_report TO agente;


--
-- Name: TABLE stock_rules_report_stock_warehouse_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_rules_report_stock_warehouse_rel TO agente;


--
-- Name: TABLE stock_scrap; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_scrap TO agente;


--
-- Name: TABLE stock_scrap_reason_tag; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_scrap_reason_tag TO agente;


--
-- Name: TABLE stock_scrap_stock_scrap_reason_tag_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_scrap_stock_scrap_reason_tag_rel TO agente;


--
-- Name: TABLE stock_storage_category; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_storage_category TO agente;


--
-- Name: TABLE stock_storage_category_capacity; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_storage_category_capacity TO agente;


--
-- Name: TABLE stock_traceability_report; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_traceability_report TO agente;


--
-- Name: TABLE stock_track_confirmation; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_track_confirmation TO agente;


--
-- Name: TABLE stock_track_line; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_track_line TO agente;


--
-- Name: TABLE stock_valuation_layer; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_valuation_layer TO agente;


--
-- Name: TABLE stock_valuation_layer_revaluation; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_valuation_layer_revaluation TO agente;


--
-- Name: TABLE stock_valuation_layer_stock_valuation_layer_revaluation_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_valuation_layer_stock_valuation_layer_revaluation_rel TO agente;


--
-- Name: TABLE stock_warehouse_orderpoint; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_warehouse_orderpoint TO agente;


--
-- Name: TABLE stock_warn_insufficient_qty_repair; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_warn_insufficient_qty_repair TO agente;


--
-- Name: TABLE stock_warn_insufficient_qty_scrap; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_warn_insufficient_qty_scrap TO agente;


--
-- Name: TABLE stock_wh_resupply_table; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.stock_wh_resupply_table TO agente;


--
-- Name: TABLE task_dependencies_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.task_dependencies_rel TO agente;


--
-- Name: TABLE team_favorite_user_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.team_favorite_user_rel TO agente;


--
-- Name: TABLE template_attribute_value_stock_move_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.template_attribute_value_stock_move_rel TO agente;


--
-- Name: TABLE uom_uom; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.uom_uom TO agente;


--
-- Name: TABLE uom_category; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.uom_category TO agente;


--
-- Name: TABLE update_product_attribute_value; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.update_product_attribute_value TO agente;


--
-- Name: TABLE utm_campaign; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.utm_campaign TO agente;


--
-- Name: TABLE utm_medium; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.utm_medium TO agente;


--
-- Name: TABLE utm_source; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.utm_source TO agente;


--
-- Name: TABLE utm_stage; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.utm_stage TO agente;


--
-- Name: TABLE utm_tag; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.utm_tag TO agente;


--
-- Name: TABLE utm_tag_rel; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.utm_tag_rel TO agente;


--
-- Name: TABLE validate_account_move; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.validate_account_move TO agente;


--
-- Name: TABLE web_editor_converter_test; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.web_editor_converter_test TO agente;


--
-- Name: TABLE web_editor_converter_test_sub; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.web_editor_converter_test_sub TO agente;


--
-- Name: TABLE web_tour_tour; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.web_tour_tour TO agente;


--
-- Name: TABLE web_tour_tour_step; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.web_tour_tour_step TO agente;


--
-- Name: TABLE wizard_ir_model_menu_create; Type: ACL; Schema: public; Owner: odoo
--

GRANT SELECT ON TABLE public.wizard_ir_model_menu_create TO agente;


--
--

\unrestrict tw1LhFGVgVUCda4womPEwPOSDLd4o6QIZIgNLn0etdZejZKN5niSMoeCBtJeKLD

