feat: Reposition the reason field in stock move line and quant views, and add a .gitignore file.

This commit is contained in:
Suherdy Yacob 2026-01-29 12:30:42 +07:00
parent 8bccc3e53d
commit 84acfd8b36
3 changed files with 18 additions and 3 deletions

15
.gitignore vendored Normal file
View File

@ -0,0 +1,15 @@
# Python
*.py[cod]
__pycache__/
*.so
# Odoo
*.po~
*.pot~
# Editor / System
.DS_Store
.vscode/
*.swp
*.swo
*~

View File

@ -7,7 +7,7 @@
<field name="model">stock.move.line</field>
<field name="inherit_id" ref="stock.view_move_line_tree" />
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="quantity" position="after">
<field
name="reason"
groups="!stock_change_qty_reason.group_qty_reason_preset"

View File

@ -7,7 +7,7 @@
<field name="model">stock.quant</field>
<field name="inherit_id" ref="stock.view_stock_quant_tree_inventory_editable" />
<field name="arch" type="xml">
<button name="action_inventory_history" position="before">
<field name="inventory_diff_quantity" position="after">
<field
name="reason"
invisible="not inventory_quantity_set"
@ -18,7 +18,7 @@
string="Reason"
groups="stock_change_qty_reason.group_qty_reason_preset"
/>
</button>
</field>
</field>
</record>
</odoo>