Skip to content

Commit

Permalink
[ENH] stock_analytic: select analytic when scrap product
Browse files Browse the repository at this point in the history
  • Loading branch information
ps-tubtim committed Oct 26, 2023
1 parent bc8dbde commit 6db804c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions stock_analytic/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
* Jared Kipe <[email protected]>
* Alan Ramos <[email protected]>
* Mantas Šniukas <[email protected]>
* Pimolnat Suntian <[email protected]>
18 changes: 18 additions & 0 deletions stock_analytic/views/stock_scrap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,22 @@
</xpath>
</field>
</record>
<record id="stock_scrap_form_view2" model="ir.ui.view">
<field name="name">stock.scrap.analytic.form2</field>
<field name="model">stock.scrap</field>
<field name="inherit_id" ref="stock.stock_scrap_form_view2" />
<field name="arch" type="xml">
<xpath expr="//group/group[1]" position="inside">
<field
name="analytic_account_id"
groups="analytic.group_analytic_accounting"
/>
<field
name="analytic_tag_ids"
widget="many2many_tags"
groups="analytic.group_analytic_tags"
/>
</xpath>
</field>
</record>
</odoo>

0 comments on commit 6db804c

Please sign in to comment.