From a0cdec69adde7534181aa82a25c84af4d192617f Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Thu, 10 Mar 2022 12:30:01 +0100
Subject: [PATCH] [add] default company on product

---
 __manifest__.py   |  1 +
 views/product.xml | 13 +++++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 views/product.xml

diff --git a/__manifest__.py b/__manifest__.py
index dfdff4a..e0e9832 100644
--- a/__manifest__.py
+++ b/__manifest__.py
@@ -14,6 +14,7 @@
         # views
         "views/account_move.xml",
         "views/account_journal.xml",
+        "views/product.xml",
         "views/res_company.xml",
     ],
     "qweb": [],
diff --git a/views/product.xml b/views/product.xml
new file mode 100644
index 0000000..571992b
--- /dev/null
+++ b/views/product.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2021 Le Filament
+     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
+<odoo>
+    <data>
+
+        <!-- Action -->
+        <record id="account.product_product_action_sellable" model="ir.actions.act_window">
+            <field name="context">{'search_default_filter_to_sell': 1, 'default_company_id': allowed_company_ids[0]}</field>
+        </record>
+
+    </data>
+</odoo>
-- 
GitLab