Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][ENH] stock_analytic: select analytic when scrapping product #580

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading