mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_package_type_category: Add a color on categories
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = [
|
||||
(
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 >
|
||||
Configuration > Settings > Operations.</li>
|
||||
<li>Go to Inventory > Configuration > Delivery > 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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user