[IMP] stock_package_type_category: Add a color on categories

This commit is contained in:
Denis Roussel
2024-07-01 11:16:44 +02:00
parent 597fa8ad5d
commit 20532b2362
5 changed files with 8 additions and 5 deletions

View File

@@ -47,8 +47,8 @@ Configuration
- You should have activated the 'Packages' configuration in Inventory >
Configuration > Settings > Operations.
- Go to Inventory > Configuration > Delivery > Package Type Categories.
- Add as many categories you need by filling in a name and a code
(unique).
- Add as many categories you need by filling in a name, a code (unique)
and a color(if needed).
- Then, fill in the category on package type that need it.
Bug Tracker

View File

@@ -11,6 +11,7 @@ class StockPackageTypeCategory(models.Model):
name = fields.Char(translate=True, required=True)
code = fields.Char(required=True)
color = fields.Integer(default=0)
_sql_constraints = [
(

View File

@@ -1,4 +1,4 @@
- You should have activated the 'Packages' configuration in Inventory > Configuration > Settings > Operations.
- Go to Inventory > Configuration > Delivery > Package Type Categories.
- Add as many categories you need by filling in a name and a code (unique).
- Add as many categories you need by filling in a name, a code (unique) and a color(if needed).
- Then, fill in the category on package type that need it.

View File

@@ -395,8 +395,8 @@ want to sort them per category in order to easy their operations.</p>
<li>You should have activated the Packages configuration in Inventory &gt;
Configuration &gt; Settings &gt; Operations.</li>
<li>Go to Inventory &gt; Configuration &gt; Delivery &gt; Package Type Categories.</li>
<li>Add as many categories you need by filling in a name and a code
(unique).</li>
<li>Add as many categories you need by filling in a name, a code (unique)
and a color(if needed).</li>
<li>Then, fill in the category on package type that need it.</li>
</ul>
</div>

View File

@@ -14,6 +14,7 @@
<group>
<field name="name" />
<field name="code" />
<field name="color" widget="color_picker" />
</group>
</sheet>
</form>
@@ -41,6 +42,7 @@
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="color" widget="color_picker" />
</tree>
</field>
</record>