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

[12.0] contract_operating_unit #263

Closed

Conversation

AaronHForgeFlow
Copy link
Contributor

This introduce operating units in contracts.

In previous versions contracts and analytic accounts were the same model. After v12 contracts were refactored to use a new model. Thus, contracts lost operating unit information. This module gets back the operating units in contracts.

@ForgeFlow

@AaronHForgeFlow AaronHForgeFlow force-pushed the 12.0-add-contract_operating_unit branch from 735609a to fab6640 Compare March 13, 2020 11:06
@AaronHForgeFlow AaronHForgeFlow force-pushed the 12.0-add-contract_operating_unit branch from fab6640 to cc6f66b Compare March 30, 2020 08:42
"author": "ForgeFlow S.L., " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/operating-unit",
"category": "Invoicing",
"depends": ["contract", "operating_unit"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should depends on accounting, otherwise, the invoice created will has no OU ?

Suggested change
"depends": ["contract", "operating_unit"],
"depends": ["contract", "account_operating_unit"],

<record id="contract_contract_form_view" model="ir.ui.view">
<field name="name">contract.contract form view (in contract_payment_mode)</field>
<field name="model">contract.contract</field>
<field name="inherit_id" ref="contract.contract_contract_form_view" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<field name="inherit_id" ref="contract.contract_contract_form_view" />
<field name="inherit_id" ref="contract.contract.contract_contract_customer_form_view" />

Otherwise, OU in supplier invoice will has 2 field,

image

<field name="inherit_id" ref="contract.contract_contract_search_view" />
<field name="arch" type="xml">
<field name="name" position="after">
<field name="operating_unit_id" groups="operating_unit.group_multi_operating_unit"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have group by OU also?

@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 20, 2022
@github-actions github-actions bot closed this Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants