Skip to content

[10.0 ENH] Purchase line extras#17

Open
richard-willdooit wants to merge 2 commits intoForgeFlow:10.0from
richard-willdooit:10.0-purchase-line-extras
Open

[10.0 ENH] Purchase line extras#17
richard-willdooit wants to merge 2 commits intoForgeFlow:10.0from
richard-willdooit:10.0-purchase-line-extras

Conversation

@richard-willdooit
Copy link

Make order line company id computed and dependent so it defaults
better for a new purchase order line.

Also, ensure domains added to more views for alternate viewing
and editing.

Richard deMeester added 2 commits November 13, 2017 09:36
Make order line company id computed and dependent so it defaults
better for a new purchase order line.

Also, ensure domains added to more views for alternate viewing
and editing.
@codecov-io
Copy link

codecov-io commented Nov 12, 2017

Codecov Report

Merging #17 into 10.0 will increase coverage by 0.03%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##             10.0      #17      +/-   ##
==========================================
+ Coverage   52.57%   52.61%   +0.03%     
==========================================
  Files         115      115              
  Lines        4854     4860       +6     
==========================================
+ Hits         2552     2557       +5     
- Misses       2302     2303       +1
Impacted Files Coverage Δ
mcfix_purchase/models/purchase.py 59.6% <85.71%> (+0.98%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6f1a80...6d2d40f. Read the comment docs.


company_id = fields.Many2one(
'res.company', related=[], compute='_compute_line_company',
string='Company', store=True, readonly=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

you shouldn't put the unchanged attributes

Copy link
Author

Choose a reason for hiding this comment

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

It is changed - it used to be related, it is now computed....

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, but you don't need to put again 'res.company', string, store, ...

@MiquelRForgeFlow MiquelRForgeFlow force-pushed the 10.0 branch 2 times, most recently from ef06178 to e7d37d0 Compare November 28, 2017 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants